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 bit addersubtractor with the following ports.
typedef logic signed : it;
module addsuboutput it result, input it a b input logic addsub ;
The it type is defined in the main test bench. It specifies a bit signed number. When addsub is the addsub performs addition. It subtracts when addsub is Notice that the final carry is discarded. The typedef for it is:
typedef logic signed : it;
insert fa
module addsuboutput it result,
input it a b input logic addsub ;
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
