Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( b ) Control Path - For the given code, write the values of the control signals for each instruction. You may group the instructions

(b) Control Path - For the given code, write the values of the control signals for each instruction.
You may group the instructions with the same control signals.
The control signals to be included are: ALUOp, ALU control output (ALU ctrl), Branch, Jump, PCSrc, Regdst, ALUSrc, MemtoReg, RegWrite, MemRead and MemWrite
\table[[Instr,\table[[ALU],[Op]],\table[[ALU],[ctrl]],\table[[Reg],[dst]],\table[[ALU],[Src]],\table[[Memto],[Reg]],Branch,Jump,\table[[PC],[Src]],\table[[Reg],[Write]],\table[[Mem],[Read]],\table[[Mem],[Write]]],[,,,,,,,,,,,]]
(c) Execution Time - For the given code, compute the execution time for each instruction and for the complete code based on the following information.
(i) Given the following access times for the critical functional units, compute the time taken to execute each instruction. You may group the instructions with the same execution time.
Memory Access =0.25ns;
Register Access =0.13ns;
ALU execution =0.18ns
(ii) Assuming all instructions are executed using a fixed clock cycle length. What is the execution time for the complete code/program?Question 1: The following MIPS Code is executed using the single cycle MIPS architecture. Include all iterations of the loop while answering the questions.
Start: addiu $t6, $0,64
addi $t8, $0,8
add $s1, $s0, $t8
Loop: slt $t0, $s0, $s1
beq $ to, $0, Exit
lbu $t1,0($s0)
sub $t1, $t1, $t6
sb $t1,0($s0)
addi $s0, $s0,1
j Loop
Exit:
(a) Data Path - For the given code, write the Functional Units used in order.
Specify if any Functional Units (FUs) are used at the same time for the same instruction, for example PC+4 Adder is used while Instruction Memory is in use.
For Multiplexors, if the output of the MUX is used, then it implies that the MUX is used (i.e., if the select lines are 0 or 1 and not don't cares, then the MUX is used). Similarly, if any FU output is unused, we assume that the FU is unused.
You may group the instructions with the same datapath.
You may use the following notations for the Functional Units or the image on the next page.
Instruction Memory (IM), Data Memory (DM), Register File (RF), Arithmetic and Logical Unit (ALU), Program Counter Register (PC), Sign Extension block (SE), Control Unit (ctrl1), ALU control unit (ctrl2), PC+4 Adder (add1), Branch PC target Adder (add2), Shift Left 2(sII), Regdst MUX (mux1), ALUSrc MUX (mux2), MemtoReg MUX (mux3), PCSrc MUX (mux4), Jump MUX (mux5).
Question 1: The following MIPS Code is executed using the single cycle MIPS architecture. Include all iterations of the loop while answering the questions.(a) Data Path - For the given code, write the Functional Units used in order.
Specify if any Functional Units (FUs) are used at the same time for the same instruction, for example PC+4 Adder is used while Instruction Memory is in use.
For Multiplexors, if the output of the MUX is used, then it implies that the MUX is used (i.e., if the select lines are 0 or 1 and not don't cares, then the MUX is used). Similarly, if any FU output is unused, we assume that the FU is unused.
You may group the instructions with the same datapath.
You may use the following notations for the Functional Units or the image on the next page.
Instruction Memory (IM), Data Memory (DM), Register File (RF), Arithmetic and Logical Unit (ALU), Program Counter Register (PC), Sign Extension block (SE), Control Unit (ctrl1), ALU control unit (ctrl2), PC+4 Adder (add1), Branch PC target Adder (add2), Shift Left 2(sII), Regdst MUX (mux1), ALUSrc MUX (mux2), MemtoReg MUX (mux3), PCSrc MUX (mux4), Jump MUX (mux5).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

What are go/no-go controls?

Answered: 1 week ago

Question

What are the other economic side effects of accidents?

Answered: 1 week ago