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

1 Expert Approved Answer
Step: 1 Unlock

a A changes to 1 at 25 ns B ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Digital Systems Design Questions!