Computer Organization and Architecture questions — page 5 of 6

Q10

GATE CS 2016 CS-2Instruction Set and AddressingNAT1 mark
A processor has 40 distinct instructions and 24 general purpose registers. A 32-bit instruction word has an opcode, two register operands and an immediate operand. The number of bits available for the immediate operand field is _________.
Show answer without attempting

Answer: 16.0

Q30

GATE CS 2016 CS-2Instruction PipeliningNAT2 marks
Suppose the functions FF and GG can be computed in 5 and 3 nanoseconds by functional units UFU_F and UGU_G, respectively. Given two instances of UFU_F and two instances of UGU_G, it is required to implement the computation F(G(Xi))F(G(X_i)) for 1≤i≤101 \le i \le 10. Ignoring all other delays, the minimum time required to complete this computation is _________ nanoseconds.
Show answer without attempting

Answer: 28.0

Q31

GATE CS 2016 CS-2Instruction Set and AddressingNAT2 marks
Consider a processor with 64 registers and an instruction set of size twelve. Each instruction has five distinct fields, namely, opcode, two source register identifiers, one destination register identifier, and a twelve-bit immediate value. Each instruction must be stored in memory in a byte-aligned fashion. If a program has 100 instructions, the amount of memory (in bytes) consumed by the program text is _________.
Show answer without attempting

Answer: 500.0

Q32

GATE CS 2016 CS-2Memory HierarchyNAT2 marks
The width of the physical address on a machine is 40 bits. The width of the tag field in a 512 KB 8-way set associative cache is _________ bits.
Show answer without attempting

Answer: 24.0

Q33

GATE CS 2016 CS-2Instruction PipeliningNAT2 marks
Consider a 3 GHz (gigahertz) processor with a three-stage pipeline and stage latencies τ1\tau_1, τ2\tau_2, and τ3\tau_3 such that τ1=3τ2/4=2τ3\tau_1 = 3\tau_2 / 4 = 2\tau_3. If the longest pipeline stage is split into two pipeline stages of equal latency, the new frequency is _________ GHz, ignoring delays in the pipeline registers.
Show answer without attempting

Answer: 3.9 to 4.1

Q34

GATE CS 2015 CS-3Memory HierarchyMCQ1 mark−1/3 if wrong
Consider a machine with a byte addressable main memory of 2202^{20} bytes, block size of 16 bytes and a direct mapped cache having 2122^{12} cache lines. Let the addresses of two consecutive bytes in main memory be (E201F)16(\text{E201F})_{16} and (E2020)16(\text{E2020})_{16}. What are the tag and cache line address (in hex) for main memory address (E201F)16(\text{E201F})_{16}?
Show answer without attempting

Answer: A

Q48

GATE CS 2015 CS-3Instruction PipeliningNAT2 marks
Consider the following reservation table for a pipeline having three stages S1S_1, S2S_2 and S3S_3.
Time →\to12345
S1S_1XX
S2S_2XX
S3S_3X
The minimum average latency (MAL) is ____________.
Show answer without attempting

Answer: 3

Q49

GATE CS 2015 CS-3Instruction PipeliningMCQ2 marks−2/3 if wrong
Consider the following code sequence having five instructions I1I_1 to I5I_5. Each of these instructions has the following format.

OP Ri, Rj, Rk

where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri.

I1I_1: ADD R1, R2, R3
I2I_2: MUL R7, R1, R3
I3I_3: SUB R4, R1, R5
I4I_4: ADD R3, R2, R4
I5I_5: MUL R7, R8, R9

Consider the following three statements.

S1: There is an anti-dependence between instructions I2I_2 and I5I_5
S2: There is an anti-dependence between instructions I2I_2 and I4I_4
S3: Within an instruction pipeline an anti-dependence always creates one or more stalls

Which one of above statements is/are correct?
Show answer without attempting

Answer: B

Q50

GATE CS 2015 CS-3Memory HierarchyMCQ2 marks−2/3 if wrong
Consider the following two C code segments. YY and XX are one and two dimensional arrays of size nn and n×nn \times n respectively, where 2≤n≤102 \le n \le 10. Assume that in both code segments, elements of YY are initialized to 0 and each element X[i][j]X[i][j] of array XX is initialized to i+ji+j. Further assume that when stored in main memory all elements of XX are in same main memory page frame.

Code segment 1:
//initialize elements of Y to 0
//initialize elements X[i][j] of X to i+j

for(i = 0; i < n; i++)
    Y[i] += X[0][i];
Code Segment 2:
//initialize elements of Y to 0
//initialize elements X[i][j] of X to i+j

for(i = 0; i < n; i++)
    Y[i] += X[i][0];
Which of the following statements is/are correct?

S1: Final contents of array YY will be same in both code segments
S2: Elements of array XX accessed inside the for loop shown in code segment 1 are contiguous in main memory
S3: Elements of array XX accessed inside the for loop shown in code segment 2 are contiguous in main memory
Show answer without attempting

Answer: C

Q22

GATE CS 2015 CS-1Instruction Set and AddressingMCQ1 mark−1/3 if wrong
For computers based on three-address instruction formats, each address field can be used to specify which of the following:

(S1) A memory operand
(S2) A processor register
(S3) An implied accumulator register
Show answer without attempting

Answer: A

Q55

GATE CS 2015 CS-1Instruction PipeliningNAT2 marks
Consider a non-pipelined processor with a clock rate of 2.5 gigahertz and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to 2 gigahertz. Assume that there are no stalls in the pipeline. The speed up achieved in this pipelined processor is ________.
Show answer without attempting

Answer: 3.2

Q18

GATE CS 2015 CS-2Memory HierarchyNAT1 mark
Assume that for a certain processor, a read request takes 50 nanoseconds on a cache miss and 5 nanoseconds on a cache hit. Suppose while running a program, it was observed that 80% of the processor's read requests result in a cache hit. The average read access time in nanoseconds is ___________.
Show answer without attempting

Answer: 14

Q53

GATE CS 2015 CS-2Instruction PipeliningNAT2 marks
Consider the sequence of machine instructions given below:
MUL  R5, R0, R1
DIV  R6, R2, R3
ADD  R7, R5, R6
SUB  R8, R7, R4
In the above sequence, R0 to R8 are general purpose registers. In the instructions shown, the first register stores the result of the operation performed on the second and the third registers. This sequence of instructions is to be executed in a pipelined instruction processor with the following 4 stages: (1) Instruction Fetch and Decode (IF), (2) Operand Fetch (OF), (3) Perform Operation (PO) and (4) Write back the result (WB). The IF, OF and WB stages take 1 clock cycle each for any instruction. The PO stage takes 1 clock cycle for ADD or SUB instruction, 3 clock cycles for MUL instruction and 5 clock cycles for DIV instruction. The pipelined processor uses operand forwarding from the PO stage to the OF stage. The number of clock cycles taken for the execution of the above sequence of instructions is ____________.
Show answer without attempting

Answer: 13

Q54

GATE CS 2015 CS-2Instruction Set and AddressingMCQ2 marks−2/3 if wrong
Consider a processor with byte-addressable memory. Assume that all registers, including Program Counter (PC) and Program Status Word (PSW), are of size 2 bytes. A stack in the main memory is implemented from memory location (0100)16(0100)_{16} and it grows upward. The stack pointer (SP) points to the top element of the stack. The current value of SP is (016E)16(016E)_{16}. The CALL instruction is of two words, the first word is the op-code and the second word is the starting address of the subroutine (one word = 2 bytes). The CALL instruction is implemented as follows:

• Store the current value of PC in the stack
• Store the value of PSW register in the stack
• Load the starting address of the subroutine in PC

The content of PC just before the fetch of a CALL instruction is (5FA0)16(5FA0)_{16}. After execution of the CALL instruction, the value of the stack pointer is
Show answer without attempting

Answer: D

Q9

GATE CS 2014 CS-2Memory HierarchyNAT1 mark
A 4-way set-associative cache memory unit with a capacity of 16 KB is built using a block size of 8 words. The word length is 32 bits. The size of the physical address space is 4 GB. The number of bits for the TAG field is _____
Show answer without attempting

Answer: 20

Q43

GATE CS 2014 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
In designing a computer’s cache system, the cache block (or cache line) size is an important parameter. Which one of the following statements is correct in this context?
Show answer without attempting

Answer: D

Q44

GATE CS 2014 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
If the associativity of a processor cache is doubled while keeping the capacity and block size unchanged, which one of the following is guaranteed to be NOT affected?
Show answer without attempting

Answer: D

Q55

GATE CS 2014 CS-2Memory HierarchyNAT2 marks
Consider a main memory system that consists of 8 memory modules attached to the system bus, which is one word wide. When a write request is made, the bus is occupied for 100 nanoseconds (ns) by the data, address, and control signals. During the same 100 ns, and for 500 ns thereafter, the addressed memory module executes one cycle accepting and storing the data. The (internal) operation of different memory modules may overlap in time, but only one request can be on the bus at any time. The maximum number of stores (of one word each) that can be initiated in 1 millisecond is ____________
Show answer without attempting

Answer: 10000

Q9

GATE CS 2014 CS-3Instruction PipeliningMCQ1 mark−1/3 if wrong
Consider the following processors (ns stands for nanoseconds). Assume that the pipeline registers have zero latency.

P1: Four-stage pipeline with stage latencies 1 ns, 2 ns, 2 ns, 1 ns.
P2: Four-stage pipeline with stage latencies 1 ns, 1.5 ns, 1.5 ns, 1.5 ns.
P3: Five-stage pipeline with stage latencies 0.5 ns, 1 ns, 1 ns, 0.6 ns, 1 ns.
P4: Five-stage pipeline with stage latencies 0.5 ns, 0.5 ns, 1 ns, 1 ns, 1.1 ns.

Which processor has the highest peak clock frequency?
Show answer without attempting

Answer: C

Q43

GATE CS 2014 CS-3Instruction PipeliningNAT2 marks
An instruction pipeline has five stages, namely, instruction fetch (IF), instruction decode and register fetch (ID/RF), instruction execution (EX), memory access (MEM), and register writeback (WB) with stage latencies 1 ns, 2.2 ns, 2 ns, 1 ns, and 0.75 ns, respectively (ns stands for nanoseconds). To gain in terms of frequency, the designers have decided to split the ID/RF stage into three stages (ID, RF1, RF2) each of latency 2.2/3 ns. Also, the EX stage is split into two stages (EX1, EX2) each of latency 1 ns. The new design has a total of eight pipeline stages. A program has 20% branch instructions which execute in the EX stage and produce the next instruction pointer at the end of the EX stage in the old design and at the end of the EX2 stage in the new design. The IF stage stalls after fetching a branch instruction until the next instruction pointer is computed. All instructions other than the branch instruction have an average CPI of one in both the designs. The execution times of this program on the old and the new design are P and Q nanoseconds, respectively. The value of P/Q is __________.
Show answer without attempting

Answer: 1.50 to 1.60

0/200 correct0 marks

Related topics in GATE CS