Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Computer Architecture Write down the format and binary representation of Ts fiel

ID: 3596624 • Letter: C

Question

Computer Architecture Write down the format and binary representation of Ts fields. The numbers below Fall 2017 23, s 1, rt-2, constant 14 are given indentation of the instruction described by the following in ction format: address 31302928 (4 pt) Given in following instructions 5. memory address of the data R1 = 100 R2-200 lw R1, 32(R2) Address: sw R3, 8(R4) Address: R3-300 RA-400 6. (4 pt) Sign-extend the following binary numbers from 8-bit to 16-bit. 11001100 00110011 Zero-extend the following binary numbers from&-bit to 16-bit. 1100 1100 00110011 7. (6pt) Do the following number conversions assuming two's complement representat binary numbers. a. 12010 b. -5210

Explanation / Answer

4.

op - 6 bits , rs - 5 bits ,rt - 5 bits, const - 16 bits

op=23 , rs=1, rt=2,const=14

op=010111, rs=00001, rt=00010, const=0000000000001110

so finally

0101 1100 0010 0010 0000 0000 0000 1110

5.

lw r1,32(r2)

r1 holds the data in the address (32+[r2])

so address =232

  

sw r3,8(r4)

r3 stores the data in the address (8+[r4])

so address =408

6.

sign extension of binary number:

   repeat the MSB bit 8 times to the left.

1100 1100 = 1111 1111 1100 1100

0011 0011= 0000 0000 0011 0011

  

zero extension of binary number:

   repeat the bit 0 8 times to the left.

1100 1100 = 0000 0000 1100 1100

0011 0011= 0000 0000 0011 0011

7.

two's compliment of binary numbers:

If number is positive then write binary number if negitive get ones compliment of binary equivalent and add 1 to the ressult.

120 = 0111 1000

-52 = 1100 1100

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote