Answered step by step
Verified Expert Solution
Link Copied!

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:
CPU-Bus
Figure 1: A simplified CPU
In the data path shown, the S1, S2 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 S1 will be read into RFOUT1, while register S2
will be read into RFOUT2. 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. [3].
(ii) Write down the data transfer and transformation sequences for the function
call and return instructions, including instruction fetch. [8]
The following is the format of the added instructions: The two-word instruction
CALL OFF(R1) where OFF(R1) 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 one-word instruction RET:
(b) The CPU XT-360 uses an one-instruction format. For example, the instruction
ADD has the format ADD R1, where R1 is the explicit register operand.
(i) How many operands do the ADD intruction have, and where are the other
operands not specified? [2]
(ii) What kind(s) of pipeline hazard exist in the following instruction sequence?
Explain. [3]
ADD R1
SUB R3
(iii) Suggest a way to re-design the instruction format so that there will be less
pipeline hazard described in (ii).[3]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Why are you interested in our program?

Answered: 1 week ago

Question

how important GAAP is in accounting standard?

Answered: 1 week ago