For Lab 2 ECE 281
- Basic Adder Schematic:
- Full Adder Schematics:
- Full Adder and Subtractor Schematics:
- TestBench Screen Shot
- Basic Adder was built using XOR gates, and AND gates as showns in the schematics
- A VHDL module was established with 4 inputs, a carry vector, and an output vector called sum.
- These were all mapped according to the Full Adder Schematics.
- The Adder was easily functional.
- A multiplexer was duplicated with the when statements.
- An input signal was created, that would detect when the button was pressed for subtraction.
- If the button was pressed the when statements would act as a multiplexer, and take the 2's complement of B input.
- Similar to the Full adder and Subtractor schematic above.
- Overflow was detected using 2's complement rules.
- The testbench used nested for loops that would cycle through each value of the 4 bit numbers and add them.
- If a statment returned false, a report would be displayed for the user.
- This concludes the steps for Lab2.
##Functionality
- 1 bit full adder FULLY FUNCTIONAL
- 4 bit adder FULLY FUNCTIONAL
- Subtraction FULLY FUNCTIONAL
- Overflow Detection FULLY FUNCTIONAL
- Looping self-checking testbench Functional
##Links to Files
I worked with C3C Terragnoli on the testbench.
no other helped received.