CE433 Embedded Devices

Name:
Noah Peterson
Email: npeterson@fortlewis.edu

1. Lab 5 A 3-bit Adder/Subtractor for 2's Complement Binary Numbers


2.  The purpose of this lab was to use switches as the 3-bit inputs and use leds to show the binary results of the 3-bit adder and subtractor using 2's complement. Similarly, to implement the 3-bit inputs to display the number result of the seven segment display and display negative values if a negative result is produced by the adder subtractor.

3. Materials and Methods

Vim computer Application
Paper and Pencil
Vivado Application


4. Results


Figure 1. 3-bit adder and subtractor using leds to verify logic and seven segment display w/ code to verify logic of adder and subtractor.










Figure 2. Code used to implement the led and seven segment display to verify 3-bit adder logic.



5. Discussion
The lab was challenging. The verilog code was hard to grasp at first especially for the seven segement display. Splitting up the code allowed one to get a better feel for the code over all and allowed for easier debugging of the circuit. Passing in the values for the seven segement took some time to figure out as well as the counter for the display module.