Analyze the following Verilog code and write down its
output as pictured in the code.
module blocking;
reg [0:7] A, B;
initial begin: init1
A = 3;
#1 A = A + 1; // blocking procedural assignment
B = A + 1;
$display("Output 1: A= %b B= %b", A, B );
A = 1;
#1 A <= A + 1;
B <= A + 1;
#1 $display ("Output 2: A= %b B= %b", A, B );
end
endmodul
Dear student hope this solution helps you. Please don't forget to give thumbs up thank you
Get Answers For Free
Most questions answered within 1 hours.