You are on page 1of 18

Write oppropriatc answers in the given blanks: (2

05
(a) MIPS instruction u Ss1, 100($$2) belongs torifpi4phuaue Addressing mode.

(b) SA includes instruction set and instruction cncoding.

(c) Thraudpue is the total amount of work done in a given tim

(d) The output of tlhe process plhotolithography is 2UernA Kafersin


of IC.
2 Slate True or False of the following 2
0.5 x 4

(a) IPS is RISC nachine 7e

(6) First programmable Conputer is NIAC False

will accept either 32/16/8-bit data _ue


(c) MIPS registers

(d) AlIPS instruction format is variable False

074S AM
27-03-2023
r tt* foltow1ng nunbern into UPS machine readable register lormat: 12
SFFD611

CieiOOI1 t10 o[ 10 Oool ooo 141

, 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

CRp 9x900Ro 222099220-772//6


(16-)
2-22G
Assume that you are designing an Architceture X tor the Computens. The X can hnve
a limited
umber of registers (say 16). The length of cach register is 16 bits for the said
Architecture. Conert the numbers -76 and -12 to the hexndecimal equivalent to fit the
X register You are also required to show the X registor contents.
12
6 12
612
O 12
A- 12
+OC
-Vz's crnjlemuus -ve 2s cmplama
FFBL4 FPF4
1 1 11 O100
10. The instructions must be transferred from memory along a bus to the CPU Lo execute a
progrom. If the bus has 8 data lines, at most, one 8-blt byte can be traisferred at a time.
How many memory accesses would be needed to move a 32-bit instruction from memory
to the CPU?
sbts eanse canferd at a 4are, i e l memory a c e

cse hawe 32 &ls.'. 3 4 cmuy acales mued


D mae 32 b inbun

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

/6 xlo°DL = 2M8 (Bw)


IGDL=x/25xtos
6 DL 32x1o°L - 2xl6x10° DL
S
4xlz5xi16 2 x 2mB 4mg (BW)
12. Convert C-language statement A|300 =
h+A[300]; into the corrcsponding MIPS assembly
code by assuning appropriate registers where h ls a standard variable and is not a memoryl

Lco to, 1200 seD


add fa, $33,ito
SW 6o, 1200()
3. Convert the namber -3,3333..... to the equivalent binary singleprecision IEEE loating-
point representatíon. Please show all the steps. 12
O 6666 2 O 3 8 3 2 x2
3333x2
3.3333 o 66 64
0.6666 3332
- |.0IO.. x2

-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's complement form. Jet Y be the


3. LetX be the number of distinct 16-bit intcgers in
format. Then, what is the value of
nuraber of distinct 16-bit integers in sign-magnitude
A - Y?
[1
X
- Y 2
Ot
' - Y :1
Find the number of 1's in the binary representation of the expression.
4006+9 250+3 10+5. 2
222837
2 418 -
S209-o
2.22s -

242 Cr (01o},xi +l00y 4(co101et)


2.712
L 356 olotcol Go1 dO
2
2

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.
=

Where R3 must store the resnlts in lhexadecimal notation.


(2
A. OOII Oll0 O010 000 O000 O000
Oo00 O000
M

+),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

You might also like