Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the following code section, the address of the first instruction is 02BB4E4A in hexadecimal. Assume 2 bit ALU Op derived from opcode. subtract ALU

In the following code section, the address of the first instruction is 02BB4E4A in hexadecimal.

Assume 2 bit ALU Op derived from opcode.

subtract ALU control - 0010

 (852 instructors) sub $s3, $t8, $t5 

Suppose the instruction sub $s3, $t8, $t5 is executed by the processor shown in the diagram below. Right before the instruction is executed, ($t8) = 227 (in decimal), and ($t5) = 13 (in decimal).

Provide the values sent to the following ports:

  • Write data of Registers (in hexadecimal)
  • Read address of Instruction Memory (in hexadecimal)
  • Read register 1 of Registers (in binary)

Also provide the output from the following ports/units:

  • PC adder (in hexadecimal)
  • Jump address (in hexadecimal)
  • Read data of Data memory (in hexadecimal)

as well as the following control signals:

  • MemWrite (1 bit)
  • MemtoReg (1 bit)
  • RegWrite (1 bit)

If the value cannot be known (for example the output of data memory when it is written), or if it is a control signal that does not matter, mark it with an X. Please provide the answer as a sequence of number separated by comma, e.g, 00110, ABCD1234,X,0,11001,1234ABCD,1,X,0. Use uppercase letters for hexadecimal digits.

image text in transcribed

Instruction (250] Shift Jump address [310] 26 left 2 28 PC +4 [31-28] Branch Adder SX Add ALU PC Adder left 2 RegDst Jump Branch MemRead MemtoReg Instruction (31-26] Control ALUOP Mem Write ALUSrc RegWrite Instruction [2521] PC Read address Instruction [20-16] Zero ALU ALU Read register 1 Read Read data 1 data register 2 Write Read HO register data 2 Write data Registers Instruction (31-0] Instruction memory Read Address data result | Instruction (1511] OXC3 Write Data data memory Instruction (15-0] 16 Sign- ALU extend control Instruction (5-0) Instruction (250] Shift Jump address [310] 26 left 2 28 PC +4 [31-28] Branch Adder SX Add ALU PC Adder left 2 RegDst Jump Branch MemRead MemtoReg Instruction (31-26] Control ALUOP Mem Write ALUSrc RegWrite Instruction [2521] PC Read address Instruction [20-16] Zero ALU ALU Read register 1 Read Read data 1 data register 2 Write Read HO register data 2 Write data Registers Instruction (31-0] Instruction memory Read Address data result | Instruction (1511] OXC3 Write Data data memory Instruction (15-0] 16 Sign- ALU extend control Instruction (5-0)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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