Home /Modules/cpu/ARCHITECTURE.md

ARCHITECTURE.md

lib/cpu/wdc-65c816/ARCHITECTURE.md · 48 line(s) · markdown

WDC 65C816 Architecture

Topology

SL65C816CPU

-> SLClock -> SLRegisterFile -> SLALU -> SLInstructionDecoder -> SLIOBus -> SLIOTiming -> SLInterruptController

Register section

The architectural register section is a accumulator / indexed register machine: A (8/16), X/Y (8/16), 16-bit stack pointer, direct-page, 24-bit program address, status.

Internal latches and datapath elements are modeled only where their observable timing or behavior is useful.

Control section

The control side is represented as:

Datapath

registers -> internal bus/latches -> ALU -> register/memory destination

Address formation uses the architectural 24-bit address path.

Bus

The external interface exposes 24 address lines, a 16-bit data path, read/write control, clock/phase signals, and reset/interrupt controls. Each observable memory transaction is modeled as a bus event (see BUS.md).

Design principle

The SLeeLa representation is compositional: a WDC 65C816 variant replaces only the couplers, I/O, timing, cache or opcode components that differ, rather than duplicating the whole CPU hierarchy.

Sources