Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create the VHDL files provided by in appendix A adding them to your VHDL project ( Remember you need only one project for the entire
Create the VHDL files provided by in appendix A adding them to your VHDL
project Remember you need only one project for the entire course
Fully comment the code provided in appendices A and B
Obtain the RTL schematics of the Instruction Fetch stage, and each of its
components. Write down the differences between these schematics and the ones
in Figure
Translate the code shown in the listing to binary using the basic instruction
formats shown in Figure and fill the two leftmost columns of Table with the
register letters u v w x y resolved to their equivalent numbers as explained
below.
Listing : Assembly Code
start: lw RuR
lw RvR
add Rw Ru Rv
sub Rx Ru Rv
sw RxR
slt Ry Ru Rv
beq Ru Ru start
where u is the first nonzero digit of your id number, v is the second nonzero digit of
your id number, w is the third nonzero digit of your id number, and x is the fourth non
zero digit of your id number, and y is a random number between and
Create a test bench file and run a simulation showing the operation of the instruction
fetch stage. You must first load your program Listing binary instructions obtained
in the previous step, into the instruction memory in order to have instructions to fetch.
To do that follow the sample test bench file shown in appendix B Your simulation
should look similar to the one in Figure only that it should include all instructions to
be loaded and fetched. Explain the results of that simulation using annotations on the
timing diagram.
Figure : IF simulation timing diagram for instructions. Source: Generated using Xilinx Vivado
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started