Question: In the following SystemVerilog code, if a = 4 ' b 1 1 0 0 and b = 4 ' b 0 1 0 1

In the following SystemVerilog code, if a =4'b1100 and b =4'b0101, what will be the value of sum and
overflow?
module add(input logic [3:0] a, b, output logic [3:0] sum, output logic
overflow);
assign {overflow, sum}= a + b;
endmodule
A. sum =4'b1001, overflow =1
B. sum =4'b0001, overflow =1
C. sum =4'b0001, overflow =0
D. sum =4'b0001, overflow =1
E. sum =4'b0001, overflow =0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!