CE433 Lab 2020 Spring
Lab 4
Name:
Braden Morrow
Email: bdmorrow@fortlewis.edu

1. Lab 4 - Combinational Logic

2. Introduction
The purpose of this lab was to implement some basic combinational logic both in simulation and on our Basys 3 Board.

3. Results
Task 1:
This task asked us to draw a truth table for a two-way stop light and then simulate that combinational logic both in simulation and on-board. Figure 1 shows the handdrawn truth table along with a k-map that would've been used for simlifying if there were more states. Figure 2 shows the simulation implementation of the logic, and Figure 3 shows the on-board inplementation.

Figure 1. Truth Table and K-Map for Two-Way Stop Light

Figure 2. Code and Simulation of Two-Way Stop Light

Figure 3. Code and On-Baord Implementation of Two-Way Stop Light

Task 2:
This task asked us to implement a 3-bit even parity generator and a checker in differen't modules. We used the test bench to attach these two modules together, and input values for the simulation in Figure 4. Figure 5 shows the on-board implementation where hardware switches are used to input values into the parity generator.

Figure 4. Code and Simulation of 3-bit Even Parity Generator and Checker

Figure 5. Code and Simulation of 3-bit Even Parity Generator and Checker

4. Discussion
This lab was interesting to code because implementing the logic in simulation was easy, but transferring that code to the board for me meant a lot of configuring to get it to work with the hardware. A big mistake I made during this lab was not checking the diagram on the website to see that there were actually 7 states instead of 4. So my K-Map didn't actually simplify anything, and the implementation of the logic was much more straightforward than it would have been with 7 states. Despite that, it was still a good review of combinational logic and a good lesson on how to implement it on the Basys 3 Board.