ENGR 433 Lab 2023 Spring
Lab 4: 3-Bit Adder/Subtractor For 2's Comp Signed Binary

Name: Seth VanMatre
Email: sgvanmatre@fortlewis.edu

3-Bit Adder/Subtractor For 2's Comp Signed Binary

Introduction

The objective of this lab is to create a 3-bit adder/subtractor for 2's complement signed binary numbers

Materials and Methods
- Install Vivado 2018 version.
- Install gvim.
- Basys 3

Results
Task 1: Use switches as the 3-bit inputs, use 'leds' to show the binary results.


Task 2: Use the seven-segment display to show the decimal result from Task 1.


Task2Code.png
Figure 1: test bench, full adder and subtracter, and seven-seg display code.

Discussion
I had extrem difficulty trying to get the seven-segment display to display the 2's complemnt. Besides that, it was easy creating the full adder/subtractor.