Chip Design Academy
Module 03
Architecture
Intermediate
60 minutes

ISA, Microarchitecture and Datapath Design

Move from architectural behavior to pipelines, execution units, control, hazards, caches and measurable performance.

WHY IT MATTERS

Overview

An instruction-set architecture defines software-visible behavior. Microarchitecture defines how a particular implementation realizes that behavior using pipelines, queues, execution units, prediction, caches and interconnect.

Correctness requires precise treatment of ordering, exceptions, privilege, interrupts, reset and coherency. Performance requires a model that accounts for instruction mix, dependencies, cache behavior, contention and recovery penalties.

Learning objectives

Separate ISA from implementation

Design pipelines and hazard handling

Model CPI and memory effects

Specify exceptions, privilege and observability

TECHNICAL FOUNDATION

Core concepts

ISA

Software-visible instructions, registers, memory model, exceptions and privilege behavior.

Pipeline

Overlapped execution stages separated by state elements.

Hazard

Data, control or structural condition that prevents the next operation from proceeding safely.

CPI

Cycles per instruction; decomposed into ideal issue cost plus stalls and recovery penalties.

Coherency

Rules ensuring observers see compatible values when data is cached in multiple places.

Precise exception

Architectural state appears as if all earlier operations completed and no later operation did.

INPUTS → DECISIONS → EVIDENCE

Engineering workflow

1
Select architectural contract

Choose ISA, privilege, memory model and extensions.

INPUTS

Software needs

Workloads

OUTPUTS

ISA profile

Compliance targets

2
Partition datapath and control

Define stages, resources, queues and state.

INPUTS

ISA

Frequency target

OUTPUTS

Block diagram

Pipeline table

3
Model performance

Estimate throughput and sensitivity to stalls, misses and contention.

INPUTS

Traces

Latency assumptions

OUTPUTS

CPI model

Bottleneck analysis

4
Specify corner behavior

Document reset, exceptions, flushes, privilege and debug.

INPUTS

Architecture

OUTPUTS

State-transition rules

Verification plan

MEASURE WHAT MATTERS

Metrics and interpretation

IPC/CPI

Retired instructions per cycle or its inverse.

Mispredict penalty

Lost cycles after incorrect control speculation.

Cache MPKI

Cache misses per thousand instructions.

Occupancy

Average utilization of queues, buffers or execution resources.

REVIEW READINESS

Signoff checklist and pitfalls

Evidence checklist
  • ISA compliance target is versioned
  • All hazards have detection and recovery behavior
  • Exceptions and interrupts are precise
  • Performance model matches representative traces
  • Debug and performance counters are specified
Common pitfalls
  • Ignoring backpressure and queue fullness
  • Validating only straight-line instruction streams
  • Conflating simulator assumptions with RTL behavior
  • Leaving privilege and reset late
LEARN BY DOING

Practice and platform tools

PRACTICAL EXERCISE
Design a five-stage RV32I pipeline table showing forwarding, stalls, branch recovery, exceptions and the checks needed for each transition.
Architectures

Explore processor and accelerator structures.

Open tool
Synthesis Graph

Inspect logic structure after elaboration.

Open tool
Timing

Relate pipeline boundaries to implementation timing.

Open tool
AUTHORITATIVE FOLLOW-UP

References


Continue learning
Architecture

Product Requirements and System Architecture

Open module
Front End

RTL Design, Coding and Integration

Open module
Front End

Functional Verification and Formal Methods

Open module