Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( a ) Given the data path of a CPU as shown below: CPU - Bus Figure 1 : A simplified CPU In the data
a Given the data path of a CPU as shown below:
CPUBus
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 connected to the address
port of the register file. Register S will be read into RFOUT while register S
will be read into RFOUT RFIN will be written into register D Registers A and B
are the input registers and C the output register of the ALU. There is a single
CPU bus in the data path.
We would like to add a function call CALL and return RET instruction to the
processor.
i Describe the required modification to the registers and data path of the
CPU in order to implement the added instructions.
ii Write down the data transfer and transformation sequences for the function
call and return instructions, including instruction fetch.
The following is the format of the added instructions: The twoword instruction
CALL OFFR where OFFR is the displacement addressing mode to specify
the address containing the target address of the function call, OFF stored in
the second word of the instruction.
The oneword instruction RET:
b The CPU XT uses an oneinstruction format. For example, the instruction
ADD has the format ADD R where R is the explicit register operand.
i How many operands do the ADD intruction have, and where are the other
operands not specified?
ii What kinds of pipeline hazard exist in the following instruction sequence?
Explain.
ADD R
SUB R
iii Suggest a way to redesign the instruction format so that there will be less
pipeline hazard described in ii
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