Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. [20pt] Assume an instruction: 0x00c6ba23 is located in memory at address: 0x0f1230b8. Answer the following questions when the instruction is executed based on the

3. [20pt] Assume an instruction: 0x00c6ba23 is located in memory at address: 0x0f1230b8. Answer the following questions when the instruction is executed based on the datapath and control shown in Figure 4.17.

a. What are the values of the ALU Control to the ALU unit?

b. What is the PC address after this instruction is executed?

c. What is the values (either 0 or 1) of the control signals to the three multiplexers?

d. What are the input values for the ALU?

image text in transcribed

0 Add 4 ALU Add result 1 Shift left 2 Instruction (31-26] RegDst Branch MemRead MemtoReg Control ALUOp MemWrite ALUST RegWrite PC Instruction [25-21) Read address Instruction (2016) Instruction [31-01 Instruction instruction [15-11) memory Read register 1 Read Read data 1 register 2 Write Read Zero ALU ALU Read Address data result register data 2 Write data Registers Write Data data memory Instruction [15-01 16 32 Sign- extend ALU control Instruction (5-0) FIGURE 4.17 The simple datapath with the control unit. The input to the control unit is the 6-bit opcode field from the instruction. The outputs of the control unit consist of three 1-bit signals that are used to control multiplexors (RegDst, ALUSrc, and Memto Reg), three signals for controlling reads and writes in the register file and data memory (RegWrite, MemRead, and Mem Write), a 1-bit signal used in determining whether to possibly branch (Branch), and a 2-bit control signal for the ALU (ALUO). An AND gate is used to combine the branch control signal and the Zero output from the ALU; the AND gate output controls the selection of the next PC. Notice that PCSrc is now a derived signal, rather than one coming directly from the control unit. Thus, we drop the signal name in subsequent figures

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

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

2. Show the trainees how to do it without saying anything.

Answered: 1 week ago