Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

computer org & architecture class all 1 assignment please need help , with steps + answer please ( pelase read auestion carefully ) computer org

computer org & architecture class
all 1 assignment please need help , with steps + answer please ( pelase read auestion carefully )

computer org & architecture class
all 1 assignment please need help , if with steps + answer please ( pelase read auestion carefully )

skip # 4
please need help witb step by step with answers ...
question #1 thorugh #6 is posted below
image text in transcribed
I. Assume the following regiser contents: $0=0xAAAAAAAA,411=0x87654321 a) For the register values shown above, what is the valoe of 50 for the following sequence of instructivest (2 peints) 4) 512,560,6 or 512,32,511 b) For the register values shown above, what is the valoe of $22 for the following sequence of instructions? (2 poents) sll 512,510,8 andi 512,92,1 c) For the register values shown above, what is the value of 52 for the following requerece of instructions? (2 points) si 51,90,3 andi 512, 512, 0xFFFF 2, Considcr the folleaing MIPS loop: Loop: sat \$t. So, \$41 beq $12,30, Deae sabi 5t1, Sti, 1 adut So2, 5s2 5 j Loop: Done: a) Assume that the register Stl is initialised to the value 8. What is the value in register Ss? assuming 5s2 is initially nero? (2 points) b) Fer each of the loops above, write the equivalent C code routine. Assume that the regisier Sst, Ss2, St t,and StZ are integers a,b,i, and tens, respectively, (2 points) c) For the loops written in MIPS assembly abeve, assume that the regisier 5t as ieitialized to the value 8. How many MIPS instructions are executed? (2 points) 3. Assume 155 and 214 are signed 8-bit docimal integers stored in two's complement format. Calculate 155-214, The result should be written in decimal. Show your work, (4 points) 4, Using a able similae to that shown in Figare 3.5 (pase 198), calculate he peoduct of the octal unsigned 6 -bit integer 711 and 35 , using the hardware described in Figure 3.3 (Page 194). You should show the contents of each register on each step. (10 points) 5. Write donn the benary ropesentation of the decimal number 38.6125 aswening the IFEE 754 single procision format (4 points) 6. IEEE 75.4. 2008 contains a half precision that is only 16 buts wide. The leftmost hit is still the sign bit, the exponcet is 5 bots wide and has a beas of 15, and the mantissa is 10 bits long. A hidden I is assumed. Write down the bit pantern so represent 1.625102 assuming a version of this format, Calculate the sums of 2625102 and 4.190590625104 by hand, assuming both mambers are stored in the 16-bit half precision described above. Assume I gaand, 1 round bit, and I sticky bit, and round to the ncarest even. Show afl the stcps, (10 points)

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 Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions