A non-pipelined instruction execution unit that operates at 1.6 GHz clock takes an
average of 5 clock cycles to complete the execution of an instruction. To improve
the performance, the system was pipelined with a goal of achieving an average
throughput of one instruction per clock cycle. However, it could operate only at
1.2 GHz due to pipeline overheads. While executing a program in the pipelined
design, 30% of instructions encountered a stall of 2 cycles due to pipeline hazards.
The speed-up obtained by the pipelined design over the non-pipelined one for this
program is ___________. (rounded off to two decimal places)
Note: 1G=109
We need to find the actual speed-up achieved by the pipelined processor over the non-pipelined processor for the given program, accounting for pipeline stalls.
Step 1: Compute execution time per instruction for the non-pipelined design.
Clock frequency = 1.6 GHz, so clock period \(T_{np} = \dfrac{1}{1.6 \times 10^9} = 0.625\) ns.
Average CPI (non-pipelined) = 5 cycles per instruction.
Execution time per instruction (non-pipelined):
\[T_{np,\ inst} = 5 \times 0.625\ \text{ns} = 3.125\ \text{ns}\]Step 2: Compute the effective CPI for the pipelined design.
Ideally the pipeline achieves 1 instruction per cycle (CPI = 1). However, 30% of instructions face a stall of 2 extra cycles due to hazards.
Effective CPI:
\[CPI_{eff} = 1 + (0.30 \times 2) = 1 + 0.6 = 1.6\]Step 3: Compute execution time per instruction for the pipelined design.
Clock frequency = 1.2 GHz, so clock period \(T_p = \dfrac{1}{1.2 \times 10^9} = 0.8333\) ns.
Execution time per instruction (pipelined):
\[T_{p,\ inst} = CPI_{eff} \times T_p = 1.6 \times 0.8333\ \text{ns} = 1.3333\ \text{ns}\]Step 4: Compute the speed-up.
Speed-up is the ratio of execution time of the non-pipelined design to the execution time of the pipelined design (for the same program, i.e., same number of instructions, so the instruction count cancels out):
\[\text{Speed-up} = \dfrac{T_{np,\ inst}}{T_{p,\ inst}} = \dfrac{3.125}{1.3333}\]\[\text{Speed-up} = 2.34375 \approx 2.34\]Step 5: Conclusion.
The speed-up of the pipelined design over the non-pipelined design lies between 2.30 and 2.40, matching the official key.
Final Answer: \[\boxed{2.34\ (\text{accepted range: } 2.30\ \text{to}\ 2.40)}\]
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?

Match each addressing mode in List I with a data element or an element of a data
structure (in a high-level language) in List II:
List I
List II
P. Immediate
1. Element of an array
Q. Indirect
2. Pointer
R. Base with index
3. Element of a record
S. Base with offset/displacement 4. Constant
Consider the 8-bit signed integers 𝑋, 𝑌 and 𝑍 represented using the sign-magnitude
form. The binary representations of 𝑋 and 𝑌 are as follows:
𝑋: 10110100 𝑌: 01001100
Which of the following operations to compute 𝑍 result(s) in an arithmetic
overflow?
In a system, numbers are represented using 4-bit two’s complement form. Consider
four numbers 𝑁1 =1011, 𝑁2 =1101, 𝑁3 =1010 and 𝑁4 =1001 in the system.
Which of the following operations will result in arithmetic overflow?
The 32-bit IEEE 754 single precision representation of a number is 0xC2710000.
The number in decimal representation is ________. (rounded off to two decimal
places)
Consider the following two statements about interrupt handling mechanisms in a
CPU.
S1: In non-vectored interrupt mechanism, it usually takes more time to start the
Interrupt Service Routine (ISR) when compared to that in a vectored interrupt
mechanism.
S2: In daisy-chain interrupt mechanism, the CPU polls all the input devices
individually to determine the source of the interrupt.
Which one of the following options is correct with respect to S1 and S2 ?