Docsity

Pipelining in Computer Architecture: Q&A, Exams of Computer Science

Toggle sidebar
bg1
Pipelining in Computer Architecture: Q&A, Exams of Advanced Computer
Architecture
Describe the features of Pipelining - ANSWER- Each task can be broken down
into a series of smaller tasks
- When these sub-tasks do not compete for resources, they can happen at
the same time
- Pipelining is a way of executing the smaller tasks in parallel
- Simultaneous/parallel tasks use different resources
What is execution time? - ANSWER- The time it takes to do a single task from
start to finish
- Also known as latency
What is throughput? - ANSWERThe total amount of work we can get done in
any given time
How does pipelining affect the performance? - ANSWER- Pipelining doesn't
reduce the latency of a single task BUT it can help increase throughput
What is pipelining in computers? - ANSWER- Execution of an instruction can
be broken down into a number of subtasks performed in a fixed sequence
- These smaller subtasks can often be executed in parallel
pf3
pf4
pf5

Partial preview of the text

Download Pipelining in Computer Architecture: Q&A and more Exams Computer Science in PDF only on Docsity!

Pipelining in Computer Architecture: Q&A, Exams of Advanced Computer Architecture Describe the features of Pipelining - ANSWER- Each task can be broken down into a series of smaller tasks

  • When these sub-tasks do not compete for resources, they can happen at the same time
  • Pipelining is a way of executing the smaller tasks in parallel
  • Simultaneous/parallel tasks use different resources What is execution time? - ANSWER- The time it takes to do a single task from start to finish
  • Also known as latency What is throughput? - ANSWERThe total amount of work we can get done in any given time How does pipelining affect the performance? - ANSWER- Pipelining doesn't reduce the latency of a single task BUT it can help increase throughput What is pipelining in computers? - ANSWER- Execution of an instruction can be broken down into a number of subtasks performed in a fixed sequence
  • These smaller subtasks can often be executed in parallel
  • This is called instruction pipelining also known as instruction level parallelism What are pipelining hazards? - ANSWER- Pipelining hazards are situations that prevent starting the next instruction in the next cycle
  • They can cause pipeline conflicts and stalls What are the three types of pipeline hazards? - ANSWER- Control hazards
  • Data hazards
  • Structural Hazards What are Control Hazards? - ANSWERLoading instructions into a pipeline before the result of a decision is known e.g., loading instructions after a branch What are Data Hazards? - ANSWERInstructions depend upon the results of a previous instruction still in the pipeline, e.g., loading instructions after a branch What are Structural (or Resource) Hazards? - ANSWERHardware cannot support some combinations of instructions in the same clock cycle What are MIPS? - ANSWER- RISC instruction set architecture
  • Originally, MIPS was designed for general purpose computing
  • As of 2017, MIPS processors are used in embedded systems such as residential gatewars and routers

What is a load-use? (Resolving Data hazard solution 2) - ANSWER- If the value is not coputed when needed and you can't forward backward in time

  • We use both bubbles and forwarding
  • Instructions which cannot be executed repeat their pipeline stage until they can advance (interlock) What is compiler optimisation? - ANSWERRearrange instructions to avoid data hazards where possible How do we prevent control hazards using stall on branch? - ANSWER- Stall on branch which means wait until branch outcome is determined before fetching the next instruction How do we prevent control hazards using branch predictions? - ANSWER- We can use branch predictions to assume an outcome for decisions and load pipeline accordingly
  • However, if prediction is wrong, then the pipeline will stall and new instructions will have to be loaded How do we prevent control hazards using delayed decisions? - ANSWERWe can use delayed decisions to rearrange instructions so that an another instruction executes while we stall on branch to determine what to fetch How do we prevent structural hazards? - ANSWERSeperate pathways for data and instruction memory (Harvard architecture)

What is super (deep) pipelining? - ANSWER- Super pipelining (also known as deep pipelining): Increase number of stages in pipeline execution of statements

  • Many stages mean more risk to hazards so there is a trade-off
  • Deep pipelines usually require additional logic What is ILP? - ANSWERInstruction level parallelism is a measure of how many operations can be performed simulataneously What is superscalar pipelining? - ANSWER- replicate pipeline hardware so the processor can execute multiple instructions in different pipelines simultaneously
  • puts more strain on cache but can utilise ILP further What are the issues with superscalar pipelining? - ANSWER- Execution units need to be kept full
  • If instructions depend on each other this can affect ILP
  • Requires more hardware such as more execution units and more transistors meaning more power and more delays
  • Always a trade-off In-order execution - ANSWER1. fetch instruction
  1. send instruction to correct unit if input operand are availble (stall would occur here)
  2. send in instruction to correct functional unit for execution
  3. have the functional unit write the result back to the register file.

What is Multiple instruction, Multiple data streams? (MIMD) - ANSWER- Multiple autonomous processors simultaneously executing different instructions different data

  • Distributed systems are generally recognised to be MIMD architectures; either exploiting a single shared memory space