Lab Sheet 4
Lab Sheet 4
- 4 In this lab you will build a single-cycle processor. You will need to verify that it executes a given subset of the MIPS instruction set.
Datapath Design
Implement the needed components in Verilog. You may use behavioral or a combination of behavioral and structural Verilog features. All Verilog models should correspond to realistic components, such as, registers, comparators, shifters, etc.
Datapath Components
There are a few components you will need for your processor, including the following. Use components created by you in previous labs. 32bit ALU Extender sign/zero extender Multiplexers m16x2, m32x2, m32x3, m32x5, m5x2: multiplexers with various widths and number of inputs 32bit register Register File Shifter logical 32 PC (you have to create this in todays lab) Instruction Memory 32 words deep, 32bit wide (you have to create this in todays lab) Data Memory 32 words deep, 32 bit wide (you have to create this in todays lab)
Single-Cycle Data-Path
Develop an implementation in Verilog of a single-cycle processor for a subset of the MIPS architecture given below.
Supported Instructions
Build a single-cycle datapath that implements the following subset of MIPS instructions. arithmetic (signed) add, sub logical and, or branch beq data transfer lw, sw