1. Homepage
  2. Programming
  3. CS 2410 Computer Architecture - Course Project: Simulation of PowerPc 604 and 620 architectures

CS 2410 Computer Architecture - Course Project: Simulation of PowerPc 604 and 620 architectures

Engage in a Conversation
PITTCS2410Computer ArchitectureRISC VCC++PythonAssembly

CS 2410 Computer Architecture Spring 2024
Course Project
CourseNana.COM

Introduction: CourseNana.COM

This is a single-person project. CourseNana.COM

You are allowed and encouraged to discuss the project with your classmates, but no sharing of the project source code and report. Please list your discussion peers, if any, in your report submission. CourseNana.COM

One benefit of a dynamically scheduled processor is its ability to tolerate changes in latency or issue capability in out of order speculative processors. CourseNana.COM

The purpose of this project is to evaluate this effect of different architecture parameters on a CPU design by simulating a modified (and simplified) version of the PowerPc 604 and 620 architectures. We will assume a 32-bit architecture that executes a subset of the RISC V ISA which consists of the following 10 instructions: fld, fsd, add, addi, slt, fadd, fsub, fmul, fdiv, bne. See Appendix A in the textbook for instructions’ syntax and semantics. CourseNana.COM

Your simulator should take an input file as a command line input. This input file, for example, prog.dat, will contain a RISC V assembly language program (code segment). Each line in the input file is a RISC V instruction from the aforementioned 10 instructions. Your simulator should read this input file, recognize the instructions, recognize the different fields of the instructions, and simulate their execution on the architecture described below in this handout. Your will have to implement the functional+timing simulator. CourseNana.COM

Please read the following a-g carefully before you start constructing your simulator. CourseNana.COM

The simulated architecture is a speculative, multi-issue, out of order CPU where: CourseNana.COM

(Assuming your first instruction resides in the memory location (byte address) 0x00000hex. That is, the address for the first instruction is 0x00000hex. PC+4 points to next instruction). CourseNana.COM

a. The fetch unit fetches up to NF=4 instructions every cycle (i.e., issue width is 4). CourseNana.COM

b. A 2-bit dynamic branch predictor (initialized to predict weakly taken(t)) with 16-entry branch target buffer (BTB) is used. It hashes the address of a branch, L, to an entry in the BTB using bits 7-4 of L. CourseNana.COM

c. The decode unit decodes (in a separate cycle) the instructions fetched by the fetch unit and stores the decoded instructions in an instruction queue which can hold up to NI=16 instructions. CourseNana.COM

d. Up to NW=4 instructions can be issued every clock cycle to reservation stations. The architecture has the following functional units with the shown latencies and number of reservation stations. CourseNana.COM

Unit CourseNana.COM

INT CourseNana.COM

Load/Store CourseNana.COM

FPadd FPmult FPdiv BU CourseNana.COM

Latency (cycles) for operation CourseNana.COM

Reservation stations CourseNana.COM

Instructions executing on the unit
add, addi,slt CourseNana.COM

fld
fsd
fadd, fsub fmul
fdiv
bne
CourseNana.COM

1 (integer and logic operations) 4 CourseNana.COM

1 for address calculation CourseNana.COM

3 (pipelined FP add)
4 (
pipelined FP multiply)
8 (
non-pipelined divide)
1 (condition and target evaluation)
CourseNana.COM

2 load buffer + 2 store buffer 3
3
CourseNana.COM

2 2 CourseNana.COM

e. A circular reorder buffer (ROB) with NR=16 entries is used with NB=4 Common Data Busses (CDB) connecting the WB stage and the ROB to the reservation stations and the register file. You have to design the policy to resolve contention between the ROB and the WB stage on the CDB busses. CourseNana.COM

f. You need to perform register renaming to eliminate the false dependences in the decode stage. Assuming we have a total of 32 physical registers (p0, p1, p2, ...p31). You will need to implement a mapping table and a free list of the physical register as we discussed in class. Also, assuming that all of the physical registers can be used by either integer or floating point instructions. CourseNana.COM

g. A dedicated/separate ALU is used for the effective address calculation in the branch unit (BU) and simultaneously, a special hardware is used to evaluate the branch condition. Also, a dedicated/separate ALU is used for the effective address calculation in the load/store unit. You will also need to implement forwarding in your simulation design. CourseNana.COM

The simulator should be parameterized so that one can experiment with different values of NF, NI, NW, NR and NB (either through command line arguments or reading a configuration file). To simplify the simulation, we will assume that the instruction cache line contains NF instructions and that the entire program fits in the instruction cache (i.e., it always takes one cycle to read a cache line). Also, the data cache (single ported) is very large so that writing or reading a word into the data cache always takes one cycle (i.e., eliminating the cache effect in memory accesses). CourseNana.COM

Your simulation should keep statistics about the number of execution cycles, the number of times computations has stalled because 1) the reservation stations of a given unit are occupied, 2) the reorder buffers are full. You should also keep track of the utilization of the CDB busses. This may help identify the bottlenecks of the architecture. CourseNana.COM

You simulation should be both functional and timing correct. For functional, we check the register and memory contents. For timing, we check the execution cycles. CourseNana.COM

Comparative analysis: CourseNana.COM

After running the benchmarks with the parameters specified above, perform the following analysis: CourseNana.COM

  1. 1)  Study the effect of changing the issue and commit width to 2. That is setting CourseNana.COM

    NW=NB=2 rather than 4. CourseNana.COM

  2. 2)  Study the effect of changing the fetch/decode width. That is setting NF = 2 rather than 4. CourseNana.COM

  3. 3)  Study the effect of changing the NI to 4 instead of 16. CourseNana.COM

  4. 4)  Study the effect of changing the number of reorder buffer entries. That is setting NR = CourseNana.COM

    4, 8, and 32 CourseNana.COM

You need to provide the results and analysis in your project report. CourseNana.COM

Project language: CourseNana.COM

You can ONLY choose C/C++ (highly recommended) or Python to implement your project. No other languages. CourseNana.COM

Test benchmark CourseNana.COM

Use the following as an initial benchmark (i.e. content of the input file prog.dat). CourseNana.COM

%All the registers have the initial value of 0. %memory content in the form of address, value. 0, 111
8, 14
16, 5
24, 10
100, 2
108, 27
116, 3
124, 8
200, 12
CourseNana.COM

addi R1, R0, 24 addi R2, R0, 124 fld F2, 200(R0) CourseNana.COM

fld F0, 0(R1) fmul F0, F0, F2 fld F4, 0(R2) fadd F0, F0, F4 fsd F0, 0(R2) addi R1, R1, -8 addi R2, R2, -8 bne R1,$0, loop CourseNana.COM

(Note that this is just a testbench for you to verify your design. Your submission should support ALL the instructions listed in the table and you should verify and ensure the simulation correctness for different programs that use those nine instructions. When you submit your code, we will use more complicated programs (with multiple branches and all instructions in the table) to test your submission). CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
PITT代写,CS2410代写,Computer Architecture代写,RISC V代写,C代写,C++代写,Python代写,Assembly代写,PITT代编,CS2410代编,Computer Architecture代编,RISC V代编,C代编,C++代编,Python代编,Assembly代编,PITT代考,CS2410代考,Computer Architecture代考,RISC V代考,C代考,C++代考,Python代考,Assembly代考,PITThelp,CS2410help,Computer Architecturehelp,RISC Vhelp,Chelp,C++help,Pythonhelp,Assemblyhelp,PITT作业代写,CS2410作业代写,Computer Architecture作业代写,RISC V作业代写,C作业代写,C++作业代写,Python作业代写,Assembly作业代写,PITT编程代写,CS2410编程代写,Computer Architecture编程代写,RISC V编程代写,C编程代写,C++编程代写,Python编程代写,Assembly编程代写,PITTprogramming help,CS2410programming help,Computer Architectureprogramming help,RISC Vprogramming help,Cprogramming help,C++programming help,Pythonprogramming help,Assemblyprogramming help,PITTassignment help,CS2410assignment help,Computer Architectureassignment help,RISC Vassignment help,Cassignment help,C++assignment help,Pythonassignment help,Assemblyassignment help,PITTsolution,CS2410solution,Computer Architecturesolution,RISC Vsolution,Csolution,C++solution,Pythonsolution,Assemblysolution,