Question 3: Single-cycle Datapath (15 points) The following 32-bit MIPS instruction is fetched from the instruction memory: 001101 01010 01101 1010001110110100 Assume the data memory contains all zeros and the registers have the following values when the instruction is fetched ('0x' below means hex, otherwise when there is no '0x' it means decimal): Register $at $al $a3 $v1 $t2 $t5 $ra $v0 268695321 1092 OXDEADBEEF 933 0x40100000 Value 0 0xB612 320 320 a) Write the complete MIPS instruction (including all the involved registers, and the constant if there is any) that corresponds to the given 32-bit MIPS machine code. (4 points) ALU Add result 1 >Add ZeroExt RegDst Branch MemRead MemtoReg MemWrite ALUS ro RegWrite Zero SALU ALU result PC Instruc Instruction [31-26) Instruction [25-21) Read address Instruction [20-161 Address Instruction register memory Instruction [15-11] Write data Data memory Write data Instruction [15-0) Instruction 501 16 G 32 Zero extend Refer to the modified Datapath above for the questions below. There are 2 major changes in this datapath. First, we added a "Zero extend" unit (oval) that is capable of zero extending the imm value. Second, we added a 1-bit "ZeroExt" control signal with a corresponding multiplexer. Assume we are executing the instruction fetched in part (a). [31-01 Control ALUOP A. Read B. Read C.Write D Read data 1 E Registers Read L data 2 register 1 register 2 Hoax Shift ww left 2 32 SignG extend PCSre ALU control Read data
b) The labels A, B, C, D, E, F, G, and H in the datapath above indicate certain locations along the datapath. Find the data (in binary format) in the datapath for each of the labels. Note the data are with different bit widths (i.e. number of bits used) (8 points) A = B = C= D= E = F = G= H = c) Derive the value of label I in above diagram. Show your step(s) clearly otherwise no point will be given. Write the value of label I in 32-bit binary format (3 points)
Question 3: Single-cycle Datapath (15 points) The following 32-bit MIPS instruction is fetched from the instruction memo
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 3: Single-cycle Datapath (15 points) The following 32-bit MIPS instruction is fetched from the instruction memo
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!