Question: Using full adders and any any other gates build a 6 - bit adder / subtractor with the following ports. typedef logic signed [ 5

Using full adders and any any other gates build a 6-bit adder/subtractor with the following ports.
typedef logic signed [5:0] i6_t;
module add_sub_6(output i6_t result, input i6_t a, b, input logic add_sub );
The i6_t type is defined in the main test bench. It specifies a 6-bit signed number. When add_sub is 1, the add_sub_6 performs addition. It subtracts when add_sub is 0. Notice that the final carry is discarded. The typedef for i6_t is:
typedef logic signed [5:0] i6_t;
// insert fa
module add_sub_6(output i6_t result,
input i6_t a, b, input logic add_sub );
// complete with fa and other gates
endmodule

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 Databases Questions!