In the following Verilog code, A, B, C, and D are 0 at time 10 ns. If
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 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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Digital Systems Design Using Verilog
ISBN: 978-1285051079
1st edition
Authors: Charles Roth, Lizy K. John, Byeong Kil Lee
Question Posted: