Page 104 - Computer_Science_F5
P. 104
(a) Draw the timing diagram to
Exercise 2.3
detect hazards. How many
1. As processor technology advances, stalls are needed to avoid the
new challenges and opportunities hazard(s)?
arise. Research emerging trends (b) Now introduce forwarding
FOR ONLINE READING ONLY
in pipeline hazard mitigation. Are to resolve the hazard. Has Chapter Two: Performance and optimisation of computer processor
there techniques beyond stalling the forwarding helped you to
and forwarding? How do these completely avoid stalling the
advancements contribute to the pipeline?
ever-increasing performance (c) Based on the answer in 2(b) and
demands of modern computing? based on reputable materials
2. You are given the following from the library or the internet,
state if the following statement
instructions below is TRUE or FALSE; “You can
lw $s0, 20($t1) always avoid stalls in data
sub $t2, $s0, $t3 hazards by forwarding”.
Instruction Level Parallelism (ILP)
Concept of Instruction Level Parallelism (ILP)
Scenario 2.2: Laundry washing machine
Imagine working at a busy laundromat with high customer demand. Optimising
the washing process is crucial for efficiency and customer satisfaction. Traditional
washing machines operate step by step (fill, wash, rinse, spin), but Instruction
Level Parallelism (ILP) improves efficiency by executing independent tasks
concurrently. For example, filling the washer and adding detergent can happen
simultaneously, reducing cycle time. ILP also enhances modern machines by
processing sensor data (water level, temperature, spin speed) concurrently,
adjusting parameters in real-time for optimal washing. Breaking down rinse and
spin cycles into smaller, independent instructions further accelerates completion,
illustrating ILP’s potential for optimising laundry operations.
Questions:
1. Identify other independent tasks within the washing machine that could
benefit from ILP. Consider safety measures and potential limitations.
95
Student’s Book Form Five
Computer Science Form 5.indd 95 23/07/2024 12:33