Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. (10pts) Consider the LEGV8 datapath below that can perform R-type, I-type, D-type and CBZ instructions. For executing CBNZ instruction as well, (a) Are
3. (10pts) Consider the LEGV8 datapath below that can perform R-type, I-type, D-type and CBZ instructions. For executing CBNZ instruction as well, (a) Are there any additional logic blocks needed to add to the datapath? If yes, add the necessary logic blocks and control signal to it and explain their purpose. (b) Show the dataflow for the CBNZ instruction using dash lines on the figure below. Add 0 MX >Add, 4- ALU result 1 Reg2Loo Branch MemRead Shift left 2 Instruction [31-21] Control ALUOD MemWrite ALUSrc RegWrite Instruction [9-5] Read Read PC address Instruction [20-16]/0 register 1 Read M data 1 Read Zero Instruction [31-0] register 2 Instruction memory Instruction [4-0] follow Write register Read data 2 ALU ALU Read Address result data M M X Write 0 data Registers Write data memory Data Instruction [31-0] 32 64 Sign- extend ALU control Instruction [31-21] (c) How would you set the following control signals to support the CBNZ instruction? Reg2Loc Branch MemRead MemtoReg ALUOp MemWrite ALUSrc RegWrite
Step 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