Computer Organization
Computer Organization
AND ARCHITECTURE
انا كنت اكتب معاها الحل تقريبا كله صح بس يمكن طريقة الحل تختلف
فنزلته لكم من باب المساعده واتمنى ماتحملوني مسؤلية الحل اول استاذه
ايمان ماترسل الحل برفعه لكم بس هذا الحل خذوه مبدئيا الن مافيه وقت
تذاكرون
تحياتي افراح
4.1 A set-associative cache consists of 64 lines, or slots, divided
into four-line sets. Main memory contains 4K blocks of 128 words
each. Show the format of main memory addresses.
Size of memory=22×210 × 27
Size of memory=219
Tag=19-4-7
Tag=8
Tag Set Size of block
8 4 7
4.2 A two-way set-associative cache has lines of 16 bytes and
a total size of 8 kbytes.The 64-Mbyte main memory is byte
addressable. Show the format of main memory addresses.
Number of set=512/2
Number of set=8
Size block=16=24
Size of memory=26×220=226
Tag=26-8-4
Tag=14
Sheet chapter 5
5.2 Consider a dynamic RAM that must be given a refresh
cycle 64 times per ms. Each refresh operation requires 150 ns;
a memory cycle requires 250 ns.What percentage of the
memory’s total operating time must be given to refreshes?
M=8
k
2 -1>=k+m
24-1>=4+8
15>=12
1 2 3 4 5 6 7 8 9 10 11 12
1 0 1 1 1 0 0 1 0 0 1 0
The check bits are in bit numbers 1, 2,4, and 8.
Check bit 8 calculated by values in bit numbers: 9,10,11, and 12
Check bit 4 calculated by values in bit numbers: 5,6,7 and 12
Check bit 2 calculated by values in bit numbers: 3,6,7,10 and 11
Check bit 1 calculated by values in bit numbers: 3,5,7,9,10 and 11
Thus, the check bits are:1011
5.12 For the 8-bit word 00111001, the check bits stored with
it would be 0111. Suppose when the word is read fro memory,
the check bits are calculated to be 1101.What is the data word
that was read from memory?
0111
XOR
1101
1010=5 IN DICIMAL