Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Convert the following machine code into MIPS assembly (work backwards from how you convert assembly to machine code) give any numeric values in decimal

1) Convert the following machine code into MIPS assembly (work backwards from how you convert assembly to machine code) give any numeric values in decimal (no hex):

0x8E5300AC

2)

A)

Convert the following C code to MIPS assembly:

C = C 10;

Assume that C is in register $s2

B)

Give the machine code of your answer from part A

3) Give the control signals (including ALUControl) of the following instructions

A)

add $s2, $s3, $s4

B)

addi $s2, $s3, 16

C)

beq $s4, $s5, Label

D)

sw $s1, 10($s4)

4) Give a brief description of how you would compare the performance of two systems based off of their CPI. Assume you have a frequency of how often certain instructions occur and the CPI of each instruction. Which system would you say has better performance (this is a question about the process, there are no actual calculations to perform and no data given)

5)

Given the CPU diagram below give the value at each labeled location in the CPU after 5 clock cycles given the following instructions:

assume all registers have values that are equivalent to the numeric value of the register, so $s0 has 16, $s1 has 17 and so on. All memory addresses have values that are equal to their address + 100. Assume

add $t1, $t3, $t4

lw $s2, 4($s3)

Label:

sub $s5, $s3, $s4

sw $t5, 8($t3)

beq $t4, $t3, Label

A:

B:

C:

D:

E:

F:

G:

H:

I:

J:

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

Students also viewed these Databases questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago