imbichie
Full Member level 6
- Joined
- Jul 30, 2010
- Messages
- 381
- Helped
- 55
- Reputation
- 110
- Reaction score
- 54
- Trophy points
- 1,308
- Activity points
- 3,580
Hi All,
What is the difference between a without putting a semicolon at the end of @ (posedge spit_clk) and with a semicolon at the end of @ (posedge spit_clk), in the below task.
Means how it will affects the below if condition.
also what is the difference between #20 and #20; and how it will affects the below statements
What is the difference between a without putting a semicolon at the end of @ (posedge spit_clk) and with a semicolon at the end of @ (posedge spit_clk), in the below task.
Means how it will affects the below if condition.
Code:
task Write_End;
begin
[B]@ (posedge spit_clk)[/B]
if (spit_pready == 1'b1)
begin
spit_psel = 1'b0;
spit_penable = 1'b0;
spit_pwrite = 1'b0;
end
end
endtask
Code:
task Write_End;
begin
[B]@ (posedge spit_clk)[COLOR="#FF0000"];[/COLOR][/B]
if (spit_pready == 1'b1)
begin
spit_psel = 1'b0;
spit_penable = 1'b0;
spit_pwrite = 1'b0;
end
end
endtask
also what is the difference between #20 and #20; and how it will affects the below statements
Last edited: