Computer Organization
Computer Organization
Department: CSE
Year: 2nd, Semester: 3rd
Subject: Computer Organization (PCC-CS302)
Class Assignment
Group A
1. Which of the following is the fastest means of memory access for CPU?
a) Registers
b) Cache
c) Main memory
d) Virtual Memory
2. The memory implemented using the semiconductor chips is _________
a) Cache
b) Main
c) Secondary
d) Registers
3. If M denotes the number of memory locations and N denotes the word size, then
an expression that denotes the storage capacity is ______________
a) M*N
b) M+N
c) 2M+N
d) 2M-N
4. Size of the ________ memory mainly depends on the size of the address bus.
a) Main
b) Virtual
c) Secondary
d) Cache
Group B
1. Write the difference between SRAM and DRAM.
2. A cache has 64KB capacity. 128 Byte lines and is 4 way set associative.
The CPU generates 32 bits address for accessing data in the memory.
a. How many lines and sets does the cache have?
b. How many entries are required for cache?
c. How many bits are required for tag?
3. A hierarchical cache-main memory subsystem is given as follows:
a. Cache memory access time 80ns, hit ratio 0.9.
b. Main memory access time is 150 ns.
Calculate the overall access time.
4. Write the difference between associative and direct cache mapping.
5. Explain write through and write back policy.
6. Explain spatial locality of reference and temporal locality of reference.
7. What is virtual memory. Why it’s called virtual?