Question 1) Describe the general operation of the following flags.
i) Z(Zero)
ii) C(Carry)
iii) N(Negetive)
iv) V (Overflow)
b) Draw a neat diagram of associative memory organization and explain the function of the following components .with necessary diagrams.
i) input register
ii) mask register
iii) output register
iv) match logic
v) match register
Question 2)a) Describe polled and daisy chain techniques of handling multiple interrupts with neat figures.
b) Consider a typical segment table as shown.
Segment number Segment base address Segment length
0 0D116 25816
1 8FC16 00E16
The virtual address format is
|------3bits------|------9 bits------|
|--segment------|------offset------|
What are the physical address for the following virtual addresses?
i) 1FE16
ii) 20A16
c) A set associative cache has a total of 64 blocks divided into sets of 4 blocks each. Main memory has 1024 blocks with 16 words per block. How many bits are needed in each of the tag, set and word fields of the main memory address?
d) Suppose a main memory has 4 page frames and initially all page frames are empty. Consider the following stream of references:
1, 2, 3, 4, 5, 1, 2, 6, 1, 2, 3, 4, 5, 6, 5.
Compute the hit ratio using LRU replacement policy.