GATE 2002
56 questions
MCQ 561-mark 56
Questions 26–30 of 56
In the absolute addressing mode:
Answer: (B)
(B) is the answer. In absolute addressing mode, the instruction gives the address of the operand.
Option (A): the operand is inside the instruction this is immediate addressing.
Option (C): the register that holds the address is named in the instruction this is register indirect addressing.
Option (D): the location of the operand is implicit this is implicit addressing.
Answer: (B)
Horizontal microprogramming
Answer: (D)
In horizontal microprogramming each bit of the microinstruction directly controls one control signal. Check each statement:
- (A) Since every signal has its own bit, the bits drive the hardware directly and no decoder is needed. True.
- (B) One bit per signal makes the microinstruction wide. Vertical microprogramming encodes the signals in a few fields, which needs decoders but gives shorter microinstructions. So horizontal ones are larger. True.
- (C) One bit per control signal is the definition of horizontal microcode. True.
All three are true.
Answer: (D)
- (A) Since every signal has its own bit, the bits drive the hardware directly and no decoder is needed. True.
- (B) One bit per signal makes the microinstruction wide. Vertical microprogramming encodes the signals in a few fields, which needs decoders but gives shorter microinstructions. So horizontal ones are larger. True.
- (C) One bit per control signal is the definition of horizontal microcode. True.
All three are true.
Answer: (D)
Which of the following is not a form of memory ?
Answer: (C)
The instruction opcode is one part of an instruction. It tells the processor which operation it has to do. So it is not a form of memory, but the other options are.
A device employing INTR line for device interrupt puts the CALL instruction on the data bus while
Answer: (A)
In the 8085, a device raises INTR (an input request line) and the CPU, if interrupts are enabled with EI, finishes the current instruction and sends the interrupt acknowledge signal (active low). The CPU does not fetch the next instruction from memory. During the cycle the interrupting device puts an instruction on the data bus (a CALL, or an RST opcode), and the CPU executes it. With CALL, two more cycles bring in the two address bytes.
HOLD is the request line that a DMA controller uses to ask for the buses, so it has nothing to do with interrupt vectoring. READY is used to insert wait states for slow memory or I/O devices. So option A is the right one.
Answer: (A)
HOLD is the request line that a DMA controller uses to ask for the buses, so it has nothing to do with interrupt vectoring. READY is used to insert wait states for slow memory or I/O devices. So option A is the right one.
Answer: (A)
The performance of a pipelined processor suffers if
Answer: (D)
A pipeline gives its best speed-up only when every stage takes the same time and every instruction can enter the next stage each clock. Each option breaks this.
(A) All stages share one clock, so the clock period must fit the slowest stage (plus the pipeline register delay). Faster stages sit idle for part of each cycle, so the gain is less than the ideal.
(B) If an instruction needs a result that the previous instruction has not produced yet (a data dependence), the pipeline must stall. Forwarding removes many of these stalls, but not all: an instruction that uses a loaded value in the very next cycle still waits.
(C) If two stages need the same hardware in the same cycle (a structural hazard), one must wait. For example, IF and MEM both need a single memory port, so a load or store in MEM blocks the instruction fetch.
All three reduce performance.
Answer: (D)
(A) All stages share one clock, so the clock period must fit the slowest stage (plus the pipeline register delay). Faster stages sit idle for part of each cycle, so the gain is less than the ideal.
(B) If an instruction needs a result that the previous instruction has not produced yet (a data dependence), the pipeline must stall. Forwarding removes many of these stalls, but not all: an instruction that uses a loaded value in the very next cycle still waits.
(C) If two stages need the same hardware in the same cycle (a structural hazard), one must wait. For example, IF and MEM both need a single memory port, so a load or store in MEM blocks the instruction fetch.
All three reduce performance.
Answer: (D)