CE433 2023 Spring
Report 4: Data Storage Units
Name: Vann Montoya
Email: bvmontoya@fortlewis.edu
Data Storage Units
Introduction:
The purpose of this assignment is to introduce logic data storage units.
Materials and Methods:
gVim
Vivado
Basys 3 board
Results
1. Repeat the simulation in Sections 1 - 3. (20 points)
Section 1: SR Latch/Flip-Flop
SR Latch
Here is the code for the SR Latch module and test bench:
![](img/SR_latch_code.png)
Figure 1: SR Latch Code module and test bench.
Here are the results from the simulation:
![](img/SR_latch_SIM.png)
Figure 2: SR Latch simulation results.
Flip-Flop
Here's the code for the SR Flip-Flop module and test bench:
![](img/SR_flipflop_code.png)
Figure 3: SR Flip-Flop module and test bench code.
Here are the results from the simulation:
![](img/SR_FlipFlop_SIM.png)
Figure 4: Results from the SR Flip-Flop simulation.
Section 2: D-Latch
Here is the code for the D-Latch module and test bench:
![](img/D_Latch_code.png)
Figure 5: Code for the D-Latch module and test bench.
Here are the results from the D-Latch simulation:
![](img/D_Latch_SIM.png)
Figure 6: Results from the D-Latch simulation.
Section 3: Edge Triggered D-Flip-Flop
Here's the code for the D-Flip-Flop module and test bench:
![](img/D_flipflop_code.png)
Figure 7: Code for the D-Flip-Flop module and test bench.
Here are the results from the simulation:
![](img/D_flipflop_sim.png)
Figure 8: Results from the D-Flip-Flop simulation.
2. Write the testbenches and run simulations for Section 4 and Section 5. (20 points)
Section 4: JK Flip-Flop
Here's the code for the JK-Flip-Flop module and test bench:
![](img/JK_Flipflop_code.png)
Figure 9: Code for the JK-Flip-Flop module and test bench.
Here is the results from the simulation:
![](img/JK_flipflop.png)
Figure 10: Results from the JK-Flip-Flop simulation.
Section 5: T-Flip-Flop
Here's the code for T-Flip-Flop module and test bench:
![](img/T_flipflop_code.png)
Figure 11: Code for the T-Flip-FLop module and test bench.
Here are the results from the simulation:
![](img/T_flipflop_SIM.png)
Figure 12: Simulation results for the T-Flip-Flop.
3. Repeat all the work in Section 8 and complete the task described in the end of Section 8. (60 points)
ROM 8-bit Binary:
Here is the code for the module and test bench:
![](img/ROM_8-bit_code.png)
Figure 13: Code for the ROM 8-Bit Binary module, test bench and memory .mem file.
Here are the results from the simulation:
![](img/ROM_8-bit_SIM.png)
Figure 14: Results from the ROM 8-Bit Binary simulation.
ROM 4-Bit Hex:
Here's the code for the ROM 4-Bit Hex module, test bench and mem file:
![](img/ROM_4-bit_hex.png)
Figure 15: ROM 4-Bit Hex module and test bench code.
Here are the results from the ROM 4-Bit Hex simulation:
![](img/ROM_4-bit_hex_SIM.png)
Figure 16: Simulation results from the ROM 4-Bit Hex simulation.
ROM 8-Bit Hex:
Here's the code for the ROM 8-Bit Hex module, test bench and .mem file:
![](img/ROM_8-bit_HEX.png)
Figure 17: ROM 8-Bit Hex module, test bench and .mem file.
Here are the results from the ROM 8-Bit Hex simulation:
![](img/ROM_8-bit_hex_SIM.png)
Figure 18: ROM 8-Bit Hex simulation results.
ROM 3-Bit Binary:
Here's the code for the ROM 3-Bit Binary module, test bench and .mem file:
![](img/ROM_3-bit_Binary_code.png)
Figure 19: Code for the ROM 3-Bit Binary module, test bench and .mem file.
Here are the results for the ROM 3-Bit Binary simulation:
![](img/ROM_3-bit_Binary_SIM.png)
Figure 20: Results from the ROM 3-Bit Binary simulation.