Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me with this hw. Will give thumbs up! Question 1. Consider the following datapath: Shift left 2 Add ALU Add 0 Q1 (c)
Please help me with this hw. Will give thumbs up!
Question 1. Consider the following datapath: Shift left 2 Add ALU Add 0 Q1 (c) What is the output of this add? Instruction (31-28 Control Q1 (E) List the nine control outputs. Read register Read Instruction 25-211 Read address Instruction (20-161 Instruction (31-01 Instruction Instruction 115-11 memory Zoro Read data 1 register 2 Write Read ALU ALU MS data Road register data 2 Write data Register wees de memory Instruction 15-01 16 32 Sign extend ALU control Instruction 15-01 a) [7 points] Can the following instruction be realized on the given datapath? Justify your answer. J target b) [7 points] Can the following instruction be realized on the given datapath? Justify your answer. beq $1, $2,8 c) [7 points] Given the datapath, and the following instruction, what will be the value after the Add ALU result? See the figure above. Assume the Program Counter of the instruction is 50. beq $1, $2,8 d) [7 points] Can the following instruction be realized on the given datapath? sw rt, offset(rs) e) [7 points] What is the effect on the following instruction if the RegDst is zero? add rd, rs, rt f) [8 points] Populate the table below with the correct values of each of the control flags listed to make a load word instruction work. RegDst Branch MemRead MemtoReg MemWrite RegWrite g) [7 points] List all the 9 control outputs the correct sequence from the top of the control unit to the bottom of the control unit in the figure above. Question 1. Consider the following datapath: Shift left 2 Add ALU Add 0 Q1 (c) What is the output of this add? Instruction (31-28 Control Q1 (E) List the nine control outputs. Read register Read Instruction 25-211 Read address Instruction (20-161 Instruction (31-01 Instruction Instruction 115-11 memory Zoro Read data 1 register 2 Write Read ALU ALU MS data Road register data 2 Write data Register wees de memory Instruction 15-01 16 32 Sign extend ALU control Instruction 15-01 a) [7 points] Can the following instruction be realized on the given datapath? Justify your answer. J target b) [7 points] Can the following instruction be realized on the given datapath? Justify your answer. beq $1, $2,8 c) [7 points] Given the datapath, and the following instruction, what will be the value after the Add ALU result? See the figure above. Assume the Program Counter of the instruction is 50. beq $1, $2,8 d) [7 points] Can the following instruction be realized on the given datapath? sw rt, offset(rs) e) [7 points] What is the effect on the following instruction if the RegDst is zero? add rd, rs, rt f) [8 points] Populate the table below with the correct values of each of the control flags listed to make a load word instruction work. RegDst Branch MemRead MemtoReg MemWrite RegWrite g) [7 points] List all the 9 control outputs the correct sequence from the top of the control unit to the bottom of the control unit in the figure aboveStep 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