• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 1 out of 3 pages
Summary

Summary Computer Architecture: Datapath, Memory Hierarchy and Pipelining

Document preview thumbnail
Preview 1 out of 3 pages

Study notes for a second-year Computer Architecture module. Section 1 covers the instruction set as a contract, RISC against CISC trade-offs, addressing modes, the stack frame and the instruction count, CPI and clock calculation. Section 2 covers single-cycle and multicycle datapaths, hardwired against microprogrammed control, the five-stage pipeline, structural, data and control hazards, forwarding, stalls, branch prediction and Amdahl's law. Section 3 covers locality, cache organisation, associativity, replacement and write policy, the three classes of miss, AMAT, and virtual memory with page tables and the TLB. Section 4 covers instruction-level parallelism, scoreboarding, Tomasulo, register renaming, reorder buffers, SIMD and multicore issues including false sharing and coherence. Includes a memory hierarchy table, four practice questions with marking checkpoints, a glossary and a revision plan.

Content preview

Computer Architecture: Datapath, Memory Hierarchy and
Pipelining
From instruction set to cycles, caches and parallelism
Computer Science | Undergraduate (Level 5) | December 2026


WHAT IS INSIDE

1. Instruction sets and the programmer's model
2. Datapath, control and pipelining
3. Memory hierarchy and caches
4. Instruction-level and thread-level parallelism
Exam question patterns
Glossary of exam-ready definitions

1. Instruction sets and the programmer's model
An instruction set architecture is the contract between hardware and compiler: registers, addressing
modes, data types and the instruction formats. RISC designs favour fixed-length instructions, load-store
addressing and many registers so that pipelining stays simple; CISC designs allow memory operands and
richer instructions, trading decode complexity for code density. The exam distinction is not which is faster
but which makes which optimisation cheap.
Calling conventions, the stack frame and the role of the program counter and link register define how
procedures work, and they explain most assembly questions. Addressing modes - immediate, register, base
plus offset, PC-relative - decide whether code is position independent and how many instructions a loop
costs. Counting instructions and cycles for a short loop is the standard calculation, and the answer must
separate instruction count from cycles per instruction.
• RISC vs CISC - the trade is decode complexity against instruction count.
• CPI and clock - time = instruction count x CPI x clock period; name all three.
• Position independence - PC-relative addressing makes code relocatable.
• Stack discipline - saves and restores must balance or the return address is lost.

2. Datapath, control and pipelining
The single-cycle datapath executes one instruction per clock, so the clock period is set by the slowest
instruction - usually a load. Multicycle designs break execution into steps and reuse hardware, which
shortens the clock but adds registers and control states. The control unit is either hardwired or
microprogrammed, and the choice trades flexibility against speed.
A five-stage pipeline (fetch, decode, execute, memory, write back) overlaps instructions, so ideal throughput
is one instruction per cycle, but structural, data and control hazards stall it. Data hazards are handled by
forwarding, with a one-cycle load-use stall when forwarding cannot help; control hazards by branch
prediction, delay slots or flushing. Speedup is limited by the unpipelined fraction and by pipeline depth, and
a deeper pipeline raises both throughput and the penalty of a misprediction.
• Load-use hazard - forwarding cannot cover it; insert one stall or reorder.
• Branch penalty - misprediction cost grows with pipeline depth.
• Superscalar - issue width is limited by dependencies and by functional units.
• Amdahl's law - speedup is capped by the part that does not improve.


Computer Architecture: Datapath, Memory Hierarchy and Pipeli Page 1 of 3

Document information

Study
Unknown
Uploaded on
December 2, 2026
Number of pages
3
Written in
2026/2027
Type
Summary
£6.35

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
225
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions