blocking , non-blocking assignment

U

uday.das@gmail.com

Guest
Consider the code below ,

// code start
reg a;
initial a = 0;

always@(posedge clk)
begin
a = 1'b0;
a <= 1'b1;
end
// code end

What will be the waveform of a ? In my logic second assignment
overwrite first one , waveform of "a" should be 1 always. Am i right ?

Thanks
-- Uday
 

Welcome to EDABoard.com

Sponsor

Back
Top