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
    2 / -0.33
    Consider a direct mapping implementation where the main memory size is 32GB, the block size is 8 KB and the number of tag bits is 10. What is the cache size (in MB) in the given implementation?
    Solution

    Data:

    Main Memory = MM = 32 GB = 235

    Block size = BS = 8 KB = 213 B

    Cache size = CS

    tag = 10 bits

    Tag bitsLine numberLine offset
    10 13

    Formula:

    number of bits = ⌈log2 (size)⌉ 

    MM = tag + line + bs  (in bits)

    CS = BS × number of  lines

    Calculation:

    35 = 10 + line + 13

    line = 12 bits

    number of lines = 212

    CS = 213  × 212 B = 225 B = 32 MB

    Important Points:

    1 G → 230

    1 M → 220

    1 K → 210

  • Question 2
    2 / -0.33

    Consider a fully associative cache with 8 cache blocks and the following sequence of memory block request (5, 4, 26, 8, 20, 7, 26, 8, 17, 36, 46, 23, 8, 4, 17, 26, 9). If LRU replacement policy is used then which cache block will have memory block 17?

    Solution

    Concept:

    Fully associative mapping:  In this type of mapping, block of memory can be mapped to any cache line

    available that time.

    Explanation:

    Given:

    Memory block requests are: 5, 4, 26, 8, 20, 7, 26, 8, 17, 36, 46, 23, 8, 4, 17, 26, 9

    0

    5 /46

    1

    4/23

    2

    26

    3

    8

    4

    20/4

    5

    7/9

    6

    17

    7

    36

     

    So, at the end of mapping with LRU replacement policy, memory block 17 maps to cache line 6.

  • Question 3
    2 / -0.33

    Which of the following statement is/are not correct about addressing modes?

    Solution

    Concept:

    Address field in a typical instruction format is small. To reference a large range of locations in Main Memory, a variety of addressing techniques are employed.

    Absolute addressing mode:

    • In this, the address part specifies the effective address of the operand. It is also known as direct addressing. If A = contents of an address field in instruction then Effective address = A.
    • It is used to declare global variables in a program and used for branch instructions.

    Indirect addressing mode:

    • In this address, part specifies a location, contains the effective address of an operand.
    • Effective address = (A). It allows to refer the large address space but requires two memory cycles.

    Base register addressing mode:

    It is the form of displacement addressing. In this, the referenced register contains the main memory address and the address field contains a displacement. Effective address = offset + base register.

    Stack addressing:

    Stack is a linear array of locations. Stack pointer is maintained in a register which references to stack locations in memory are in fact register indirect addresses. Stack mode of addressing is a form of implied addressing.

  • Question 4
    2 / -0.33

    The following program is stored in the memory unit of the basic computer. Give the content of accumulator register in hexadecimal after the execution of the program.

    Location

    Instruction

    010

    CLA

    011

    ADD 016

    012

    BUN 014

    013

    HLT

    014

    AND 017

    015

    BUN 013

    016

    C1A5

    017

    93C6

     

    Solution

    Location

    Instruction

    Operation

    Content of accumulator

    order of instruction

    010

    CLA

    Clear Accumulator

    0000

    1st

    011

    ADD 016

    ADD (C1A5) to Accumulator

    C1A5

    2nd

    012

    BUN 014

    Goto address 014

    C1A5

    3rd

    013

    HLT

    Terminate program

    8184

    5th

    014

    AND 017

    AND (93C6) with Accumulator

    8184

    4th

    015

    BUN 013

    Goto address 013

     

     

    016

    C1A5

     

     

     

    017

    93C6

     

     

     

     

         C1A5 =1100 0001 1010 0101

    & 93C6 = 1001 0011 1100 0110

    ____________________________

          8184 = 1000 0001 1000 0100

    The content of accumulator register in hexadecimal after the execution of the program is 8184

    Important Point:

    In instruction address in mentioned not data

  • Question 5
    2 / -0.33
    Consider a 5- stage instruction pipeline where the delay of S4 is half to that of S1. S2 has a half delay to S3. Sis having a delay of 10 ns. Sand S3 have the same delay as S1 . What will be the speed up achieved in this?
    Solution

    Formula:

    \(Speed\;up = \frac{{execution\;time\;without\;pipeline}}{{execution\;time\;with\;pipeline}}\)

    Explanation:

    Given:

    Delay of stage S1 = 10 ns

    Stage delays are represented as :

    S1

    S2

    S3

    S4

    S5

    10

    5

    10

    5

    10

     

    Execution time with pipeline (Tp) = max {all stage delays}

    = 10 ns

    Execution time without pipeline(Tn) = sum of all stage delays

    = 10 + 5 + 10 + 5 + 10 = 40 ns

    \(Speed\;up = \;\frac{{40}}{{10}} = 4\)

  • Question 6
    2 / -0.33
    A computer uses a memory unit of 512 K words of 32 bits each. A binary instruction code is stored in one word of the memory. The instruction has four parts: an addressing mode field to specify one of the two-addressing mode (direct and indirect), an operation code, a register code part to specify one of the 256 registers and an address part. How many bits are there in addressing mode part, opcode part, register code part and the address part?
    Solution

    Data:

    Memory unit = 512 K words

    1 word = 32 bits = 4 B

    Binary instruction code stored in 1 word of memory

    Instruction divided as follows,

    Addressing mode

    Operation code

    Register code

    Address part

     

    Calculation:

    Addressing mode = 1 bit for direct or indirect

    Register code = ln (256) = 8 bits

    Since, registers are already addressed, only memory needs to be addressed

    Address part = ln (512 K) = 19 bits

    Operation mode = 32 – 1 – 8 – 19 = 4 bits

    Therefore, bits for addressing mode part, opcode part, register code part and the address part = (1, 4, 8, 19)

  • Question 7
    2 / -0.33
    Consider a cache, in which the block has 512 bytes. The main memory has a latency of 32 ns and a bandwidth 4 GB/s. The time required to fetch the entire cache line is _____ ns.
    Solution

    Data:

    Cache block size = 512 bytes

    Memory latency = 32 ns

    Bandwidth = 4 GB/s

    Formula:

    Total latency = memory latency + block access time

    Calculation:

    4 GB → 1 sec

    \(4 B \rightarrow \frac{1}{ 10^{9}s} \rightarrow1\ ns\)

    \(512\; B \rightarrow \ 128 \ ns\)

    Block access time is 128 ns

    Total latency = 32 + 128 = 160 ns

  • Question 8
    2 / -0.33
    If tag comparator size required for direct, fully associative and set- associative mapping are x,y and z respectively, then which of the following is correct?
    Solution

    Concept:

    Direct mapping : In this mapping technique, a main memory block has fixed location in cache i.e. ith block of a page is mapped to ith block of cache.

    Fully associative mapping : A main memory block can be placed at any line of cache.

    Set- associative mapping :A main  memory block can be placed with k alternatives in a set.

    Explanation:

    Number of tag bits are maximum in fully associative mapping and minimum in direct mapping and size of tag comparator is directly proportional to the number of tag bits.

    Example:

    Main memory address = 32 bits

    Cache size = 128 KB

    Block size = 32 B

    For direct mapping:

    Tag size = 15 bits

    14 bit tag comparator is used.

    For fully associative :

    Tag bits = 27

    For set – associative (4- way) , tag bits are = 17 bits

  • Question 9
    2 / -0.33
    Consider a paging system with page table stored in memory and with additional associative registers. If 75 percent of all page table reference are found in the associative register, and a memory access takes 240 ns, what is the effective memory reference time? Assume the time taken to find a page in associative register is 0.
    Solution

    A memory reference takes 240 ns, so it means 240 ns to access the page table and another 240 ns to access word in the memory. So, a paged memory reference will take 480 ns.

    Also, it is given that 75% of all page table reference is found in associative registers.

    So, for 75% of the time, it will take 240ns and for the rest of the 25%, it will take 480 ns.

    Effective access time = 0.75 × (0 + 240) + 0.25 × (240 + 240)

                                       = 180 + 120 = 300 ns

  • Question 10
    2 / -0.33

    Consider the Reduced Instruction Set Computer (RISC) characteristics mentioned in options

    Choose the correct characteristics from the options given below:

    Solution

    Statement a:  Correct:

    RISC has pipelined implementations with the goal of executing one instruction per machine cycle.

    Statement b:  Incorrect

    RISC has fixed length instruction formats

    Statement c:  Incorrect

    c – RISC can perform only Register to Register Arithmetic operations

    Statement d:  Correct

    d – RISC has efficient instruction pipeline

    Therefore, statement a and d are correct.
  • Question 11
    2 / -0.33
    A processor that has carry, and overflow flags bits as part of its program status word(PSW) addition of the following in 2’s complement number 0110 1001 and 0100 1101. After the execution of this addition operation, the status of the carry and overflow respectively will be
    Solution

       0110 1001

    + 0100 1101
    _____________

    0 1001 0110

    Overflow = Cin ⊕ Cout = 1 ⊕ 0 = 1

    Carry = 0

    Tips and Tricks:

    0110 1001 + 0100 1101 = 105 + 77 = 182

    Range for 8 bits in 2’s complement is (-28-1 to 28-1 - 1) = -128 to 127

    182 doesn’t falls in the range hence overflow occurs

  • Question 12
    2 / -0.33

    A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 256 bytes. Consider the following four physical addresses represented in hexadecimal notation.

    A1 = 0x42C8A4, A2 = 0x546888, A3 = 0x6A289C, A4 = 0x5E4880

    Which one of the following is TRUE?

    Solution

    Data:

    Size of main memory: 16 MB

    Size of cache memory: 64 KB

    Block/line size: 256 B

    The cache memory has been designed as 4- way set associative.

    Calculation:

    The memory is Byte- addressable.

    Main memory size = 16 MB = 224 B. That means physical address generated by CPU would be represented

    using 24 bits.

    Cache memory size = 64 KB = 216 B

    Block size = 256 B = 28 B. i.e. word would be represented by 8 bits

    Therefore, Number of cache lines ÷ blocks = 216 ÷ 28 = 28

    Since, the cache memory is 4-way set associative.

    Hence, number of sets = 28 ÷ 22 = 26. i.e. 6 bits would be required for set/index.

    Therefore, Number of bits for tag = 24 – (6 +8) = 10 bits

    Hence, the 24 bit address generated by CPU would have following components:

    Tag (10 bits)

    Set/Index (6 bits)

    Word (8 bits)

     

    Physical Address A1 = 0x 42C8A4. Converting it into binary gives:

    0100 0010 11

    00 1000

    1010 0100

     

    Physical Address A2 = 0x 546888. Converting it into binary gives:

    0101 0100 01

    10 1000

    1000 1000

     

    Physical Address A3 = 0x 6A289C. Converting it into binary gives:

    0110 1010 00

    10 1000

    1001 1100

     

    Physical Address A4 =0x 5E4880. Converting it into binary gives:

    0101 1110 01

    00 1000

    1000 0000

     

    Thus it can be observed that A2 and A3 map to same set.

    Also, address A1 and A4 map to same set.

    Tips and Tricks:

    The following approach should be adopted to quickly solve this question and save a lot of time:-

    The number of bits for tag in a K- way set associative memory can be calculated directly as:

    (log2 (Main memory size in Bytes) – log2 (Cache memory size in Bytes)) + log2 K

    Another thing is that the question is concerned only about the set number of the given addresses. So, we need not convert first two Hex digits of the given address into binary format, because they would be part of tag bits. Similarly, the last two Hex digits need not be converted into binary as they are part of Word/Offset. Only the middle two Hex digit needs to be converted into binary. And then the 6 LSBs can be compared to check if they represent the same set or not.
  • Question 13
    2 / -0.33

    In 8-way set-associative cache memory, the capacity of the cache memory unit 512 KB. It is built using a block size of 16 words. The size of the physical address space is 4096 MB with a word length of 32 bits. The number of bits for the tag field is _____

    Solution

    Data:

    Physical address space (PS) = 4096 MB = 232 B

    Cache size (CS) = 512 KB = 219 B

    Block size (BS) = 16 word = 24 B

    set associativity = 8

    Formula:

    number of bits = log2 n 

    Number of lines in cache =  \(\frac{CS}{BS}\)

    Number of sets in cache = \(\frac{number\; of\; lines}{set\; associativity}\)

    PAS = tag + set + block offset .....(in bits)

    Calculation:

    Number of lines in cache =  \(\frac{2^{19}}{2^4} = 2^{15}\)

    Number of sets in cache  =  \(\frac{2^{15}}{8} = 2^{12}\)

    Tag

    Set

    Block Offset

    x bits

    12 bits

    4bits

    32= x + 12+ 4

    x = 16

    tag = 16 bits

    The number of bits for the tag field is 16.

    Important Point

    word length = 32 bit

    PAS = 232 B

    1 word = 1 byte

  • Question 14
    2 / -0.33
    A CPU has 6 stages pipeline and runs at 1 GHz frequency. Instruction fetch happens in the first stage of the pipeline followed by instruction decode, calculate effective address, fetch operands, execute instruction and write back. A conditional branch instruction computes the target address and evaluates the condition in the fourth stage of the pipeline. The processor stops fetching new instructions following a condition branch until the branch outcome is known. A program executes 1010 instructions out of which 30% are conditional branch. If each instruction takes 2 cycle to complete on average, then total execution time of the program in seconds
    Solution

    Frequency = 1 GHz

    ∴ Time = \(\frac{1}{{1GHz}} = 1ns\)

    1 Clock = 1 ns

    1 instruction = 2 Clock (C)

    Time taken with branch = \(8C \times \frac{{30}}{{100}} \times {10^{10}}\)

    \(8 \times 1ns \times \frac{{30}}{{100}} \times {10^{10}} = 24s\)

    Time taken without branch = \(2C \times \frac{{70}}{{100}} \times {10^{10}}\)

    \(2 \times 1ns \times \frac{{70}}{{100}} \times {10^{10}} = 14s\)

    ∴ Total time = 24 s + 14 s = 38 s
  • Question 15
    2 / -0.33

    Consider a disk space pack with the following specifications 16 surfaces, 128 tracks per surface, 256 sectors per tracks and 512 bytes per sector.

    a) In this, if format overhead is 64 bytes/sector, then what is formatted disk space?

    b) If disk is rotating at 2400 rotations per minute, then what is data transfer rate?
    Solution

    Given:

    Number of surfaces = 16

    Number of tracks per surface = 128

    Number of sectors per track = 256

    Number of bytes per sector = 512

    Capacity of the disk = number of surfaces ×number of tracks × number of sectors × number of bytes per sector

     = 24 × 27 × 28 × 29 = 228 bytes = 256MB

    Number of bits for sector = 24 × 27 × 28 = 219 sector (19 bits)

    a) Given: format overhead = 64 bytes/sector

    Total format overhead = 219 × 64 = 219 × 26 = 225 = 32 MB

    Formatted disk space = total disk space – formatting overhead

    = 256 – 32 = 224 MB

    b) Given disk is rotating at 2400 rotations per minute.

    2400 rotations in = 60 × 103 msec

    1 rotation in = (60 × 103 )/2400 = 25 msec

    Data transfer rate = \(\frac{{16\; \times \;256\; \times \;512\; \times \;1000}}{{25}} = 80MBps\)

  • Question 16
    2 / -0.33

    The read access time and the hit ratios for Instruction cache (I - cache), Data cache (D-cache), L2 cache in a memory hierarchy given below:

    Cache

    Read access time

    Hit ratios

    I-cache

    2

    0.9

    D-cache

    1

    0.9

    L2-cache

    5

    0.8

     

    In an execution, 80% of memory reads instructions are for instruction fetch and 20% of memory reads are for data fetch. The read access time of the main memory is 100 nanoseconds(ns). The cache uses referred word-first policy and write-back policy. The dirty bit is always 0 for all blocks in the caches and caches are directly mapped. The average read access time _____ ns. (correct up to 2 decimal places)
    Solution

    Data:

    Instruction Fetch:

    T1 = 2 ns, T2 = 5 ns and T3 = 100 ns

    H1 = 0.9 and H2 = 0.8

    Data Fetch:

    T1 = 1 ns, T2 = 5 ns and T3 = 100 ns

    H1 = 0.9 and H2 = 0.8

    Formula:

    Tavg = T1 + (1 - H1) T+ (1 – H1) (1 – H2) T3

    Calculation:

    Instruction Fetch:

    Tavg = 2 + 0.1 × 5 + 0.1 × 0.2 × 100

    ∴ Tavg = 4.5 ns 

    For 80% instruction fetch

    Tavg = 0.8 × 4.5 = 3.6 ns

    Data Fetch:

    Tavg = 1 + 0.1 × 5 + 0.1 × 0.2 × 100

    ∴ Tavg = 1 + 0.5 + 2 = 3.5 

    For 20% Data fetch

    Tavg = 0.2 × 3.5 = 3.5 ns = 0.70

    Totalavg = 3.6 ns + 0.7 ns = 4.3 ns

    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
  • Question 17
    2 / -0.33

    Consider a pipeline processor with 5 stages S1 to S5. We want to execute the following loops: while(i ≤ 1) {I1, I2, I3, I4} where i = 0. Time(ns) taken by the instruction I1 to I4 for stages S1 to S5 are given below:

     

    S1

    S2

    S3

    S4

    S5

    I1

    1

    1

    2

    1

    1

    I2

    1

    2

    1

    1

    1

    I3

    1

    2

    2

    1

    1

    I4

    2

    1

    2

    1

    1

     

    The output of I4 will be available after

    Solution

    i = 0

     

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    I1

    S1

    S2

    S3

    S3

    S4

    S5

     

     

     

     

     

     

    I2

     

    S1

    S2

    S2

    S3

    S4

    S5

     

     

     

     

     

    I3

     

     

    S1

     

    S2

    S2

    S3

    S3

    S4

    S5

     

     

    I4

     

     

     

     

    S1

    S1

    S2

     

    S3

    S3

    S4

    S5

     

    i = 1

     

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    I1

     

    S1

     

    S2

     

    S3

    S3

    S4

    S5

     

     

     

     

     

     

    I2

     

     

     

    S1

     

    S2

    S2

    S3

    S4

    S5

     

     

     

     

     

    I3

     

     

     

     

    S1

     

     

    S2

    S2

    S3

    S3

    S4

    S5

     

     

    I4

     

     

     

     

     

     

     

    S1

    S1

    S2

     

    S3

    S3

    S4

    S5

     

    ∴ the output of I4 will be available after 20 ns

  • Question 18
    2 / -0.33

    Which of the above statements is/are FALSE?

    Solution

    Option 1: TRUE

    In daisy chaining method of interrupt handling, the devices are connected serially in such a manner that nearest device to the CPU has the highest priority, followed by the next device and so on.

    Option 2: FALSE

    In vectored interrupt, vector address is given to the CPU to identify the source of interrupt. For example, in 8085 µP, RST 4.5 is a vectored interrupt. Here, 4.5 is the interrupt vector which gives the vector address as 4.5 × 8 = (36)10 = (0024)16

    Option 3: TRUE.

    In polling method, the CPU polls each device to check status bits to find out if the device has raised any interrupt. It is a software method.

    Option 4: FALSE

    In DMA mode, either the CPU or the DMA controller would gain control of the system bus a time, but not both. Accordingly, the CPU would be either in busy state or Hold state. It would be in busy state until I/O device prepares the data and would go to Hold state when I/O device starts transferring data to main memory via DMA controller.

  • Question 19
    2 / -0.33
    A certain processor deploys a single-level cache. The cache block size is 16 words and the word size is 4 bytes. The memory system uses a 100-MHz clock. To service a cache miss, the memory controller first takes 1 cycle to accept the starting address of the block, it then takes 5 cycles to fetch all the sixteen words of the block, and finally transmits the words of the requested block at the rate of 2 cycle per word. The maximum bandwidth for the memory system when the program running on the processor issues a series of read operations is ________× 107 bytes/sec.
    Solution

    Data:

    1 word = 4 bytes

    Cache block size: 16 word

    Frequency = 100 MHz clock

    \(1\;cycle = \frac{1}{{100\;M\;Hz}} = {10}^{-8} s\)

    In case of miss,

    To accept the starting address = 1 cycle

    To fetch all the eight words of the block = 5 cycles

    To transmit the words of the requested block = 2 cycle/word

    Formula:

    \(Bandwidth = \frac{{data\;tranfer\;}}{{Total\;cycles\;}}\)

    Calculation:

    In the case of a cache miss, 8 words need to be transmitted

    ∴ Total cycles = 1 + 5 + 2× 16 = 38 cycle

    Data transfer for a block = 16 word = 16 × 4 bytes = 64 bytes 

    \(Bandwidth = \frac{{64\;byte}}{{38\;cycle\;}}\)

    \(Bandwidth =\frac{64} {38×{10^{-8}}}\)

    Bandwidth = 16.84 × 107 bytes/sec

    Important points:

    SI unit of Hz: s-1

  • Question 20
    2 / -0.33

    A hard disk has 32 sectors/ track, 10 platters each with 2 recording surface and 1000 cylinders. The address of a sector is given as where c is cylinder no., h is for surface no., s is for sector no. Thus the 0th sector is addressed as <0, 0, 0>, 1st sector as <0, 0, 1> and so on.

    Then the address <200, 8, 20> corresponds to which sector no.?
    Solution

    Given:

    10 platters each with 2 recording surface.

    Total surfaces = 10 × 2 = 20

    Number of tracks = 1000

    Number of sector per track = 32

    Address for a sector is represented as :

    1st cylinder = 10 × 2 × 32

    We have to find the sector no. for <200, 8, 20>

    So, 200 cylinder = 200 × 10 × 2 × 32 + 8 × 32 + 20

    = 128000 + 256 + 20

    = 128276

    So, the address <200, 8, 20> corresponds to sector no. 128276.

  • Question 21
    2 / -0.33
    Consider a 32-bit processor which supports 70 instructions. Each instruction is 32 bit long and has 4 fields namely opcode, two register identifiers and an immediate operand of unsigned integer type. Maximum value of the immediate operand that can be supported by the processor is 8191. How many maximum registers the processor has?
    Solution

    Data:

    Each instruction = 32 bit

    Number of instructions which are supported = 70

    Maximum value by unsigned operand = 8191

    Formula:

    Opcode

    Register 1 (R)

    Register 2 (R)

    Immediate Operand

     

    In bits,

    Opcode + R + R + Immediate Operand = 32

    Calculation

    Number of bits needed for opcode = ⌈ log2(70)⌉ = 7 bits

    The maximum value of unsigned immediate operand = 8191

    2n – 1 = 8191

    2n = 8192 = 213

    ∴ n = 13 bits

    7 + R + R + 13 = 32

    2R = 12

    ∴ R = 6 bits.

    Maximum registers that a processor has = 26 = 64.
  • Question 22
    2 / -0.33

    Consider a system with 2 – level cache, at 0.6 hit ratio in level 1 memory. The L1 memory is 4 times faster than L2. The average access time is increased by 40% from 50 ns. What is the percentage of change in the hit ratio?

    NOTE:
    Choose the nearest answer

    Solution

    Given:

    Tavg1(average access time) = 50 ns

    Hit ratio H1 = 0.6

    L1 memory is 4 times faster than L2.

    Effective average access time = level 1 access time + (1- hit ratio)× level 2 access time

    When H1 = 0.6 and Tavg1 =  50 ns

    Let level 1 access time is T1.

    Level 2 access time is T2.

    T2= 4T1

    Tavg1 = T1 + 0.4 × 4 × T1

    50 = 2.6T1

    T1\(\frac{{50}}{{2.6}} = 19.23 \;ns\)

    Now, when T1 = 19.23 ns

    New average access time = Tavg2\(50 + \frac{{40}}{{100}} \times 50 = 70\;ns\)

    New hit ratio will be :

    70 = 19.23 + (1- H) × 4 × 19.23

    H = 0.3399

    \({H} = \frac{{0.3399-0.6}}{{0.6}} \times 100 = -43.35\%\)

    So, there is a decrease of ≈ 44%

  • Question 23
    2 / -0.33
    Consider a hypothetical system in which the data count register of a DMA controller is 32 bits. The processor needs to transfer a file of 31245 GB from a disk to main memory. The minimum number of times the DMA controller needs to get the control of the system bus from the processor to transfer the file from the disk to main memory is _________ (system is  byte addressable).
    Solution

    Concepts:

    During burst transfer, data equal to count of the register could be sent at a time.

    Data:

    Data count register = 232 bits

    File size = 31245 GB

    Formula

    Minimum number of times the DMA controller needs to get the control = \(\lceil\frac{{File\;size}}{{Data\;count\;register}}\rceil\)

    Calculation:

    Minimum number of times the DMA controller needs to get the control =  \(\lceil\frac{{31245\;GB}}{{{2^{32}}}}\rceil\) = 7812

Self Studies
User
Question Analysis
  • Correct -

  • Wrong -

  • Skipped -

My Perfomance
  • Score

    -

    out of -
  • Rank

    -

    out of -
Re-Attempt Weekly Quiz Competition
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