Which one of the following dependencies among the register operands of different
instructions can cause a data hazard in a pipelined processor?
A pipelined processor overlaps the execution of successive instructions. A data hazard occurs when an instruction depends on the result of an earlier instruction that has not yet completed.
Step 1: List the possible register-dependency types between two instructions \(I_1\) (earlier) and \(I_2\) (later) that share a register:
Step 2: In a simple in-order pipeline, instructions are fetched, decoded, executed, and written back strictly in program order. Reads (operand-fetch stage) always precede a later instruction's write-back stage, so WAR and WAW situations cannot actually be violated, and RAR involves no real dependency.
Step 3: Only RAW creates a genuine hazard: \(I_2\) may try to read the register in its operand-fetch stage before \(I_1\) has written the correct value back, giving an incorrect (stale) value unless the pipeline stalls or forwards the result.
\[\boxed{\text{Answer: Read-after-write (Option B)}}\]
A schedule of three database transactions \(T_1\), \(T_2\), and \(T_3\) is shown. \(R_i(A)\) and \(W_i(A)\) denote read and write of data item A by transaction \(T_i\), \(i = 1, 2, 3\). The transaction \(T_1\) aborts at the end. Which other transaction(s) will be required to be rolled back?

A partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown?

The height of any rooted tree is defined as the maximum number of edges in the path from the root node to any leaf node. Suppose a Min-Heap \( T \) stores 32 keys. The height of \( T \) is ___________ (Answer in integer).
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 M (the number of instructions of that
type in a sequence of 100 instructions for a program P), are given in the table below.
The duration of the pipeline clock cycle is 1 nanosecond. Assume that the latch time
for the interstage buffers in the pipeline is negligible.
When program P is executed, the number of clock cycles for which the pipeline is
stalled due to structural hazards in the EX stage is ______. (answer in integer)
Instruction
π‘πΈπ in
nanoseconds
π
LOAD
1.8
15
IMUL
1.5
10
IDIV
2.5
5
FADD
1.7
10
FSUB
1.7
5
FMUL
2.8
15
FDIV
3.2
5
All other
instructions
Less than
1.0
35