Question
Description: Build and test the following circuits using gate-level modeling in Verilog HDL. *****PLEASE USE GATE-LEVEL MODELING AND NOTE THE INSTRUCTIONS FOR EACH CIRCUIT BELOW*****
Description: Build and test the following circuits using gate-level modeling in Verilog HDL.
*****PLEASE USE GATE-LEVEL MODELING AND NOTE THE INSTRUCTIONS FOR EACH CIRCUIT BELOW*****
1. . 1-bit full adder by cascading two half adders. Create a separate module for the half adder.
2. 1-bit full adder direct implementation. Derive the output functions from the truth table and use 2-level NAND logic for the implementation.
3. 4-bit adder/subtractor with overflow detection by cascading four 1-bit full adders. Use multiple bit variables (vectors) for the inputs and output
Requirements:
- Create truth tables and use maps for simplification (not needed for circuits 1 and 3 - just circuit 2)
- Create a module for each circuit, instantiate it in a test module and test it.
- The hierarchical circuits (1 and 3) should use instances of their constituent modules.
- For testing use all combinations of input values and show the corresponding output for all circuits except for the 4-bit adder/subtractor (Circuit 3)
- For testing the 4-bit adder/subtractor (Circuit 3) pick one positive and one negative number and add and subtract all combinations of them. Test also overflow situations for both add and subtract. Show the inputs/output both in binary and signed decimal.
Documentation for each circuit:
- Short text description.
- Truth tables and maps (Not needed for circuits 1 and 3 - just 2)
- Gate level circuit diagram with components and wires labeled with the module and variable names used in the Verilog code. Use block diagrams for the components of the hierarchical circuits 1 and 3.
- Verilog source code (included as text, not image).
- Verilog output showing the test results as explained in the requirements.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started