Question 3 (45 points). With reference to the single clock cycle processor figure, answer the below questions assuming t
Posted: Mon May 02, 2022 12:06 pm
Question 3 (45 points). With reference to the single clock cycle processor figure, answer the below questions assuming the instruction fetched is the following: BEQ $3, $i, label
Add XS3 ALU Addresult Shift left 2) Instruction (31-26) RegDst Branch MemRead MemtoReg Control ALUOp MemWrite ALUSIC RegWrite Instruction (25-21] PC Read address 1 Instruction (20-16) Instruction (31-0) Instruction memory *xc39) Read register 1 Read data 1 Read register 2 Write Read data 2 register Write data Registers Zero ALU ALU result Address Read data Instruction (15-11) Ex- 2 Px3 Write Data data memory Instruction [15-01 16 32 Sign- extend ALU control Instruction (5-0)
The following table is for some of the registers and the data stored in decimal. Register Contents $0 10 $1 10 $2 20 $3 30 PC 12
1. (25 points) For the Register File unit, what are the values (in decimal) of the following? Read register 1 Read register 2 (RegWrite) Read data 1 Read data 2
2 [20 points) For the ALU unit, what are the inputs and what is the output (ALU result) (in decimal)? ALU inputs input 1 input 2: ALU result Zero
Add XS3 ALU Addresult Shift left 2) Instruction (31-26) RegDst Branch MemRead MemtoReg Control ALUOp MemWrite ALUSIC RegWrite Instruction (25-21] PC Read address 1 Instruction (20-16) Instruction (31-0) Instruction memory *xc39) Read register 1 Read data 1 Read register 2 Write Read data 2 register Write data Registers Zero ALU ALU result Address Read data Instruction (15-11) Ex- 2 Px3 Write Data data memory Instruction [15-01 16 32 Sign- extend ALU control Instruction (5-0)
The following table is for some of the registers and the data stored in decimal. Register Contents $0 10 $1 10 $2 20 $3 30 PC 12
1. (25 points) For the Register File unit, what are the values (in decimal) of the following? Read register 1 Read register 2 (RegWrite) Read data 1 Read data 2
2 [20 points) For the ALU unit, what are the inputs and what is the output (ALU result) (in decimal)? ALU inputs input 1 input 2: ALU result Zero