CE 433 Spring 2022 Lab 5: 2's Complement Adder Taylor Nakai tsnakai@fortlewis.edu
Introduction: In
this lab, we were tasked with designing a 3-bit adder/subtractor in 2's
complement using the circuit shown in Figure 1. Completing these two
tasks allowed us to be more comfortable with using verilog, vivado, and
on board verification of a 3-bit adder/subtractor in 2's complement.
Figure 1. Circuit of 3-bit adder/subtractor in 2's complement. Task 1: In
this task, we were tasked with using verilog and vivado to create a
3-bit adder/subtractor in 2's complement with the results being
displayed using the LEDs. Figure 2 shows the code used to create the 3-bit adder/subtractor in 2's complement's code with results being shown using LEDs. Figure 3 shows the demonstration 3-bit adder/subtractor in 2's complement's using LEDs. Figure 2. The 3-bit adder/subtractor in 2's complement's code with results being shown using LEDs.
Figure 3. Demonstration of 3-bit adder/subtractor in 2's complement's using LEDs.
Task 2: In
this task, we were tasked with using verilog and vivado to create a
3-bit adder/subtractor in 2's complement with the results being
displayed using the LEDs and the seven segment display. Figure 4 shows the code used to create the 3-bit adder/subtractor in 2's complement's code with results being shown using LEDs and the seven segment display. Figure 5 shows the demonstration 3-bit adder/subtractor in 2's complement's using LEDs and the seven segment display.
Figure 4. The 3-bit adder/subtractor in 2's complement's code with results being shown using LEDs and seven-segment display.
Figure 5. Demonstration of 3-bit adder/subtractor in 2's complement's using LEDs and seven-segment display.
Discussion: By completing this lab, we were able to gain more comfortability working with verilog, vivado, and 3-bit adder/subtractor in 2's complement.
We were able to to gain more experience with on board verification and
adders/subtractors. I think this was a great lab emphasizing the
importance of 3-bit adder/subtractor in 2's complement. I believe that these skills will be useful in the future. Overall, this lab was interesting and I can't wait to learn more.
.....................................................................................................