Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we have the following options for the ALUSel and ImmSel: Now we are tasked to write the control signals for different instructions. For each

Suppose we have the following options for the ALUSel and ImmSel:
Now we are tasked to write the control signals for different instructions.
For each instruction listed below, write the corresponding control signals as a group of 13-bit binary code
that follows the bit order below:
For control signals that are not relevant to the instruction,_put "x" for every bit of the control signal
As an example, the addi instruction will have the following control signals:
Here's the explanation for the addi control signals:
PCSel =0, because you just execute the next instruction after addi if ever (it's not a jump or branch
instruction), so you just select pc+4 branch. PC+4 branch corresponds to multiplexer input 0.
RegWEn =1, because we have to write back to the register file to save the result of the addi instruction to
rd.
ImmSel =00, because addi is an l-type instruction, so you take in the l-type immediate. This
corresponds to 00 according to the provided table.
BrUn=x, we technically don't care about this signal because we are not executing a branch instruction,
so we put "X".
ASel =0, because we have to select the output from the register file (this is rs1). Register file output (rs1)
corresponds to the multiplexer input 0.
BSel=1, because we have to select the immediate for the addi instruction. Immediate generator output
corresponds to the multiplexer input 1.
ALUSel 000, because we have to select the addition operation on the ALU. This corresponds to 000
according to the provided table.
MemRW=0, because we don't have to write to the memory.
WBSel =01, because we have to select the output of the ALU to be written back to the register file. ALU
output corresponds to the multiplexer input 1(so binary 01).
This 13-bit code can then be written as 010001000001. Now it's your turn. For the following instructions, write the corresponding 13-bit binary string (without the 0b prefix) that would correspond to the control signals to properly execute the instruction. All answers should be 13 bits long.
Q1.1: or instruction. Q1.2: lw instruction. Q1.3: sw instruction . Q1.4: jal instruction. Q1.5: bgeu instruction (assume that the branch condition is true in this case)
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_2

Step: 3

blur-text-image_3

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

Database Systems For Advanced Applications 27th International Conference Dasfaa 2022 Virtual Event April 11 14 2022 Proceedings Part 2 Lncs 13246

Authors: Arnab Bhattacharya ,Janice Lee Mong Li ,Divyakant Agrawal ,P. Krishna Reddy ,Mukesh Mohania ,Anirban Mondal ,Vikram Goyal ,Rage Uday Kiran

1st Edition

3031001257, 978-3031001253

More Books

Students also viewed these Databases questions

Question

Is marketing one-way or two-way communication? Why?

Answered: 1 week ago

Question

7. Identify six intercultural communication dialectics.

Answered: 1 week ago