Self Studies

Computer Organization and Architecture Test 2

Result Self Studies

Computer Organization and Architecture Test 2
  • Score

    -

    out of -
  • Rank

    -

    out of -
TIME Taken - -
Self Studies

SHARING IS CARING

If our Website helped you a little, then kindly spread our voice using Social Networks. Spread our word to your readers, friends, teachers, students & all those close ones who deserve to know what you know now.

Self Studies Self Studies
Weekly Quiz Competition
  • Question 1
    1 / -0
    The disadvantage of write back strategy in cache is that:
    Solution

    Write back Cache policy:

    In this data is written to cache, and the i/o is performed. In this update are made to the cache. When an update occurs, a dirty bit associated with the line is set. Then, when a block is replaced it is written back to main memory if and only if the dirty bit is set.

    Advantages:

    • It minimizes memory writes.
    • Having low latency and high throughput


    Disadvantages:

    • Portions of main memory are invalid and hence accesses by I/O modules can be allowed only through the cache. This makes the complex circuitry. 
  • Question 2
    1 / -0

    Which of the following is/are true about conflict miss?

    Solution

    Concepts:

    • Conflict misses: Even when empty place is available, block is trying to occupy already filled line leads to conflict miss.
    • In direct mapped, memory reference(x) should be place in x mod C where C is number blocks in cache. In set associative mapped, memory reference(x) should be place in x mod S where S is number sets in cache. Hence conflict miss occurs in the case of set associative or direct mapped block placement strategies.
    • In a fully associative mapping, block number of Main Memory is equal to tag size, therefore no such constraint to put memory reference in a specify set or lines of a cache and hence no Conflict miss
  • Question 3
    1 / -0
    Consider a disk with the radius of the innermost track is 21 cm with 8 KB/cm. What is the capacity of the track in KB?
    Solution

    Data:

    radius = 21 cm

    density = 8 KB/cm

    Formula:

    Circumference of track = 2 π r

    Calculation:

    Circumference of track = 2×22/7× 21= 132 cm

    1 cm → 8 KB

    ∴ 132 cm → 1056 KB

    the capacity of the track is 1056 KB

  • Question 4
    1 / -0
    Consider a word addressable system. The main memory is of size 2 MB and direct-mapped cache containing 1024 lines. The size of block is 16 bytes while each word consists of 2 bytes. What is the tag for memory address (AF9CB)H?
    Solution

    Data:

    1 word → 2 byte

    Main memory (MM) = 2 MB = 221 bytes = 220 word

    Block size (B0) = 16 Bytes = 8 words = 23 word

    Number of lines (lines) = 1024 = 210

    Formula:

    MM = tag + lines + B0 (in bits)

    20 = tag + 10 + 3

    ∴ tag = 7 bits.

    Address: (AF9CB)H

    1010

    1111

    1001

    1100

    1011

     

    Tag = (1010111)2

    Line = (1100111001)2

    word = 011
  • Question 5
    1 / -0
    A direct-mapped cache memory of 1 MB has a block size of 256 bytes. The cache has an access time of 3 ns and a hit rate of 94%. During a cache miss, it takes 20 ns to bring the first word of a block from the main memory, while each subsequent word takes 5 ns. The word size is 64 bits. The average memory access time in ns (round off to 1 decimal place) is _______.
    Solution

    Data:

    Word size = 64 bits = 8 Bytes

    Cache block size= 256 Bytes

    Hit rate = 0.94

    Cache access time = Tc = 3ns

    Formula:

    The average memory access time in cache with hit rate ‘h’ is given by

    AMAT= h × Tc + (1 – h) × (Tc + Tm)

    where Tm is main memory access time. Tm comprises of time taken to move the words of a block from main memory.

    Calculation:

    Number of words in one cache block= 256 ÷ 8 = 32 words.

    Now, 1st word would take 20 ns to bring from main memory into cache memory and remaining 31 words would take 5ns.

    AMAT= 0.94 × 3 + (1 – 0.94) × (3 + 20 + 31* 5)

               = 2.82 + 10.68 = 13.5ns

    Important Point:

    Parallel access:

    AMAT= h × Tc + (1 – h) × Tm

    AMAT= 13.3

    NOTE:

    Answer key of GATE given marks for (13.3 to 13.3) or (13.5 to 13.5)
  • Question 6
    1 / -0
    Consider a computer system that is word addressable and each word size is 2 bytes. A cache which is fully associative with tag size equal to 24 bits and block size is 64 bytes. Now, same cache is changed to 4 way set associative mapping, find the size of tag in set associative organization which contains 1 M blocks?
    Solution

    Fully associative mapped:

    1 Word = 2 bytes

    Tag size = 24 bits

    Block size = 64 bytes = 32 word = 25 word

    Physical address = PA bits

    Physical address (PA) = tag + block offset …………. (bits)

    PA = 24 + 5 = 29

    Set associative mapped:

    Physical address size = 229 word = 512 MegaWord

    number of Blocks = 1 M = 220

    \(number\;of\;sets = \frac{{blocks}}{{blocks\;per\;set}} = \frac{{{2^{20}}}}{4} = {2^{18}}\)

    PA = tag + set + block offset

    29 = tag + 18 + 5

    ∴ tag = 6 bits
  • Question 7
    1 / -0
    Consider a hypothetical system, a 48 – bit width main memory with a capacity 256 TB is build using 64 T × 8-bit DRAM chips. The number of rows of memory cells in the DRAM is 225. The time taken to perform one Refresh operation is 40 ns. The refresh period is 5 s. Fraction of total memory bandwidth is lost to refresh cycle is _____ (up to two decimal places).
    Solution

    Data:

    Refresh row = R = 40 ns

    Total refresh period = T = 5 s

    Number of rows = n = 225

    Formula:

    Fraction of memory bandwidth lost to refresh cycle \(=\frac{R\times n}{T}\)

    Calculation:

    Fraction of memory bandwidth lost to refresh cycle \(=40\times {{10}^{-9}}\times \frac{{{2}^{25}}}{5}\ = 0.2684\)

  • Question 8
    1 / -0

    Consider the disk which has average seek time of 32 ns and rotational rate of 360 rpm(round per minute), Each track of the disk has 512 sectors, each of size 512 bytes.

    What is the time taken to read four continuous sectors? And What is the data transfer rate?
    Solution

    Data:

    Seek time = 32ns,

    rotational rate = 360 rpm,

    1 Track size =512 sectors × 512 Byte/sectors=256KB

    Formula:

    Time Taken to read four continuous sectors = Seek time + Rotational delay + Transfer time

    Data transfer rate = Number of bytes transferred in one second

    Calculation:

    Seek Time = 32 * 10-9 = 0.000000032 secs ≈ 0.0000 sec

    Rotational latency = 360 rotation takes 60 sec

    \(\therefore 1{\rm{\;rotation\;}} = {\rm{\;}}\frac{1}{6}\;sec\)  

    Rotational latency = Half the rotation time.

    \({\rm{Rotational\;latency\;}} = \;\frac{1}{{12}} = 0.0833\;sec\) 

    Transfer Time  

    1 track can read in one rotation and 1 track can read 256KB but here we have to read 4 sectors

    4 sectors size will be = 4 × 512 B = 2KB

    \(256{\rm{\;KB\;takes}} \to \frac{1}{6}{\rm{sec\;\;}}\)

    \(1{\rm{\;KB\;takes}} \to \frac{1}{{256 \times 6}}{\rm{\;sec}}\)

    \(2{\rm{\;KB\;takes}} \to {\rm{\;}}\frac{2}{{256 \times 6}} = 0.00130\) 

    Total Time = 0.0000 + 0.0833 + 0.0013 = 0.0846 secs

    Data Transfer Rate = Number of bytes transferred in one unit time ( 1 sec )

    \(256{\rm{\;KB\;takes}} \to \frac{1}{6}{\rm{sec}}\)

    ∴ In 1 sec = 6 × 256 KB = 1536 KB

    ∴ date transfer rate = 1536 KBps

    Hence option 2 is the correct answer.

  • Question 9
    1 / -0
    Consider the cache memory and the main memory connected serially. If the word in not found in cache memory, then it is found in the main memory. Let C1 and C2 be the cache memory in a two-level cache system. The access time of C1 is 3 cycle, access time of C2 is 15 cycle and the access time of main memory is 50 cycle. The miss rate of is 10% and 20% of C1 and C2 respectively. The average memory access time of the system is _____ cycle.
    Solution

    Data:

    Cache C1,

    T1 = 3 cycle

    Miss ratio = 1 – p = 0.1

    Hit ratio = p

    Cache C2

    T2 = 15 cycle

    Miss ratio = 1 – q = 0.2

    Hit ratio = q

    Main memory:

    Hit ratio = 100% = 1

    T3 = 50 cycle

    Formula:

    Tavg = T1 + (1 – p)T2 + (1 – p)(1 – q)T3

    Calculation:

    Tavg = 3 + (0.1) × 15 + ((0.1) × (0.2) × 50 = 5.5 cycle

    Important Points:

    In two level in serial manner,

    Tavg = H1T1 + (1- H1)(T1 + T2)

    Tavg = T1 + (1- H1)(T2)

    Similarly three level in serial manner

    Tavg = H1T1 + (1 - H1)H2(T1 + T2) +(1- H1)(1 - H2)(T1 + T2 + T3)

    Tavg = T1 + (1- H1)T2 + (1 - H1)(1 -H2)T3

    Use any formula for given serial level

Self Studies
User
Question Analysis
  • Correct -

  • Wrong -

  • Skipped -

My Perfomance
  • Score

    -

    out of -
  • Rank

    -

    out of -
Re-Attempt Weekly Quiz Competition
Selfstudy
Selfstudy
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now