Instruction Set Architecture

ISA is the programmer-visible contract defining instructions, registers, data types, and addressing.

Key formulas & points

Skim these first — then read the full notes below.

  • RISC: fixed length, load/store; CISC: rich instructions
  • Addressing modes: immediate, direct, indexed, PC-relative
  • Endianness: big vs little byte order in memory

Topic details

Introduction

Hamacher and Patterson-Hennessy treat ISA as the boundary between software and hardware implementation. B.Tech exams test instruction formats, addressing, and performance interpretation.

Key relations & formulas

Formulas (Indian textbook notation)

  • CPI=Σ(ICi×CPIi)totalinstructionsCPI = Σ \frac{(IC_{i} \times CPI_{i})}{total} instructions

Formulas (Indian textbook notation)

  • CPUtime=IC×CPI×clockperiodCPU time = IC \times CPI \times clock_{period}
MIPS=IC/MIPS = IC /
(execution_time × 10^6)

Notation and sign conventions

Relation 1 —
CPI=ΣCPI = Σ

Formulas (Indian textbook notation)

  • CPI=Σ(ICi×CPIi)totalinstructionsCPI = Σ \frac{(IC_{i} \times CPI_{i})}{total} instructions
Write this relation with symbols exactly as in Computer System Architecture — Morris Mano before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 2 —
CPUtime=IC×CPI×clockperiodCPU time = IC \times CPI \times clock_{period}

Formulas (Indian textbook notation)

  • CPUtime=IC×CPI×clockperiodCPU time = IC \times CPI \times clock_{period}
Write this relation with symbols exactly as in Computer System Architecture — Morris Mano before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 3 —
MIPS=IC/MIPS = IC /
MIPS=IC/MIPS = IC /
(execution_time × 10^6)
Write this relation with symbols exactly as in Computer System Architecture — Morris Mano before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.

Concept in depth

The ISA decides how compilers generate machine code and how architecture can evolve while preserving compatibility. Metrics like CPI and MIPS must be interpreted with instruction mix and clock period together, not independently. Complex instructions may reduce instruction count but increase CPI. Load/store designs simplify pipeline and hazard control.

Assumptions and validity limits

State assumptions explicitly before using any relation for instruction set architecture — steady state, uniform properties, linear elastic material, ideal gas, incompressible flow, etc., as applicable.
Wrong assumptions invalidate the entire solution even when the formula is correct. In Computer Architecture viva and GATE descriptive questions, listing valid assumptions often earns separate marks.

Step-by-step problem approach

1. Read the question and list given data with SI units (common in Computer Architecture papers).
2. Draw a neat labelled diagram where applicable — examiners in Indian universities award diagram marks even when arithmetic slips.
3. Identify which relation from this topic applies to instruction set architecture.
4. Use equation 1:
CPI=ΣCPI = Σ
.
5. Use equation 2:
CPUtime=IC×CPI×clockperiodCPU time = IC \times CPI \times clock_{period}
.
6. Substitute values, compute, and verify units and sign (direction).
7. State conclusion in one line — e.g. safe/unsafe, stable/unstable, feasible/infeasible.

Applications & exam relevance

Instruction Set Architecture appears in processor and system design. In Indian computer hardware curricula this topic is tested because it connects theory to CPU, memory hierarchy, and I/O.
GATE and semester exams often combine instruction set architecture with earlier units — revise prerequisites before attempting mixed problems.
Industry interview panels sometimes ask: "Where did you use instruction set architecture?" — answer with a lab, mini-project, or plant visit example if possible.

Common mistakes in exams

A frequent mistake is comparing processors using only MIPS without workload context. Students also ignore weighted CPI calculation and use arithmetic average directly.

Quick revision checklist

Before attempting instruction set architecture problems, confirm you can:
1. RISC: fixed length, load/store; CISC: rich instructions
2. Addressing modes: immediate, direct, indexed, PC-relative
3. Endianness: big vs little byte order in memory
Revise the solved examples in Computer System Architecture — Morris Mano and one previous-year GATE or university paper for this unit.

Worked examples

Try the problem first — open the solution when you are ready to check.

Weighted CPI calculation

Problem

Instruction mix: ALU 50% (CPI 1), Load 30% (CPI 2), Branch 20% (CPI 3). Find average CPI.

Solution

CPI = 0.5(1) + 0.3(2) + 0.2(3) = 0.5 + 0.6 + 0.6 = 1.7 cycles/instruction.

Conceptual check — Instruction Set Architecture

Problem

In a Computer Architecture semester or GATE paper you are asked: "State the main assumption, the governing relation, and one practical consequence of instruction set architecture." What should a complete answer include?

Exams & GATE

Compute effective CPI for mixed instruction streams; this is a recurring GATE pattern.

📖 Standard books (India)

  • Computer System ArchitectureMorris Mano

    Read: Syllabus unit

    CPU, memory hierarchy, and I/O