mirror of
https://github.com/MPSU/APS.git
synced 2026-06-10 11:13:33 +00:00
Lab 9. Integration of the Load/Store Unit
After implementing the load/store unit, it must be integrated into the processor system developed in Lab 7. Figure 1 shows a diagram illustrating the integration of components:
Figure 1. Connecting the LSU to the processor system.
Preparation Materials
Before performing this lab, it is recommended to study the theoretical part of Lab #8.
Assignment
Integrate the lsu module into the processor_system module.
Steps
- Integrate the
lsuanddata_memmodules into theprocessor_systemmodule.- Note that the
stallsignal logic must be removed from theprocessor_systemmodule, since it has been moved inside thelsumodule.
- Note that the
- After integration, verify the processor system using the program and verification environment from Lab 7.
- As with testing the CYBERcobra architecture processor, you will not be explicitly told whether the test passed. You need to manually check, cycle by cycle, that the processor correctly executes the instructions described in Listing 1 of Lab 7 (see the procedure in Lab #4). To do this, first determine yourself what each instruction should do, and then verify that the processor does exactly that.
- Pay attention to how the instructions
sw,sh,sb,lw,lh,lb,lhu,lbuare executed now.
- This lab does not require testing on FPGA.