Two's Complement Adder/Subtractor 1. Design a 4-bit Adder 2. Modify the Circuit for Addition and Subtraction 3. Create and Use Macros 1. Using four instances of a full adder circuit (which you will create and save as a macro), design a circuit that can add two 4-bit binary numbers A and B. These 4-bit numbers are represented as a3 a2 a1 a0 and b3 b2 b1 b0, respectively, and the result of the addition will be represented as s3 s2 s1 s0. You are required to enter this circuit into a digital logic simulation tool (e.g., Digital Works) and verify that it correctly adds two 4-bit binary numbers. 2. Modify the 4-bit adder circuit to include a mode input M. When M = 0, the circuit should perform addition (A + B), and when M = 1, it should perform subtraction (A - B). This modification should involve introducing suitable logic gates to handle subtraction 3. You are expected to create a black box (macro) for the 1-bit full adder circuit and save it for future use. The instructio
Two's Complement Adder/Subtractor
1. Design a 4-bit Adder
2. Modify the Circuit for Addition and Subtraction
3. Create and Use Macros
1. Using four instances of a full adder circuit (which you will create and save as a macro), design a circuit that can add two 4-bit binary numbers A and B. These 4-bit numbers are represented as a3 a2 a1 a0 and b3 b2 b1 b0, respectively, and the result of the addition will be represented as s3 s2 s1 s0. You are required to enter this circuit into a digital logic simulation tool (e.g., Digital Works) and verify that it correctly adds two 4-bit binary numbers.
2. Modify the 4-bit adder circuit to include a mode input M. When M = 0, the circuit should perform addition (A + B), and when M = 1, it should perform subtraction (A - B). This modification should involve introducing suitable logic gates to handle subtraction
3. You are expected to create a black box (macro) for the 1-bit full adder circuit and save it for future use. The instructions in the lab appendix provide details on how to create this macro, including adding pins and labels.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images