Consider a 4-way set associative cache consisting of 128 lines with a line size of 64 words. The CPU generates a 20-bit address of a word in main memory. The number of bits in the TAG, LINE and WORD fields are respectively :-
Asked in RPSC 23Feb 2016Question Paper for VicePrincipal/Superintendent ITI Screening Test 2012(Computer Science)VICE PRINCIPAL/SUPDT. ITI - 2012
Show answer
Answer: D. 9,5,6
More RPSC Prelims previous year questions questions
- Consider a disk pack with 16 surfaces, 128 tracks per surface and 256 sectors per track. 512 bytes of data are stored in a bit serial manner in a sector. The capacity of the disk pack and the number of bits required to specify a particular sector in the disk are respectively:
- A CPU has a five-stage pipeline and runs at 1 GHz frequency. Instruction fetch happens in the first stage of the pipeline. A conditional branch instruction computes the target address and evaluates the condition in the third stage of the pipeline. The processor stops fetching new instructions following a conditional branch until the branch outcome is known. A program executes 10^9 instructions out of which 20% are conditional branches. If each instruction takes one cycle to complete on average, the total execution time of the program is:
- Which one of the following is true for a CPU having a single interrupt request line and a single interrupt grant line?
- The instruction, Add #45,R1 does :
- A set associative cache consists of 64 lines, or slots divided into four lines sets. Main memory consists of 4k blocks of 128 words each. What are the number of the bits of TAG, Set offset and word offset respectively ?
- What is the source and destination addressing mode for the instruction ? ADD Ax , [500] ; Ax ← M[500] ;
- Consider a cache with 40 bit address 16384 blocks and block size is 256 byte Tags are 19 bit long. How many sets are there and what is the associating of a cache ?
- What is the address of the operand in a computation-type instruction:-