Velocer › Thẻ ghi nhớ › University of Wisconsin–Madison › ECE 752: Advanced Computer Architecture I · UW-Madison
ECE 752: Advanced Computer Architecture I · UW-Madison
Putting my ECE 752 flashcards up here. quick review before exams. · bởi lemma_latte · 54 thẻ
- What does Moore's Law state?The number of transistors per chip area doubles roughly every 18 months.
- What is an Instruction Set Architecture (ISA)?The contract or interface between software and hardware. It is separate from the microarchitecture, which is the actual implementation.
- What is the difference between an ISA and a microarchitecture?The ISA is the interface/contract between software and hardware, while the microarchitecture is the implementation of that contract.
- Why did CISC (like x86) persist despite RISC advantages?For business and backward-compatibility reasons; modern CISC chips translate instructions into RISC-like micro-ops in hardware.
- What is an OISC?A Turing-complete ISA with a single instruction.
- What does Amdahl's Law state?The overall speedup from speeding up a fraction f of a program by a factor S is 1 / ((1 - f) + f/S).
- What was Amdahl's Law originally an argument against?It was originally an argument against parallel processing, showing that the serial portion limits achievable speedup.
- What trade-off does Amdahl's Law highlight?It weighs making existing things faster against making more things fast (parallelism).
- What is the Iron Law of processor performance?Runtime = (instructions/program) × (cycles/instruction) × (seconds/cycle), i.e., dynamic instruction count × CPI × clock period.
- What are the three factors in the Iron Law?Dynamic instruction count, cycles per instruction (CPI), and clock period (seconds per cycle).
- Why is the Iron Law useful for evaluating optimizations?Because a technique can improve one factor while hurting another, so you must consider the product of all three.
- In Amdahl's Law, what does the fraction f represent?The fraction of the program's execution that is sped up by factor S.
- If a fraction f of a program is sped up infinitely (S → ∞), what is the maximum speedup?The maximum speedup is 1/(1 - f), limited by the unaccelerated portion.
- What does CPI stand for in the Iron Law?Cycles per instruction — the average number of clock cycles each instruction takes.
- How do you express runtime in terms of instruction count, CPI, and clock rate?Runtime = instruction count × CPI / clock rate (since clock period = 1/clock rate).
- What are the five stages of a classic pipeline?Fetch, Decode, Execute, Memory, Writeback, separated by pipeline registers.
- What is the difference between a dependence and a hazard?A dependence is a property of the program; a hazard is a dependence the pipeline could violate when instructions are in flight together.
- What is a structural hazard?When one resource is needed twice in the same cycle, such as a unified L1 cache serving both instructions and data.
- What are common fixes for RAW dependences?Stall; register-file bypass (write in first half, read in second half); forwarding from X/M and M/W to X.
- Why does a load-use hazard still cost a cycle even with M-to-X forwarding?The loaded value is only ready after the Memory stage, so a dependent instruction in the next slot must stall one cycle.
- What is static scheduling in the context of load-use hazards?The compiler moves independent instructions between the load and its use; it requires a large scheduling scope and enough registers.
- When do memory data hazards (RAW/WAR/WAW through memory) arise?Only if memory operations can reorder.
- What is a control hazard?The next instructions must be fetched before a branch resolves, so the pipeline may fetch the wrong path.
- What are options for handling control hazards?Stall, predict not-taken, resolve early in Decode (fast branch with simple tests and forwarding into D), or use branch delay slots.
- What does a fast-branch resolved in Decode require?Simple branch tests only, plus forwarding into the Decode stage.
- Why does wide memory access require extra hardware in a superscalar pipeline?Because handling N loads/stores per cycle needs additional memory ports or banked caches to supply the bandwidth.
- In a control flow graph, what is a basic block?A node with no branches in except at the top and no branches out except at the bottom.
- What does the BTB (Branch Target Buffer) do?It predicts the branch target address early, before the target is fully computed.
- Which branch targets can be computed rather than predicted, and which must be predicted?PC-relative targets can be computed; indirect targets must be predicted.
- How does the return address stack work?It pushes the return address on a call and pops it on a return to predict return targets.
- What is the purpose of a collapsing buffer?It assembles non-contiguous instructions from I-cache blocks into a fetch stream.
- What is next-line prediction and where is it stored?It predicts the next set/way for back-to-back fetches and is stored in the I-cache.
- What does instruction prefetching do?It fills the I-cache ahead of time; it is not speculative execution.
- What is a trace cache?It stores dynamic instruction sequences tagged with branch outcomes, enabling reuse at the fetch stage.
- What is a µop cache?It stores decoded traces so the processor can skip the decode stage.
- What is a loop buffer?A tiny µop cache that holds the current small loop for repeated fast fetching.
- What is the basic strategy of branch direction prediction in a pipelined processor?Predict the branch direction, fetch down the guessed path, verify when the branch executes, and roll back (flush) if the prediction was wrong.
- How does a 1-bit branch history table predict branches?It records the last outcome of each branch and predicts the same direction; it flips its prediction on every misprediction.
- What are the four states of a 2-bit saturating counter predictor?N (strongly not taken), n (weakly not taken), t (weakly taken), and T (strongly taken).
- Why does a 2-bit saturating counter outperform a 1-bit predictor?It must mispredict twice before changing its predicted direction, so a single anomalous outcome doesn't flip the prediction.
- What is correlated (two-level) branch prediction?A branch history register (global or local) indexes pattern tables, letting the predictor learn repeating patterns and predict them perfectly once trained.
- What is path history in branch prediction?A hash of recent branch PCs used as history, where multidimensional history captures correlations such as nested loops.
- What do loop-count predictors learn?They learn the trip counts of loops so the loop-exit branch can be predicted correctly.
- How does a tournament (hybrid) branch predictor work?A selector chooses, per branch, between a simple predictor and a more complex predictor based on which has been more accurate.
- What is the purpose of hierarchical prediction tables?They learn the best history length to use for each individual branch.
- What is the difference between in-order dispatch and out-of-order issue?Dispatch places instructions into a buffer in program order; issue releases them out of order once their operands are ready.
- What is a scoreboard in dynamic scheduling?A mechanism that schedules instructions dynamically without register renaming, so WAR and WAW hazards still stall writeback and limit gains.
- How does register renaming eliminate WAR and WAW hazards?It maps architectural registers onto more physical storage, so different instructions writing the same architectural register use different physical registers; RAW dependences remain.
- What does Tomasulo's algorithm combine?A scoreboard with register renaming: reservation stations hold operand tags or values, a map table records each register's latest producer tag, and the common data bus broadcasts tag-value pairs.
- In Tomasulo's algorithm, what does an empty tag in a reservation station mean?The operand value is ready (already available).
- What are wakeup and select in an out-of-order machine?Each cycle the CDB broadcast wakes waiting instructions, and a select circuit chooses up to W ready instructions for W functional units.
- What is precise state?On a misprediction or exception, all older instructions complete and no younger instruction has changed architectural state.
- What does a reorder buffer (ROB) do?It splits writeback into out-of-order complete and in-order retire/commit, enabling precise state.
- How does SMT share an out-of-order core among threads?Several threads share the core; the PC and map table are replicated per thread (the ROB optionally).
Velocer miễn phí: ôn tập ngắt quãng và thẻ của riêng bạn từ bất kỳ tài liệu nào.
PDF to flashcards · Lecture to flashcards · Practice exam · Syllabus study plan · Anki import
Thêm bộ thẻ của University of Wisconsin–Madison
- comp sci 240 midterm 1
- comp sci 240 midterm 2
- COMP SCI 240 Midterm 3
- COMP SCI 240 Final
- comp sci 300 full course review
- Math 234 - every chapter (multivariable calc)
- PSYCH 202 Exam 1 Review
- PSYCH 202 Exam 2 Review
- PSYCH 202 Exam 3 Review
- STAT 441: Advanced Sports Analytics · UW-Madison
- CS 639: Introduction to Reinforcement Learning · UW-Madison
- BMI 768: Medical Image Analysis · UW-Madison