GATE 2005 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2005

203 questions

MCQ 2031-mark 203

Questions 76–80 of 203

Q76ALU Data Path and Control Unit1 markMCQ−0.33 if wrong
Consider the following data path of a CPU.
MAR MDR IR PC GPRs S T ALU
ALU, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC and the GPRs are to be carried out in the ALU. Two clock cycles are needed for memory read operation - the first one for loading address in the MAR and the next one for loading data from the memory bus into the MDR.

The instruction "call Rn, sub" is a two word instruction. Assuming that PC is incremented during the fetch cycle of the first word of the instruction, its register transfer interpretation is
 Rn < = PC + 1;
PC < = M[PC];
The minimum number of CPU clock cycles needed during the execution cycle of this instruction is:

Q77ALU Data Path and Control Unit1 markMCQ−0.33 if wrong
Consider the following data path of a CPU.
MAR MDR IR PC GPRs S T ALU
ALU, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC and the GPRs are to be carried out in the ALU. Two clock cycles are needed for memory read operation - the first one for loading address in the MAR and the next one for loading data from the memory bus into the MDR.

The instruction "add R0, R1" has the register transfer interpretation R0<=R0+R1. The minimum number of clock cycles needed for execution cycle of this instruction is.

Q78ALU Data Path and Control Unit1 markMCQ−0.33 if wrong
Consider a three word machine instruction
ADD A[R0], @B 
The first operand (destination) "A[R0]" uses indexed addressing mode with R0 as the index register. The second operand (source) "@B" uses indirect addressing mode. A and B are memory addresses residing at the second and the third words, respectively. The first word of the instruction specifies the opcode, the index register designation and the source and destination addressing modes. During execution of ADD instruction, the two operands are added and stored in the destination (first operand).
The number of memory cycles needed during the execution cycle of the instruction is:

Q79Memory Chip Design1 markMCQ−0.33 if wrong
A dynamic RAM has a memory cycle time of 64 nsec. It has to be refreshed 100 times per msec and each refresh takes 100 nsec. What percentage of the memory cycle time is used for refreshing?

Q80Cache Memory1 markMCQ−0.33 if wrong
Consider a 2-way set associative cache memory with 4 sets and total 8 cache blocks (0-7) and a main memory with 128 blocks (0-127). What memory blocks will be present in the cache after the following sequence of memory block references if LRU policy is used for cache block replacement?

0 5 3 9 7 0 16 55
Assuming that initially the cache did not have any memory block from the current job?