Question: Circuit below represents a given circuit, the circuit has two inputs A and B two bits each and two outputs S three bits and overflow
Circuit below represents a given circuit, the circuit has two inputs A and two bits each and two outputs three bits and overflow bit.
If bit is greater than bit the circuit shall calculate otherwise, the circuit calculates
Three full adders are used here noticing that the third full adder is used to handle over flow cases only with inputs for both A and
Write Verilog structural code for this circuit, you are to instantiate the full adder circuit that you built before for three times, for FA the ports should be:
FA S Cout Cout
Write Verilog testbench code for this circuit, you are to consider all possible values for inputs A and B you are also to use $monitor instruction
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
