Velocerऐप खोलें

Velocer › फ़्लैशकार्ड › 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. · lemma_latte द्वारा · 54 कार्ड्स

University of Wisconsin–Madison

इस डेक का अध्ययन करें एम्बेड करें

  1. What does Moore's Law state?The number of transistors per chip area doubles roughly every 18 months.
  2. 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.
  3. 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.
  4. 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.
  5. What is an OISC?A Turing-complete ISA with a single instruction.
  6. 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).
  7. 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.
  8. What trade-off does Amdahl's Law highlight?It weighs making existing things faster against making more things fast (parallelism).
  9. What is the Iron Law of processor performance?Runtime = (instructions/program) × (cycles/instruction) × (seconds/cycle), i.e., dynamic instruction count × CPI × clock period.
  10. What are the three factors in the Iron Law?Dynamic instruction count, cycles per instruction (CPI), and clock period (seconds per cycle).
  11. 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.
  12. In Amdahl's Law, what does the fraction f represent?The fraction of the program's execution that is sped up by factor S.
  13. 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.
  14. What does CPI stand for in the Iron Law?Cycles per instruction — the average number of clock cycles each instruction takes.
  15. 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).
  16. What are the five stages of a classic pipeline?Fetch, Decode, Execute, Memory, Writeback, separated by pipeline registers.
  17. 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.
  18. 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.
  19. 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.
  20. 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.
  21. 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.
  22. When do memory data hazards (RAW/WAR/WAW through memory) arise?Only if memory operations can reorder.
  23. What is a control hazard?The next instructions must be fetched before a branch resolves, so the pipeline may fetch the wrong path.
  24. 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.
  25. What does a fast-branch resolved in Decode require?Simple branch tests only, plus forwarding into the Decode stage.
  26. 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.
  27. 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.
  28. What does the BTB (Branch Target Buffer) do?It predicts the branch target address early, before the target is fully computed.
  29. 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.
  30. 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.
  31. What is the purpose of a collapsing buffer?It assembles non-contiguous instructions from I-cache blocks into a fetch stream.
  32. 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.
  33. What does instruction prefetching do?It fills the I-cache ahead of time; it is not speculative execution.
  34. What is a trace cache?It stores dynamic instruction sequences tagged with branch outcomes, enabling reuse at the fetch stage.
  35. What is a µop cache?It stores decoded traces so the processor can skip the decode stage.
  36. What is a loop buffer?A tiny µop cache that holds the current small loop for repeated fast fetching.
  37. 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.
  38. 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.
  39. 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).
  40. 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.
  41. 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.
  42. 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.
  43. What do loop-count predictors learn?They learn the trip counts of loops so the loop-exit branch can be predicted correctly.
  44. 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.
  45. What is the purpose of hierarchical prediction tables?They learn the best history length to use for each individual branch.
  46. 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.
  47. 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.
  48. 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.
  49. 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.
  50. In Tomasulo's algorithm, what does an empty tag in a reservation station mean?The operand value is ready (already available).
  51. 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.
  52. What is precise state?On a misprediction or exception, all older instructions complete and no younger instruction has changed architectural state.
  53. What does a reorder buffer (ROB) do?It splits writeback into out-of-order complete and in-order retire/commit, enabling precise state.
  54. 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 मुफ़्त है: स्पेस्ड रिपिटिशन और किसी भी दस्तावेज़ से अपने खुद के कार्ड।

PDF to flashcards · Lecture to flashcards · Practice exam · Syllabus study plan · Anki import

University of Wisconsin–Madison के और डेक