Question: Performance Modelling - RISC - V processor This project will require you to implement cycle - accurate simulators of a 3 2 - bit RISC

Performance Modelling - RISC-V processor
This project will require you to implement cycle-accurate simulators of a 32-bit RISC-V processor in C++ or
Python. The skeleton code for the assignment is given in file (NYU_RV32I_6913.cpp or
NYU_RV32I_6913.py).
The simulators should take in two files as inputs: imem.text and dmem.txt files
The simulator should give out the following:
cycle by cycle state of the register file (RFOutput.txt)
Cycle by cycle microarchitectural state of the machine (StateResult.txt)
Resulting dmem data after the execution of the program (DmemResult.txt)
The imem.txt file is used to initialize the instruction memory and the dmem.txt file is used to initialize the
data memory of the processor. Each line in the files contain a byte of data on the instruction or the data
memory and both the instruction and data memory are byte addressable. This means that for a 32 bit
processor, 4 lines in the imem.txt file makes one instruction. Both instruction and data memory are in
"Big-Endian" format (the most significant byte is stored in the smallest address).
The instructions to be supported by the processor are categorized into the following types:
The simulator should support the following set of instructions.
Tasks: 1) Draw the schematic for a single stage processor and fill in your code in the to run the simulator. (20 points) 2) Draw the schematic for a five stage pipelined processor and fill in your code to run the simulator. The processor should be able ot take care of RAW and control hazards by stalling and forwarding. (20 points) 3) Measure and report average CPI, Total execution cycles, and Instructions per cycle for both these cores by adding performance monitors to your code. (Submit code and print results to console or a file.)(5 points) 4) Compare the results from both the single stage and the five stage pipelined processor implementations and explain why one is better than the other. (5 points) 5) What optimizations or features can be added to improve performance? (Extra credit 1 point)
 Performance Modelling - RISC-V processor This project will require you to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!