Professional Documents
Culture Documents
05
(a) MIPS instruction u Ss1, 100($$2) belongs torifpi4phuaue Addressing mode.
074S AM
27-03-2023
r tt* foltow1ng nunbern into UPS machine readable register lormat: 12
SFFD611
, CIDi
Conorung the following MIPS asscmbly code and the corresponding machine code, Write
the MIPS word nddressable little-endian of byte orcdering of memory organization, which
begins irom addrrss 00400000. 12
AIPS Assembly codeA1IPS Machine codc6 0-5+15
lw St2, 32(S0) OxSCOAO020 004000oo 20 00 OA BC
add Ss0, Ss1, Ss2 Ox02328020 oo 400004 20 R0 32.02
auldh Sto, 3, 12 Ox2268FFF4 O o400008 E4 FF 6 22
sub St0, St3, St3 OxO16D4022 O04o00oC 22 40 6D OL
004000OC 2240 6D O
OO400009 FA FF 62 22
0040000420 20 3202
O04000OO 20 00 OA C
the operation ode of the instruction lw is 35 and the source & destination register
ubers aro 19 & 8. respectivrly, with the offset value 32. Write the MIPS full instruction
and its 32-bit instruction format & type. 12
ut! irutar: lw s , 328 19) +0S+0.5
immedUate
OP
32 (32
100011001Oo0coo0O 00000 1o0000
Aase that zoy tee tie Last 12tb-generatin Laptop witb adaed wchrzlogy ith
ITd zdary wwny, BGB od primary mewry. arda tpeed 25CHz.
y a r e ingesenning a
Sabseqently.
projerr par of CO in hizi-leves C-pogasnninz wits diferent
da d instrutio The total aumher f instructvs in a
Cprogram is 6.5 millo,
yuar Ley ruzs all iretructioas in 10 scoonds. What is the averzge Cih Cycle
per
intrtu in ittezyzs oly ithout roinding of its fratin. if arr?
CPU Tint : iC CP
CUt ratCR)
CPi CPUTun. A CR
6S1t
6S
CP 324615
. Assume that you are involved in the processing of manusacturing an IC and producing 2000
dies from the tested wafers through the dicer proces. However, five hundred dies are found
Lo be defective when the dies are seut for testing. What is the effective percentage of the
yidd? No. S Sod d i
yelo x 100
SOoto0, 0.9sx10o/.
20 00
6. Suppase you bave t o machincs, a Desktop and a Laptop computer baving the sane ISA.
Your Desktop computer can execute a program P with an average CPI of 1.9. However, your
Laptop computer can run the same program P with 30% [ewer instructions and an average
CPI 1.I at 900MHz spoed with an enhanced compiler. To have the same performance
of
for
both compalers, what does the clock rate of your Desktop requires in GH? (Use ouly
wo digits
for the fraction,
if
any, vithout rounding off) 12
COe tnas Has e cPU tim tCCP C e z 2e xCP2
CR CPU Timu
T gt C a Cenfom hs Cou Hmu
s soh Desurop
Deutop
CPE, CP
s
laphp Cenk
lapap Ccnfuls
CR CRL
'3 (10-0:3)
CRp 900 x
8rcm mumoy.
of 250 nanoscconds cach to transfer
Suppose a bus has 16 data lines and requires four cycles
If the cycle time of the bus
data. The bandwidth of this bus would be 2 Megabytes/scc.
for transfer is the same.
is reduccd to 125 nanascconds and the number of cycles required
What would the bandwidth of the bus be?
1 6De *2sDK6s
-11610 x2
to10101
-ve 1
Ssn 1000 o 0 0 0,
aas : 1+127 284,
ce:02 AM
27-03-2023
What is the value of the decimal number which has its 1EEE single precision loating point
representation as 11000000111100000000000000000000?
SE M Sl C 129
127
cC knoo Ht G4M) »2E I2-12
' . docimas no. GU'(I.1)»2
.)2
-
(I 1-1)»2°
(t1)a 7 Sg)
ln the standard form of a denormal number, why is the exponent term equal to 2123? Wby
is it not cqual to 2177?
* Jhs rnas km } a denMral numsn 126 s taus, 14
thare an o fiirhr dps &luen Leut naral numtn ard ho dygask
dermadnumber. ie 00001x2
n avt loas reát:in
0111-hx2
estre 2 " cwcll Áae seueral nu7 leasi pruAin Shseen Hae
there
f a valves.
2
18. Consider three
register8, RU, R2, and R3, that store numbers in JEEE single precision
flcrating point formunt. If R]=0x36200000 and R2=0xB6200000, Evaluate R3 RI*R2.
=
+),2¬- 127
R Gy° U+M) 20-12
+ O1.-) 2-129
1Ox2
l o | oIIO ool0 oo00 O o0o o c o o 000 ooo0
M
l03-127
' -'.+M)»2
(os-127
-(101 )x2"
-(1
- 0 l x -9
-Cu-co --0,3
-1oo)-S
- +E)«2
E-8 -38
S-, F 0of...
R= -
38 +B
- 33+12
iCI10ol 10010g00oo000cOo0oo00
C C
On ACC 3 0000
K