Given the following Verilog code, what value of "a" is displayed?

always @(clk) begin
a = 0;
a <= 1;
$display(a);
end

3 comments:

Anonymous said...

the value of "a" would be 1.

Unknown said...

0 it will be

Unknown said...

The value of 'a' will be '1'