Query in generating clock

B

batrashish

Guest
Hello ,
This is Ashish Batra, I have a query in creating clock in verilog using
blocking assignments.

can some one explain me why is this particular code able to generate clock
successfully:

always @ clk
begin
clk = #5 !clk;
end

initial
begin
clk = 0;
#5 clk = 1;
end

Thanks in advance.
Ashish
 

Welcome to EDABoard.com

Sponsor

Back
Top