Difference between @(posedge Clk); a<= 1'b1; and @(posedge Clk) a<= 1'b1;
-
29-10-2019 - |
Question
Is there any difference between
@(posedge Clk);
a<= 1'b1;
and
@(posedge Clk)
a<= 1'b1;
Note the semicolon after Clk. I came across similar lines of code when I was browsing through a testbench. I did some simple experiments and I could not find any differences during simulation. Will the sequence of execution for the code following these lines change in any way due to the presence/absence of the semicolon?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow