1/139
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
What does a 2-input multiplexer do?
It selects one of two inputs based on a control signal: if s=0, output is x1
What is the main difference between combinational and sequential logic?
Combinational logic has no memory and output depends only on current inputs, while sequential logic includes memory and output depends on input history.
What is the function of a tri-state buffer when e=0?
The output is electrically disconnected from the input.
What basic element stores data in registers?
A D flip-flop stores a single bit of data and is the basic building block of a register.
What happens in a positive edge-triggered D flip-flop on a rising clock edge?
The value at the D input is stored and appears at the Q output after a delay.
How many D flip-flops are needed for an 8-bit register?
Eight D flip-flops are needed, one for each bit.
Why are tri-state buffers used with registers?
They allow multiple registers to share a data bus without conflict, as only one can enable output at a time.
What does the program counter (PC) do in instruction execution?
It points to the next instruction and is updated after each instruction is fetched.
What are the three types of RISC-V instructions discussed?
Arithmetic/logical (add, sub, and, or), memory reference (lw, sw), and control transfer (beq).
What is the purpose of multiplexers in a CPU datapath?
To select between multiple data sources for different instruction types.
What are the five stages of the RISC-V pipeline?
IF (Instruction Fetch), ID (Instruction Decode), EX (Execute), MEM (Memory Access), WB (Write Back).
What are structural, data, and control hazards in pipelining?
Structural: resource conflict, Data: dependency on previous instruction data, Control: uncertainty in control flow like branches.
What does forwarding (bypassing) in pipelining achieve?
It reduces stalls by using computed values directly instead of waiting for register write-back.
When can a load-use hazard not be avoided with forwarding?
When the required data from a load instruction is not yet available for the next instruction.
What is a pipeline "bubble"?
A cycle in which no useful work is done, usually due to a stall.
What is branch prediction and why is it important?
It predicts the outcome of branches to avoid pipeline stalls
What is dynamic branch prediction?
Hardware records actual branch history and predicts future behavior based on that history.
What is the purpose of the ALU control unit?
It determines the function the ALU performs based on instruction type and opcode.
What causes a control hazard?
A change in instruction flow, such as a branch, whose outcome is not yet known.
What is the function of the Main Control Unit in a CPU?
It generates control signals based on instruction opcodes to direct datapath behavior.
What is the critical path in a CPU?
The longest path that determines the minimum possible clock period, often through load instructions.
What is instruction-level parallelism (ILP)?
The ability to execute multiple instructions simultaneously to improve performance.
What is static multiple issue?
The compiler determines instruction groups to be issued together, minimizing hazards.
What is dynamic multiple issue (superscalar)?
The CPU dynamically selects and issues multiple instructions per cycle, resolving hazards at runtime.
What does register renaming help with?
It avoids data hazards by ensuring that different instructions using the same register name do not conflict.