Q: 1 The following are the characteristics considered while deciding a processor architecture
(i) Register to register arithmetic operations only.
(ii) Fixed length instruction format.
(iii) Hardwired control unit.
(iv) Variable length instruction format.
Which of the above characteristics are applied in the design of RISC processor?
(i) and (ii) only
(i), (ii) and (iv) only
(i), (ii) and (iii) only
(i), (ii) and (iv) only
[ Option C ]
A RISC (Reduced Instruction Set Computer) architecture is designed to simplify instructions and improve execution speed. Its main characteristics include:
| STATEMENT | RISC APPLICABLE? | EXPLANATION |
|---|---|---|
| Register to register arithmetic operations only | Yes | RISC uses load/store architecture. Operations are performed on registers only. |
| Fixed length instruction format | Yes | Helps in fast instruction decoding and pipelining. |
| Hardwired control unit | Yes | Provides faster execution compared to microprogrammed control. |
| Variable length instruction format | No | This is a feature of CISC, not RISC. |
Q: 2 Register renaming is done in pipelined processors -
As an alternative to register allocation at compile time
For efficient access to function parameters and local variables
To handle certain kinds of hazards
As part of address translation
[ Option C ]
Register renaming is a technique used in modern superscalar and pipelined processors to eliminate a specific type of data hazard called WAR (Write-After-Read) and WAW (Write-After-Write) hazards. These are also known as "Name Dependencies" because they arise not from a true data dependency, but from the reuse of a limited number of architectural registers.
Q: 3 The instruction pipeline in a RISC processor has the following stages, such as Instruction Fetch, Instruction Decode, Operand Fetch, Perform Operation and Write Back. All stages take only 1 clock cycle except Perform Operation stage. When a program of 150 instructions is executed, in Perform Operation stage 60 instructions take 3 clock cycles, 50 instructions take 2 clock cycles and the remaining instructions take 1 clock cycle. Total number of clock cycles required for the completion of the sequence of instructions is
644
320
324
524
[ Option C ]
In a Pipeline Processor, multiple instructions are executed in an overlapping manner. The total number of clock cycles required is given by:
If any stage takes more than 1 cycle for some instructions, it causes pipeline stalls, which increase total execution time.
Step 1: Base Pipeline Cycles
Step 2: Extra Cycles (Perform Operation Stage)
Normal Time = 1 Cycle, so extra delay:
Total Extra Cycles = 120+50 = 170
Step 3: Total Clock Cycles
Q: 4 Consider a 4-segment pipeline with a clock cycle time 25 ns in each sub operation. Find out the speed-up ratio between pipelined and non-pipelined system to execute 50 instructions without stall conditions.
5.0
4.0
3.77
4.81
[ Option C ]
In pipelining, multiple instructions are executed in an overlapping manner. The speed-up is calculated as:
Speed-Up = Time Without Pipelining / Time With Pipelining
First, for Non-Pipelined Execution:
Now, for Pipelined Execution:
Finally, Speed-Up = 5000/1325 = 3.77
Q: 5 Which of the following is true about CISC architecture?
(I) Large code size.
(II) Reduced instruction set.
Both I and II
Neither I Nor II
Only I
Only II
[ Option C ]
CISC stands for Complex Instruction Set Computer. It is a processor architecture design that uses a large and complex set of instructions.
CISC Processors:
| RISC (Reduced Instruction Set Computer) | CISC (Complex Instruction Set Computer) |
|---|---|
| Uses a small and simple instruction set. | Uses a large and complex instruction set. |
| Simpler hardware design. | More complex hardware design. |
| Each instruction usually executes in one clock cycle. | Instructions may take multiple clock cycles. |
| Fixed-length instructions. | Variable-length instructions. |
| Fewer addressing modes. | Many addressing modes. |
| Lower power consumption. | Higher power consumption. |
| Follows Load/Store architecture. | Allows memory-to-memory operations. |
| Easier and more efficient pipelining. | Pipelining is more complex due to variable instruction size. |
| Higher dependence on compiler optimization. | Lower dependence on compiler optimization. |
| Examples: ARM, MIPS, SPARC | Examples: Intel x86, VAX |
Q: 6 In a pipelined processor the situation in which the data for the operands are not yet ready for use, is an example of
Data Blockage
Data Hazard
Deadlock
Structural Hazard
[ Option B ]
In a Pipelined Processor, multiple instructions are executed simultaneously in different stages. Sometimes, an instruction needs data that is not yet available because a previous instruction has not completed. This situation is called a Data Hazard.
Q: 7 Performance of a pipeline processor suffers if
The pipelines stages have different delays
Consecutive instructions are dependent on each other
Pipelines stages share hardware resources
All the above
[ Option D ]
A Pipeline Processor improves performance by executing multiple instructions in overlapping stages. However, its performance can degrade due to several types of hazards or inefficiencies.
All these situations introduce delays or stalls in the pipeline, which negatively affect performance.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.