BEST代写-线上编程学术专家

Best代写-最专业靠谱代写IT | CS | 留学生作业 | 编程代写Java | Python |C/C++ | PHP | Matlab | Assignment Project Homework代写

C语言代写 | ECE 449/533 – Computer Design Pipeline the DLX architecture

C语言代写 | ECE 449/533 – Computer Design Pipeline the DLX architecture

这个作业是用C语言将模拟器修改为流水线处理器模拟器

ECE 449/533 – Computer Design
Spring 2020
Pipeline the DLX architecture
Purpose: The objective of this lab is to understand a simple unpipelined DLX architecture
simulator and to then pipeline the system.
Details:
Download, compile, and run the DLX simulator. It is recommended you use gcc to compile
your code as your submissions will be graded in this environment. Instructions to install gcc
can be seen at:
https://github.com/orlp/dev-on-windows/wiki/Installing-GCC–&-MSYS2
Examine sim.c file to understand how it is simulating an unpipelined simulator. Your objective
is to modify this simulator into a pipelined processor simulator.
In order to simulate a pipelined processor, you will need to add five pipeline stages into the
simulator as defined in Chapter 4. Each pipeline stage should be modeled in a separate
function call from the main simulator loop in sim.c (in other words, these five function calls
will replace the simulate_DLX_cycle call). You will need to add pipeline registers between
each pipeline stage.
The simulator WILL implement data forwarding. It will detect data and control hazards.
Control instructions are to be resolved in the decode phase.
You can check your simulator by comparing the final register values of the unpipelined
simulator with your pipelined version. Five programs prog1 to prog5 are provided to you for
testing. Additionally you can install the winmips64 simulator in winmips64.zip under windows
to examine see how instructions should be handled. To use winmips64, run the equivalent
program files in dlx_prog_winmips64.zip in this simulator.
To turn in: Each student is required to upload their code by Tuesday, April 7, 2020 at
11:55pm to Isidore.
Three files should be uploaded: sim.c, assemble.c, and globals.h.
Collaboration: Work turned in for this lab and for all others throughout the semester must be
completed by each individual student.

bestdaixie