Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the data path of a CPU as shown below: Figure 1 : A simplified CPU In the data path shown, the S 1 ,
Given the data path of a CPU as shown below:
Figure : A simplified CPU
In the data path shown, the S S and D fields in the instruction represent the two
source and one destination operands, and are directly comnected to the address port
of the register file. Register $ will be read into RFOU'T while rogister $ will be
resd into RFOUT RFIN will be written into register D Registers A and ure the
input registers and is the output register of the ALU.
a Describe how the following instructions will be executed inside the CPU:
i The oneword instruction ADDRielarrR
ii T'he word instruction: ADDDFF #IMGD, R ielarrUFF
#IMED where is the displacements addressing mode to specify the
memory address of the first sowre operand, and #IMMED is the immediate
mode for the second source operand, OFF stored in the second word of the
instruction, and ImMED slored in the third word.
b A processor provides an instruction YovBLK which will move a string of bytes
from one memory location to another. Suppose the fetching and decoding of
the instruction takes clock cycles, and it takes cloc cycles to transfer each
byue, and the processor has a clock rate of
i What is clock oycle time ie The time for one clock cycle
ii Determine the rumber of clock cycles needed to transfer a block of bytes,
ard hence the time rocuired to exccute this instruction.
iii Waen will the processor usually check for interrupts?
iv What is the problem with such a long executing instruction?
ci What are the kinds of pipelime Lazard? Describe each of them in not
more two lines.
ii What pipeline hazard exist. for a branch instruction? Suggest one way tc
alleviale such pipeline hadzard. Give a short explanation.
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