What is the difference between:
1
forever begin
**@posedge(clk) begin**
if(vif.sof == 1) begin
//some code here
end
end
end
2
forever begin
**@posedge(clk);**
if(vif.sof == 1) begin
//some code here
end
end
Does the begin..end that goes with @(posedge clk) make a difference ?