Professional Documents
Culture Documents
_ComplementMemBit:
/40
1
CompE 271 Mid-term Exam #2 Fa16 NAME:______SOLUTIONS__________
Ken Arnold Red ID: .
Yes! Because the maximum interrupt latency depends on how long the
interrupts are disabled (e.g.: in critical code segments), and the
priority of the interrupts in a nested interrupt system.
Any plausible state table is acceptable, partial credit for state bubble
diagram, depending on how complete it is.
CISC RISC .
Variable length instructions Fixed length instructions
Multiple clocks/instruction Single clock/instruction
Many >100 instructions and Few <<100 instructions and
address mode combinations address mode combinations
More complex hardware/logic Simpler logic/hardware
Variable number of operands Fixed number of operands
Smaller object code due to Larger object code due to
more complex instructions simpler instructions
Higher power consumption Lower power consumption
/45
2
CompE 271 Mid-term Exam #2 Fa16 NAME:______SOLUTIONS__________
Ken Arnold Red ID: .
The memory must have at least 16 memory ICs since each chip is 4 bits
wide, and 64bits/4bits/IC = 16 ICs. 256Mx64 = 256Mx(8x8) or 2Gx8= 2
GBytes. So 32 ICs are used to make up a total of 4 GBytes per module.
/60
3
CompE 271 Mid-term Exam #2 Fa16 NAME:______SOLUTIONS__________
Ken Arnold Red ID: .
Why?
25 pts
The spatial locality of the data: cache memory will store
adjacent array items in rows in cache memory location. The
array a[] is stored in row major order as follows:
addr content
0 a[0][0]
1 a[0][1]
2 a[0][2]
3 a[0][3]
4 a[0][4]
...
n a[1][0]
n+1 a[1][1]
n+2 a[1][2]
...
/40