GATE CS Computer Organization and Architecture questions
Practise Computer Organization and Architecture questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.
Track address sizes, cache organisation and pipeline dependencies carefully. Write down the units and assumptions before computing memory access times or processor performance.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
Match each addressing mode in with a data element or an element of a data structure (in a high-level language) in : …
Consider a processor whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand. Which one of the following sequences of instructions corresponds to the high-level language statement ? Note: X, Y, and Z …
Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?
The size of the physical address space of a processor is bytes. The capacity of a cache memory unit is bytes. The cache block size is bytes. The cache memory unit can be built as a direct mapped cache or as a -way set-associative cache, where and . Let the length of the TAG field be bits …
Consider a system that has a cache memory unit and a memory management unit (MMU). The address input to the cache memory is a physical address. The MMU has a translation lookaside buffer (TLB). Assume that when a page is evicted from the main memory, the corresponding blocks in the cache are marked as invalid. For a given memory reference, which of the …
Consider a hard disk with a rotational speed of rpm. The time to move the read/write head from a track to its adjacent track is millisecond. Initially, the head is on track . The number of sectors per track is . The sector size is bytes. It is necessary to transfer data from randomly located sectors in each of the …
The EX stage of a pipelined processor performs the memory read operations for LOAD instructions, and the operations for the arithmetic and logic instructions. Let denote the time taken by the EX stage to perform the operation for an instruction. For each instruction type, the values of and (the number of instructions of that …
Consider the following two statements about interrupt handling mechanisms in a CPU. : In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism. : In daisy-chain interrupt mechanism, the CPU polls all the input devices …
Consider a processor that has general purpose registers and it uses -byte instruction format for all its instructions. Variable-sized opcodes are permitted. There are three different types of instructions; M-type, R-type, and C-type. Each M-type instruction has register operands and a -bit immediate operand. Each Rtype instruction has …
Consider a system with a processor and a KB direct mapped cache with block size of bytes. The system has a MB physical memory. Four words , and S are accessed by the processor in the same order times. That is, there are a total of memory references in the sequence …
To keep track of free blocks in a file system, one of the two approaches is generally used - using bitmaps (bit vectors) or using linked lists. Consider that the linked list approach is used to keep track of free blocks in a file system. Assume that the disk size is GB , block size is KB , and block numbers used are -bit long. A single …
A non-pipelined instruction execution unit that operates at GHz clock takes an average of clock cycles to complete the execution of an instruction. To improve the performance, the system was pipelined with a goal of achieving an average throughput of one instruction per clock cycle. However, it could operate only at GHz due to pipeline …
Consider a system with MB physical memory and a word length of byte. The system uses a direct mapped cache, with block numbers starting from . The word with physical address is mapped to the cache block number . The maximum possible size of the cache (in KB ) for this configuration is . (answer …
Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the …
A partial data path of a processor is given in the figure, where and are -bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown?
Consider a memory system with bytes of main memory and bytes of cache memory. Assume that the processor generates -bit memory address, and the cache block size is bytes. If the cache uses direct mapping, how many bits will be required to store all the values? [Assume memory is byte …
A processor has general-purpose registers and distinct instruction types. An instruction is encoded in -bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction? , / /
A computer has a memory hierarchy consisting of two-level cache and and a main memory. If the processor needs to access data from memory, it first looks into cache. If the data is not found in cache, it goes to cache. If it fails to get the data from cache, it goes to main …
Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is nanosecond (ns) and the "hit rate" for L1 cache is while the processor is accessing the data from L1 cache. Whereas, for the second level (L2) cache, the "hit rate" is and the "miss penalty" for transferring …
A -stage instruction pipeline has stage delays of , and , respectively, in nanoseconds. The delay of an inter-stage latch is nanoseconds. Assume that there are no pipeline stalls due to branches and other hazards. The time taken to process instructions in microseconds is __________. (rounded off to two decimal …
