Skip to content

MeanPaper/Pipeline-RV32i-Processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Pipelined Implementation of the RV32I Processor

By the collaboration of Dongming Liu, Elijah Ye, Tracy Miao
UIUC ECE411 FA23 | October 2023 ~ December 2023

Running the Processor

To customize processor cache

  1. Go to src/sram/config/ and change the values of word_size and num_words following files: L2_data_array.py, L2_tag_array.py, mp3_data_array.py, and mp3_tag_array.py. Note: Due to the limitataion of OpenRAM, the minimum value of num_words needs to be 16
  2. Run the following commands to generate SRAM
    $ cd sram
    $ make
    
  3. Change the localparam in mp4.sv under src/hdl. If you change the number of ways, you need to run to generate update logics. You can do this by running plru_update_generate.py under src/ with the correct number of ways.

To run program without M-Extension

Run the following commands under src/

$ make run_top_tb PROG=testcode/competition/coremark_rv32i.elf
$ make spike ELF=testcode/competition/coremark_rv32i.elf
$ diff -s sim/spike.log sim/golden_spike.log > sim/diff.log
$ cd synth
$ make synth

To run program with M-Extension

Run the following commands under src/

$ make run_top_tb PROG=testcode/competition/coremark_rv32im.elf
$ make spike ELF=testcode/competition/coremark_rv32im.elf
$ diff -s sim/spike.log sim/golden_spike.log > sim/diff.log
$ cd synth
$ make synth

Documentation

Design Report
CP0 - Design Checkpoint Design
CP1 - RV32I ISA, Basic Pipelining Design
CP2 - Hazard Control, L1 Cache,
Forwarding, Static Branch Prediction
Design
CP3 - Advanced Design Options
CP4 - Design Competition Demo
Report

Academic Integrity

Please review the University of Illinois Student Code, particularly all subsections of Article 1, Part 4 - Academic Integrity Policy and Procedure.

Legal Notice

This work is protected under the GNU General Public License v3.0.
Copyright (c) 2023 Elijah Gaohan Ye, Dongming Liu, Tracy Miao, Jian Huang

The software programs described in the documents are confidential and proprietary products of Synopsys Corp. or its licensors. The terms and conditions governing the sale and licensing of Synopsys products are set forth in written agreements between Synopsys Corp. and its customers. No representation or other affirmation of fact contained in this publication shall be deemed to be a warranty or give rise to any liability of Synopsys Corp. whatsoever. Images of software programs in use are assumed to be copyright and may not be reproduced.

The documents are for informational and instructional purposes only. The ECE 411 teaching staff reserves the right to make changes in specifications and other information contained in this publication without prior notice, and the reader should, in all cases, consult the teaching staff to determine whether any changes have been made.