Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your first task is to build out the instruction fetch unit. The instruction fetch unit is responsible for fetching the next instruction to execute. Figure
Your first task is to build out the instruction fetch unit. The instruction fetch unit is responsible for fetching the next instruction to execute. Figure in your book gives you a rough outline of the functionality of this module. The JMP input shown here is in essence, the PCSrc controller output shown in figure This line goes high whenever the CPU is executing some kind of branch. The jump address to be loaded into the program counter is provided via the WBBus input. Since this unit will contain the program counter register, it is essential that it be connected to the systemwide Reset and Clk signals. This way, when you reset the CPU, the program counter will reset to zero. A discussion of how this works starts on page of your textbook.
While building this its important to keep some details in mind. A real ARM CPU uses byte aligned memory and bit data words. This means that the next instruction is at PC We are using wordaligned memory with bit words. So for us the next instruction is at the next location in memory. Also, in ARM, R which is the PC register, always holds PC or two instructions ahead. Your book mentions that this is for historical reasons. Consequently, our last register, R will always point to the next instruction to be executed, PC This is why we have a PCPlus output. Note that we must provide the instruction memory address to the memory that is outside of the CPU via the IMAddress pin.
If you build this unit correctly, you should be able to step through memory full of zeros and see the instruction memory increase by one on every step. You should see the contents of the instruction memory on the instruction memory data display. Pressing reset should return the instruction memory address to zero. Please show an image of the completed task.
JMP
Clk
Reset
WBBus
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