Question: In the following Verilog code, A, B, C, and D are 0 at time 10 ns. If D changes to 1 at 20 ns, specify
In the following Verilog code, A, B, C, and D are 0 at time 10 ns. If D changes to 1 at 20 ns, specify the times at which A, B, and C will change and the values they will take.
(a) always @(D)
begin
#5 A <= 1;
B <= A + 1;
#10 C <= B;
end
(b) always @(D)
begin
A <= #5 1;
B <= A + 1;
C <= #10 B;
end
Step by Step Solution
3.55 Rating (176 Votes )
There are 3 Steps involved in it
a A changes to 1 at 25 ns B ... View full answer
Get step-by-step solutions from verified subject matter experts
