←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Diagrams

Diagrams

Visual representations for Unit 4

Hardwired Control Architecture

Hardwired Control Architecture
Instruction Register (Opcode) → Decoder
Clock + Counter → Timing Decoder
→ Combinational Logic Gates → Control Signals
Explanation
  • Instruction bits, timing and status feed fixed control logic.
  • Its outputs enable the hardware operations needed in that clock step.
Detailed Notes →Quick Revision →

Microprogrammed Control Flow

Microprogrammed Control Flow
Next Address Generator (Sequencer)
→ Control Address Register (CAR)
→ Control Memory (ROM)
→ Control Data Register (CDR) → Control Signals
Explanation
  • A microinstruction produces control signals from the control store.
  • Sequencing logic selects the address of the next microinstruction.
Detailed Notes →Quick Revision →

Data Path in General Register Organization

Data Path in General Register Organization
Registers (R₁-R₇) → MUX A & MUX B
→ Arithmetic Logic Unit (ALU)
→ Destination Decoder → Stored in Destination Register
Explanation
  • Two source values travel from the register file to the ALU.
  • The selected result returns to the destination register.
Detailed Notes →Quick Revision →

14-Bit Control Word Structure

14-Bit Control Word Structure
SELA (3 Bits)
Selects source register for Bus A
SELB (3 Bits)
Selects source register for Bus B
SELD (3 Bits)
Selects destination register to save result
OPR (5 Bits)
Selects ALU operation (ADD, SUB, AND, OR)
Explanation
  • The control word selects source registers, the ALU operation and the destination.
  • Its fields coordinate those choices during one register operation.
Detailed Notes →Quick Revision →

Stack Operations: PUSH vs. POP

Stack Operations: PUSH vs. POP
PUSH (Insert Item)
1. SP ← SP + 1
2. M[SP] ← DR
3. If SP = 0 → FULL ← 1
4. EMPTY ← 0
POP (Remove Item)
1. DR ← M[SP]
2. SP ← SP - 1
3. If SP = 0 → EMPTY ← 1
4. FULL ← 0
Explanation
  • PUSH places a new value at the top of the stack.
  • POP removes the current top, so the most recently pushed value comes out first.
Detailed Notes →Quick Revision →

Two ways to add a memory value

Two ways to add a memory value
Load-store instructions
Load the value, then add in registers
Memory operand
An arithmetic instruction may read a memory operand
Explanation
  • A load-store machine brings the memory value into a register before arithmetic.
  • An instruction set with memory operands may express that work in fewer instructions.
Detailed Notes →Quick Revision →

4-Stage Instruction Pipeline

4-Stage Instruction Pipeline
1. FI
Fetch Instruction
➔ 2. DA
Decode & Address
➔ 3. FO
Fetch Operand
➔ 4. EX
Execute & Store
Explanation
  • Different instructions occupy different pipeline stages at the same time.
  • Once filled, the pipeline can finish work frequently even though one instruction uses several stages.
Detailed Notes →Quick Revision →

The Three Classes of Pipeline Hazards

The Three Classes of Pipeline Hazards
1. Structural Hazards
Hardware conflict: two stages try to access the same physical memory or bus at the same time.
2. Data Hazards
An instruction needs an answer from a previous instruction that has not finished calculating yet.
3. Control Hazards
Branch or jump instructions change the program counter, making fetched instructions useless.
Explanation
  • A structural hazard is competition for hardware and a data hazard is a dependency.
  • A control hazard arises when the next instruction address is uncertain.
Detailed Notes →Quick Revision →

Four instructions across seven clock cycles

Four instructions across seven clock cycles
InstructionCycle 1Cycle 2Cycle 3Cycle 4Cycle 5Cycle 6Cycle 7
I₁FIDAFOEX———
I₂—FIDAFOEX——
I₃——FIDAFOEX—
I₄———FIDAFOEX
Explanation
  • Each row follows one instruction through fetch, decode, operand fetch and execution.
  • Reading down cycle four shows four different instructions using four different stages.
Detailed Notes →Quick Revision →