Using Figure 1 as a guide and a “binary decision” on S from Figure, write a high-level behavior Verilog description for the adder–subtractor in Figure 2 (see Figure 3 for details). Compile and simulate your description. Assuming a ripple carry implementation, apply input combinations to your design that will (1) cause all 16 possible input combinations to be applied to the full adder–subtractor stage for bit 2, and (2) simultaneously cause the carry output of bit 2 to appear at one of your design’s outputs. Also, apply combinations that check the carry chain connections between all full adders by demonstrating that a 0 and a 1 can be propagated from C0 to C4.
Figure 1 Behavioral Description of Four-Bit Full Adder Using Verilog
Figure 2 Overflow Detection Logic for Addition and Subtraction
Figure 3 Adder-Subtractor Circuit
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.