Computer Organization and Architecture questions — page 3 of 6

Q40

GATE CS 2022 CSMemory HierarchyMCQ2 marks−2/3 if wrong
Consider a digital display system (DDS) shown in the figure that displays the contents of register XX. A 16-bit code word is used to load a word in XX, either from SS or from RR. SS is a 1024-word memory segment and RR is a 32-word register file. Based on the value of mode bit MM, TT selects an input word to load in XX. PP and QQ interface with the corresponding bits in the code word to choose the addressed word.

Which one of the following represents the functionality of PP, QQ, and TT?
Question figure
Show answer without attempting

Answer: C

Q54

GATE CS 2022 CSMemory HierarchyMSQ2 marks
Consider a system with 2 KB direct mapped data cache with a block size of 64 bytes. The system has a physical address space of 64 KB and a word length of 16 bits. During the execution of a program, four data words P, Q, R, and S are accessed in that order 10 times (i.e., PQRSPQRS...). Hence, there are 40 accesses to data cache altogether. Assume that the data cache is initially empty and no other data words are accessed by the program. The addresses of the first bytes of P, Q, R, and S are 0xA248, 0xC28A, 0xCA8A, and 0xA262, respectively. For the execution of the above program, which of the following statements is/are TRUE with respect to the data cache?
More than one option can be correct.
Show answer without attempting

Answer: A, B, D

Q61

GATE CS 2022 CSInstruction PipeliningNAT2 marks
A processor X1X_1 operating at 2 GHz has a standard 5-stage RISC instruction pipeline having a base CPI (cycles per instruction) of one without any pipeline hazards. For a given program PP that has 30% branch instructions, control hazards incur 2 cycles stall for every branch. A new version of the processor X2X_2 operating at same clock frequency has an additional branch predictor unit (BPU) that completely eliminates stalls for correctly predicted branches. There is neither any savings nor any additional stalls for wrong predictions. There are no structural hazards and data hazards for X1X_1 and X2X_2. If the BPU has a prediction accuracy of 80%, the speed up (rounded off to two decimal places) obtained by X2X_2 over X1X_1 in executing PP is____________.
Show answer without attempting

Answer: 1.42 to 1.45

Q22

GATE CS 2021 CS-1Memory HierarchyNAT1 mark
Consider a computer system with a byte-addressable primary memory of size 2322^{32} bytes. Assume the computer system has a direct-mapped cache of size 32 KB (1 KB = 2102^{10} bytes), and each cache block is of size 64 bytes.
The size of the tag field is ______ bits.
Show answer without attempting

Answer: 17

Q53

GATE CS 2021 CS-1Instruction PipeliningNAT2 marks
A five-stage pipeline has stage delays of 150, 120, 150, 160 and 140 nanoseconds. The registers that are used between the pipeline stages have a delay of 5 nanoseconds each.
The total time to execute 100 independent instructions on this pipeline, assuming there are no pipeline stalls, is ______ nanoseconds.
Show answer without attempting

Answer: 17160

Q55

GATE CS 2021 CS-1Instruction Set and AddressingNAT2 marks
Consider the following instruction sequence where registers R1, R2 and R3 are general purpose and MEMORY[X] denotes the content at the memory location X.
InstructionSemanticsInstruction Size (bytes)
MOV R1, (5000)R1 ← MEMORY[5000]4
MOV R2, (R3)R2 ← MEMORY[R3]4
ADD R2, R1R2 ← R1+R22
MOV (R3), R2MEMORY[R3] ← R24
INC R3R3 ← R3+12
DEC R1R1 ← R1-12
BNZ 1004Branch if not zero to the given absolute address2
HALTStop1
Assume that the content of the memory location 5000 is 10, and the content of the register R3 is 3000. The content of each of the memory locations from 3000 to 3010 is 50. The instruction sequence starts from the memory location 1000. All the numbers are in decimal format. Assume that the memory is byte addressable.
After the execution of the program, the content of memory location 3010 is ______.
Show answer without attempting

Answer: 50

Q19

GATE CS 2021 CS-2Memory HierarchyNAT1 mark
Consider a set-associative cache of size 2KB (1KB=2101\text{KB} = 2^{10} bytes) with cache block size of 64 bytes. Assume that the cache is byte-addressable and a 32-bit address is used for accessing the cache. If the width of the tag field is 22 bits, the associativity of the cache is ____________.
Show answer without attempting

Answer: 2

Q20

GATE CS 2021 CS-2Input OutputNAT1 mark
Consider a computer system with DMA support. The DMA module is transferring one 8-bit character in one CPU cycle from a device to memory through cycle stealing at regular intervals. Consider a 2 MHz2\text{ MHz} processor. If 0.5%0.5\% processor cycles are used for DMA, the data transfer rate of the device is ____________ bits per second.
Show answer without attempting

Answer: 80000

Q27

GATE CS 2021 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
Assume a two-level inclusive cache hierarchy, L1 and L2, where L2 is the larger of the two. Consider the following statements.

S1S_1: Read misses in a write through L1 cache do not result in writebacks of dirty lines to the L2.
S2S_2: Write allocate policy must be used in conjunction with write through caches and no-write allocate policy is used with writeback caches.

Which of the following statements is correct?
Show answer without attempting

Answer: A

Q53

GATE CS 2021 CS-2Instruction PipeliningNAT2 marks
Consider a pipelined processor with 5 stages, Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Write Back (WB). Each stage of the pipeline, except the EX stage, takes one cycle. Assume that the ID stage merely decodes the instruction and the register read is performed in the EX stage. The EX stage takes one cycle for ADD instruction and two cycles for MUL instruction. Ignore pipeline register latencies.
Consider the following sequence of 8 instructions:

ADD, MUL, ADD, MUL, ADD, MUL, ADD, MUL

Assume that every MUL instruction is data-dependent on the ADD instruction just before it and every ADD instruction (except the first ADD) is data-dependent on the MUL instruction just before it. The Speedup is defined as follows:

Speedup=Execution time without operand forwardingExecution time with operand forwarding\text{Speedup} = \frac{\text{Execution time without operand forwarding}}{\text{Execution time with operand forwarding}}

The Speedup achieved in executing the given instruction sequence on the pipelined processor (rounded to 2 decimal places) is ____________.
Show answer without attempting

Answer: 1.87 to 1.88

Q3

GATE CS 2020 CSInput OutputMCQ1 mark−1/3 if wrong
Consider the following statements.

I. Daisy chaining is used to assign priorities in attending interrupts.
II. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt.
III. In polling, the CPU periodically checks the status bits to know if any device needs its attention.
IV. During DMA, both the CPU and DMA controller can be bus masters at the same time.

Which of the above statements is/are TRUE?
Show answer without attempting

Answer: C

Q4

GATE CS 2020 CSProcessor DesignMCQ1 mark−1/3 if wrong
Consider the following data path diagram.

Consider an instruction: R0←R1+R2R0 \leftarrow R1 + R2. The following steps are used to execute it over the given data path. Assume that PC is incremented appropriately. The subscripts r and w indicate read and write operations, respectively.

1. R2r\text{R2}_r, TEMP1r\text{TEMP1}_r, ALUadd\text{ALU}_{add}, TEMP2w\text{TEMP2}_w
2. R1r\text{R1}_r, TEMP1w\text{TEMP1}_w
3. PCr\text{PC}_r, MARw\text{MAR}_w, MEMr\text{MEM}_r
4. TEMP2r\text{TEMP2}_r, R0w\text{R0}_w
5. MDRr\text{MDR}_r, IRw\text{IR}_w

Which one of the following is the correct order of execution of the above steps?
Question figure
Show answer without attempting

Answer: C

Q20

GATE CS 2020 CSMemory HierarchyNAT1 mark
If there are mm input lines and nn output lines for a decoder that is used to uniquely address a byte addressable 1 KB RAM, then the minimum value of m+nm + n is __________.
Show answer without attempting

Answer: 1034

Q21

GATE CS 2020 CSMemory HierarchyNAT1 mark
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 __________.
Show answer without attempting

Answer: 13.3 OR 13.5

Q30

GATE CS 2020 CSMemory HierarchyMCQ2 marks−2/3 if wrong
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?
Show answer without attempting

Answer: B

Q43

GATE CS 2020 CSInstruction PipeliningNAT2 marks
Consider a non-pipelined processor operating at 2.5 GHz. It takes 5 clock cycles to complete an instruction. You are going to make a 5-stage pipeline out of this processor. Overheads associated with pipelining force you to operate the pipelined processor at 2 GHz. In a given program, assume that 30% are memory instructions, 60% are ALU instructions and the rest are branch instructions. 5% of the memory instructions cause stalls of 50 clock cycles each due to cache misses and 50% of the branch instructions cause stalls of 2 cycles each. Assume that there are no stalls associated with the execution of ALU instructions. For this program, the speedup achieved by the pipelined processor over the non-pipelined processor (round off to 2 decimal places) is __________.
Show answer without attempting

Answer: 2.15 to 2.18

Q44

GATE CS 2020 CSInstruction Set and AddressingNAT2 marks
A processor has 64 registers and uses 16-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, a register name, and a 4-bit immediate value. Each R-type instruction contains an opcode and two register names. If there are 8 distinct I-type opcodes, then the maximum number of distinct R-type opcodes is __________.
Show answer without attempting

Answer: 14

Q1

GATE CS 2019 CSMemory HierarchyMCQ1 mark−1/3 if wrong
A certain processor uses a fully associative cache of size 16 kB16\text{ kB}. The cache block size is 1616 bytes. Assume that the main memory is byte addressable and uses a 32-bit address. How many bits are required for the Tag and the Index fields respectively in the addresses generated by the processor?
Show answer without attempting

Answer: D

Q2

GATE CS 2019 CSMemory HierarchyMCQ1 mark−1/3 if wrong
The chip select logic for a certain DRAM chip in a memory system design is shown below. Assume that the memory system has 16 address lines denoted by A15A_{15} to A0A_0. What is the range of addresses (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?
Question figure
Show answer without attempting

Answer: A

Q45

GATE CS 2019 CSMemory HierarchyNAT2 marks
A certain processor deploys a single-level cache. The cache block size is 8 words and the word size is 4 bytes. The memory system uses a 60-MHz60\text{-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 3 cycles to fetch all the eight words of the block, and finally transmits the words of the requested block at the rate of 1 word per cycle. The maximum bandwidth for the memory system when the program running on the processor issues a series of read operations is __________ ×106\times 10^6 bytes/sec.
Show answer without attempting

Answer: 160

0/200 correct0 marks

Related topics in GATE CS