Home /Modules/operating-system/SPECIFICATION.md

SPECIFICATION.md

lib/operating-system/memory-ddr/SPECIFICATION.md · 52 line(s) · markdown

DDR SDRAM — Specification (memory-ddr)

Double Data Rate Synchronous DRAM transfers data on both the rising and falling edges of the clock. The family is standardized by JEDEC and advances in discrete generations; lib/operating-system/memory-ddr models that finite set by name.

Generations

GenerationRepresentative module standardData rate (MT/s)Typical VDDNotes
DDRPC-3200200–4002.5 VOriginal DDR; 184-pin DIMM
DDR2PC2-6400400–10661.8 V240-pin DIMM; 4n prefetch
DDR3PC3-12800800–21331.5 V240-pin DIMM; 8n prefetch; DDR3L at 1.35 V
DDR4PC4-256001600–32001.2 V288-pin DIMM; bank groups
DDR5PC5-448003200–88001.1 V288-pin DIMM; on-DIMM PMIC; two 32-bit subchannels

Data rates above are the broad JEDEC ranges per generation; retail XMP/EXPO kits often run above the base JEDEC bins. The values the SLeeLa classes carry are representative defaults a machine description can override with setDataRate.

Module form factors

Bus width and ECC

A standard channel is 64 bits of data. ECC modules add 8 check bits for a 72-bit bus and detect/correct single-bit errors. SLDDRModule.sized(mb, ecc) selects 64- vs 72-bit accordingly.

Bandwidth

Peak transfer bandwidth ≈ data rate (MT/s) × channel width (bytes). For a single 64-bit DDR5-5600 channel: 5600 × 8 ≈ 44,800 MB/s (hence PC5-44800). SLDDRModule.peakBandwidthMBps() computes this.

Manufacturers

DRAM die are produced by a small set of makers — Samsung, SK Hynix, and Micron (whose consumer brand is Crucial) — with module assembly also by Kingston, Corsair, G.Skill, and Mushkin. SLDDRCatalog exposes each by name.

Mapping into the Sleela VM

A module's capacity backs the VM's main memory. SLDDRModule.wordsForWidth(bits) converts the module's byte capacity into the VM memory-word count that SLMachineModel passes to SLRAM.configure(...), so a named DDR part sizes the emulated machine's RAM.