Why does a branch instruction reduce the benefit of pipelining?
- The next instructions were fetched assuming no branch.
- If the branch is taken, they are wrong.
- The pipeline is flushed and refilled.
Answer The pipeline must be flushed and refilled
A-level Computer Science revision · Processors, software and development
CPU performance depends on clock speed (cycles per second), number of cores and cache size. Pipelining overlaps the fetch, decode and execute stages of different instructions, so once full, an ideal pipeline finishes one instruction per cycle. Branches can flush the pipeline. Von Neumann architecture shares memory for data and instructions; Harvard keeps them separate.
Watch out Doubling cores does not double speed if the software cannot run in parallel.
Why does a branch instruction reduce the benefit of pipelining?
Answer The pipeline must be flushed and refilled
Which architecture stores data and instructions in separate memories?
Why does a larger cache improve performance?
A non-pipelined processor takes 3 cycles per instruction. How many cycles does it need for 10 instructions?
A-level Computer Science Pro, OCR H446
£119 once
Price rises to £199 on 1 January. Save £80 by joining before then.
At least 12 months of access
No VAT is charged.