Question: When the following Verilog code is simulated, A is changed to 1 at time 5ns. Make a table that shows all changes in A, B,
When the following Verilog code is simulated, A is changed to 1 at time 5ns. Make a table that shows all changes in A, B, and D and the times at which they occur through time = 40 ns.
module Q1F00(A)
inout A;
reg B,C;
wire D;
assign #10 D = A ^ B;
always @(D)
begin
C = ~D;
if(C == 1'b1)
A <= #15 ~A;
B <= D;
end
endmodule
Step by Step Solution
3.33 Rating (168 Votes )
There are 3 Steps involved in it
A 0 0 0 A 0 1 1 ns 0 ... View full answer
Get step-by-step solutions from verified subject matter experts
