Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE SHOW ALL THE VALUES OF THE CONTROL SIGNALS THAT ARE ACTIVATED IN THE EXECUTION OF INS (20 pts) Figure 1 shows the datapath for
PLEASE SHOW ALL THE VALUES OF THE CONTROL SIGNALS THAT ARE ACTIVATED IN THE EXECUTION OF INS
(20 pts) Figure 1 shows the datapath for the single-cycle implementation of the subset of MIPS instructions studied in this course. On Figure 1, show the values of all the control signals that are activated in the execution of the instruction sw $ 30, 37($ 31), assuming that register 30 contains the two's complement representative of -10 (base 10) and register 31 contains the two's complement representative of 16 (base 10). Assume the PC is 0x20. (a) Give the hex representation of the command. (b) What is the sign-extended value and the left shifted values of offset? (c) Where (what address) is the data stored? (d) Show the control signals on Figure 1. Single Cycle Computer PC_Shift Instruction [25-01 Shift Jump address (31-01 26 left 2 28 1 PC+4 (31-28) M PC_4 Branch TargetAddress ALU > Add result Offset shifted BTA OPC4 > Add Shift Offset_SE lett 2 PCSC 4 Instruction (31-26) RegDst Jump Branch MemRead Control MemtoReg ALUControl MemWrite ALUSTO RegWrite Instruction NextPC Instruction (5-01 ProgramCounter Instruction (25-21] EqualZero Road register 1 Read address IPC BusA Read data 1 Instruction [20-16] Read register 2 Registers Read BusB Instruction (31-0) Instruction memory Zora > ALU ALU result Write register data 2 Address Read data instruction Mall Write data Data memory Write data 16 Instruction (15-0) 32 Sign extend ALUresult BusW (20 pts) Figure 1 shows the datapath for the single-cycle implementation of the subset of MIPS instructions studied in this course. On Figure 1, show the values of all the control signals that are activated in the execution of the instruction sw $ 30, 37($ 31), assuming that register 30 contains the two's complement representative of -10 (base 10) and register 31 contains the two's complement representative of 16 (base 10). Assume the PC is 0x20. (a) Give the hex representation of the command. (b) What is the sign-extended value and the left shifted values of offset? (c) Where (what address) is the data stored? (d) Show the control signals on Figure 1. Single Cycle Computer PC_Shift Instruction [25-01 Shift Jump address (31-01 26 left 2 28 1 PC+4 (31-28) M PC_4 Branch TargetAddress ALU > Add result Offset shifted BTA OPC4 > Add Shift Offset_SE lett 2 PCSC 4 Instruction (31-26) RegDst Jump Branch MemRead Control MemtoReg ALUControl MemWrite ALUSTO RegWrite Instruction NextPC Instruction (5-01 ProgramCounter Instruction (25-21] EqualZero Road register 1 Read address IPC BusA Read data 1 Instruction [20-16] Read register 2 Registers Read BusB Instruction (31-0) Instruction memory Zora > ALU ALU result Write register data 2 Address Read data instruction Mall Write data Data memory Write data 16 Instruction (15-0) 32 Sign extend ALUresult BusWStep 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