Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the MIPS ALU operations below: MIPS ALU. Computes a result as follows: c - - - - - - - - - - - C

the MIPS ALU operations below:
MIPS ALU. Computes a result as follows:
c
-----------
C=A+B
C=BBC=B
C=BSaC=A-B
C=hat(C)BC=(A|B)
C=(A+B)?1:0C=(A>0)?1:0
C=(A=0)?1:0
Determine the mapping of Opcode bits to ALU OP bits.
We will be implementing the Opcodes in white. Notice that some of the opcodes will use the ALU,
and some will not. Of the ones that will use the ALU, we need to map four of the bits to the ALU
OP input so it will provide the correct output when the Opcode is found in our instruction.
Your job is to figure out a particular mapping that will work, using the bits we have. Notice the
overlaps in the operations that have the SPECIAL opcode and those that don't: this will be the key
to figuring out how to go about producing the correct translation.
For this project, you only need to figure out a mapping for the functions that the ALU supports (in
other words, don't worry about mapping the Branch, Jump, Move, Load, Store, or Set instructions.)
Question: Using the last 4 digits of your student ID to construct the test patterns for input data A
and B. Assume your student ID is: x6x5x4x3x2x1x0, treat each digit as Hexadecimal number,
then:
A=0x(x3(A)x2Bx1Cxx0D);
B=0x(x0Cl1x1,D2Ex3(F)).
For example, if your student ID is 1234567, then take last 4 digits ("4567"), your data input to the
ALU will be ("0x" means 16-based hexadecimal format):
6C 7D
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

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

=+ Consider practical approaches to policy development.

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago