How shahriar-0/computer-architecture-lab-experiments-f2023 works
Main Components
• CPU/Processor Core: At the heart of the system are modules like CPU.v, ALU.v, RegFile.v, and ControlUnit.v. These represent the processor’s datapath and control.
• Memory Components: Identify Instruction_Memory.v and DataMemory.v (or SRAM.v with its controller), which are essential for fetching instructions and storing data.
• Multiplexers and Registers: Modules like Mux2to1.v, Mux4to1.v, RegisterNegEdge.v, RegisterPosEdge.v play supportive roles in selecting data paths and clock edge-triggered storage.
• Testbench: It is worth mentioning the Testbench.v which is used for simulation and validation purposes.
Relationships and Interactions
• Data & Control Flow: Highlight the control path coming from the ControlUnit.v, which directs the operation of the ALU, registers, and memory accesses. Similarly, indicate the data flow through modules such as the RegFile, ALU, and multiplexer units.
• Hazard Management: Represent connections from the HazardUnit and ForwardingUnit to the control logic or datapath elements, indicating how they adjust or override normal flows to prevent issues.
• Memory Access: Illustrate how the Instruction_Memory and DataMemory (or associated SRAM components) interact with the CPU core, with particular emphasis on cache memory which is treated in later iterations (ARM-7).
Architectural Patterns and Design Principles
• Pipeline Architecture: Since the project is designed with pipelined stages, emphasize how instructions move from one stage to the next.
• Modular Component Design: Each Verilog file corresponds to a specific module, following a modular design principle that simplifies integration and testing.
• Handling of Hazards: Include explicit notes on mitigation of data hazards through dedicated units (HazardUnit, ForwardingUnit), a key part of processor design.
• Simulation Support: Acknowledge that there is a simulation setup (Testbench.v and supporting ModelSim output directories) which is vital for verifying the digital design.
Relevant Technologies and Frameworks
• Verilog HDL is the key technology.
• Simulation technologies such as ModelSim or similar EDA tools play a role in generating signal traces and verifying operation.
• The project also references educational documents (such as ARM_ISA.pdf and the lab report) that may include additional architectural insights to incorporate.