Symbolics Ivory & Merlin-II Hardware Reference Manual (XL1200 & UX1200S)
This directory contains a standalone, standalone, bit-exact architectural reference for the Symbolics Ivory VLSI microprocessor (Revisions 1–4/4A) and its Merlin-II VMEbus platform in its two production configurations:
- Symbolics XL1200 / XL1201: Standalone 6U VMEbus Lisp workstation with on-board monochrome framebuffer (
1152×896at0x48000000), Signetics SCN26562/68562 DUSCC + Intel 8237A serial/keyboard/mouse DMA, WD33C93A SCSI, DP8466 ESDI, Intel 82586 Ethernet, Intel 82C54 PIT, and Mostek MK48T02 NVRAM/TOD clock. - Symbolics UX1200S: Embedded 6U VMEbus coprocessor board for Sun-3 (
68020/68030) and Sun-4 (SPARC) hosts, utilizing shared-memory Embedded Life Support (EMB) over the VMEbus dual Data/Tag slave windows.
Reference Provenance ("System 0" Reference):
Every constant, bitfield, opcode contract, hash equation, and register address in this manual and its companion C header (emu/include/ivory_hw.h) is derived exclusively from the primary Symbolics hardware specifications and Genera 8.3 system sources (local developer assets, not committed to this repository):
I_Machine/I-Machine_Architecture_Specification.pdf&I_Machine/Ivory_Processor_Technical_Summary.pdfgenera-original/sys.sct/i-sys/(sysdef.lisp,sysdf1.lisp,opdef.lisp,io-register-definitions.lisp,vme-defs.lisp,vme-bus.lisp,i-clocks.lisp,interrupts.lisp,wired-screen.lisp,merlin-scsi-hardware.lisp,configuration.lisp)genera-original/sys.sct/i-compiler/(i-instruction-set.lisp,i-sysdef-support.lisp,disassemble.lisp,i-back-end.lisp)genera-original/sys.sct/{l-sys,storage,gc,network,serial,embedding,ifep}/genera-original/sun/sun-ux-support/src/(life.h,embed.h,ivory.c,ivory_reset.c,cold.c,console.c,disk.c,network.c,signals.c,message.c,fepfs.c)docs/reference/extracted/xl_users_guide.txt
1. Document & Header File Index
| File | Title & Contents |
|---|---|
emu/include/ivory_hw.h | Canonical C11 Hardware Header: Defines union IvoryWord, union IvoryHalfwordInstr, all 64 DTP tags (#o00..#o77), CDR/header codes, all 256 opcodes (#o000..#o377), internal registers, union IvoryControlRegister, struct IvoryPhtEntry, ivory_pht_hash(), proven XL1200 Merlin-II C-Bus/B-Bus/I/O Board 0/VME PMAs & bitfields, and LP64-safe (int32_t/uint32_t) UX1200S EmbCommArea & queue/channel definitions. |
01-cpu-data-types-and-registers.md | Volume 1 — CPU Architecture, Tagged Data Types & Internal Registers: Ivory Revisions 1–4, 40-bit word layout, 5-byte PROM packing, VME Data/Tag split, all 64 DTP tags, structured object memory layouts (Symbol, Array/Leader, Bignum, Small Ratio, Character), all 12 hardware memory cycle types & tag action matrix, and all External Bus (#o000..#o652) & Scratchpad (#o1000..#o1041) internal registers. |
02-isa-and-execution-semantics.md | Volume 2 — Instruction Set Architecture (ISA), Stack Frames & Execution Semantics: DTP-EVEN-PC / DTP-ODD-PC sequencing, CDR-JUMP (#o03) single-instruction words, fullword constants & call starters (#o50..#o57), the 4 packed 18-bit instruction formats, stack addressing modes (FP, LP, SP, SP-pop, Immediate), complete 256-opcode reference table, two-phase calling (StartCall + FinishCall), lexical closures, and the hardware trap vector (#o37001000000). |
03-virtual-memory-paging-and-gc.md | Volume 3 — Virtual Memory, Page Hash Table (PHT), Map Cache & Garbage Collection: 32-bit VMA hierarchy (256-word page, 64KW quantum, 2MW ephemeral half-level, 128MW zone), Zone 0 (Ephemeral) vs. Zone 31 (VMA=PMA), two-word PHT entry bitfields (PHT0, PHT1), exact 23-bit XOR equations for %REGISTER-PHT-HASH-0..3, 17x+1 rehash generator, 1,024-entry Map Cache read/write state machines, 128-word Stack Cache, and hardware GC transport/write barriers. |
04-merlin-ii-core-and-vmebus.md | Volume 4 — Merlin-II Motherboard Core, Timers, Interrupts & VMEbus Architecture: Internal I-Bus, C-Bus, and B-Bus hierarchy; proven live-booted XL1200 physical memory map (0x00000000..0x8FF8000F); Wired Boot Comm Area (0x07FE0000, *BOOT-SPY-PC*); Intel 82C54 PIT (0x08000000); C-Bus Core Registers (0x0A000000..0x0A00000F, Cache Control 0x0A000004, ECO 0x0A000008, 32-bit %merlin-ii-interrupt 0x0A00000C); and VIC068/VMEbus master & UX1200S slave windows. |
05-xl1200-workstation-peripherals.md | Volume 5 — Symbolics XL1200 / XL1201 Workstation Peripherals & Native I/O: Monochrome Console VRAM (0x48000000, 1152×896, 64-word stride, LSB-leftmost), VIDEO_VPOS/VIDEO_CTRL/Am8158; Signetics SCN26562/68562 DUSCC + Intel 8237A DMAC + SLB keyboard/mouse wire protocol; WD33C93A SCSI (0x44015000, 0x44017800/7900, 0x4401A000..B800, 32 KiB ring & Phase 0x45 multi-chunk reconnect); DP8466 ESDI; Intel 82586 Ethernet (0x44016000 <7:5> & 0x40000000 SRAM); I/O Board 0 ID ROM; MK48T02 NVRAM/TOD (0x09000000); and IFEP promJ split-PROM cold boot. |
06-ux1200s-embedded-life-support.md | Volume 6 — Symbolics UX1200S Embedded Architecture & SunOS Life-Support Protocol: Dual 64 MB VME Data/Tag slave mapping (+0x00000000 / +0x04000000) and VME Control window (+0x05000000), complete 51-word EmbCommArea table at PMA 0x00000100 ('EMBD'), bidirectional host_to_guest_signals / guest_to_host_signals & doorbell interrupts (0x0A00000F), EmbQueue lockless ring buffers, and Cold Load, Disk, Network, Console, and Message channels. |
For the C11 emulator implementation of these peripherals and host backends, see docs/emulator/peripherals-and-backends.md.
2. Master Architectural Constants Cheat-Sheet
| Parameter | Value (Hex / Octal / Decimal) | Source Reference |
|---|---|---|
| Word Width | 40 bits (<39:38> CDR, <37:32> DTP, <31:0> Pointer/Data) | sysdef.lisp:120-137 |
CDR Codes (<39:38>) | 0 = CDR-NEXT, 1 = CDR-NIL, 2 = CDR-NORMAL, 3 = CDR-JUMP | ivory_hw.h, sysdef.lisp |
| Packed Instruction Width | 18 bits (<17:10> 8-bit opcode, <9:0> 10-bit specifier; Even <17:0>, Odd <35:18>) | sysdef.lisp:747-760 |
| Virtual Page Size | 256 words (\(2^8\) words = 1,280 bytes at 5 bytes/word) | sysdef.lisp:1630 |
| Quantum Size | 65,536 words (\(2^{16}\) words = 256 pages) | sysdef.lisp:1636 |
| Ephemeral Half-Level Size | 2,097,152 words (\(2^{21}\) words = 32 quanta in Zone 0) | sysdef.lisp:1642 |
| Virtual Zone Size | 134,217,728 words (\(2^{27}\) words = 128 MegaWords; 32 Zones total) | sysdef.lisp:1648 |
Unmapped VMA=PMA Window | Zone 31 (VMA 0xF8000000..0xFFFFFFFF, PMA = VMA & 0x07FFFFFF) | sysdef.lisp:1654 |
| Contiguous Main DRAM Limit | 8 MegaWords (PMA 0x00000000..0x007FFFFF, IVORY_MERLIN_MAX_CONTIG_RAM_WORDS) | ivory_hw.h, configuration.lisp |
UX1200S EmbCommArea Base | PMA 0x00000100 (Zone 31 VMA 0xF8000100, VME Data byte offset 0x00000400) | embed.h:84, life.h:61 |
| Hardware Trap Vector Base | PMA 0x00040000 (#o001000000, Zone 31 VMA 0xF8040000 / #o37001000000) | sysdef.lisp:1704 |
| FEP Communication Area | PMA 0x00041000 (#o001010000, Zone 31 VMA 0xF8041000) | ivory_hw.h, sysdef.lisp |
| System Communication Area | PMA 0x00041100 (#o001010400, Zone 31 VMA 0xF8041100) | ivory_hw.h, sysdef.lisp |
Wired NIL / T Symbols | PMA 0x00041200 (#o001011000) / PMA 0x00041208 (#o001011010) | ivory_hw.h, sysdef.lisp |
| Wired Boot Comm & Boot PROM | PMA 0x07FE0000..0x07FEFFFF (#o777400000..#o777577777, Zone 31 0xFFFE0000, 64 KW) | ivory_hw.h, sysdef.lisp |
| CPU Hardware Reset Vector | PMA 0x07FE0040 (#o777400100, DTP-EVEN-PC, CR.TRAP-MODE = 3) | ivory_hw.h, sysdef.lisp |
| Merlin-II 82C54 PIT | PMA 0x08000000..0x0800000F (#o01000000000, Counter 2 = 10 MHz, Counter 1→0 = 1 MHz) | i-clocks.lisp, merlin.c |
| Merlin-II MK48T02 NVRAM/TOD | PMA 0x09000000..0x090007FF (#o01100000000, TOD at +0x7F8..+0x7FF) | i-clocks.lisp, nvram_mk48t02.c |
| Merlin-II Core / Interrupts | PMA 0x0A000000..0x0A00000F (0x0A000004 Cache, 0x0A000008 ECO, 0x0A00000C IRQ) | io-register-definitions.lisp |
| I/O Board 0 DMA SRAM | PMA 0x40000000..0x4000FFFF (#o10000000000, 64 KW = 256 KiB; SCSI ring 0x40005000) | merlin-scsi-hardware.lisp |
| I/O Board 0 MMIO Window | PMA 0x44014000..0x4402D001 (Serial/DUSCC/8237A, SCSI/WD33C93A, ID ROM/82586, ESDI, Video) | ivory_hw.h, merlin.c |
| XL1200 Monochrome VRAM | PMA 0x48000000..0x4807FFFF (#o11000000000, 512 KW, 1152×896, 64-word stride, LSB-left) | wired-screen.lisp, console_hw.c |
3. Critical Hardware Invariants for From-Scratch Implementation
- Packed Instruction Tag Overlap (
#o60..#o77): Whenword.q.data_typeis in#o60..#o77(<37:36> == 11_2), bits<35:32>are the top 4 bits of the Odd instruction's opcode (<35:18>), not a separate data type. CDR-JUMP(#o03) Single-Instruction Words: When an instruction word hascdr_code == 3, executing its Even halfword (<17:0>) or fullword instruction advancesPCdirectly to(PC.vma + 1, DTP-EVEN-PC), skipping the Odd halfword.- Fullword Call Starters (
#o50..#o57) Do Not Branch Immediately:DTP-CALL-COMPILED-EVEN/ODD,DTP-CALL-INDIRECT, andDTP-CALL-GENERICpush the 2-word frame header (continuation,control), load%REGISTER-CONTINUATION, setCR.CALL-STARTED = 1, and advance sequentially to(PC.vma + 1, DTP-EVEN-PC). The actual control transfer happens atFinishCall(#o134..#o137). finish-call-n(#o134,#o135) Encodes1 + nargs: The low 8 bits of the 10-bit immediate operand equalN + 1(e.g.,1for 0 arguments,3for 2 arguments).- Lexical Closure Extra Argument: Calling a
DTP-LEXICAL-CLOSURE(#o32) unpacks[environment, function], pushesenvironmentonto the stack immediately after the 2-word frame header, setsCR.EXTRA-ARGUMENT = 1, and setsnew_FP = SP - N - CR.EXTRA-ARGUMENT - 1. - Stack Addressing Mode
10_2(SP-popvs.SP-relative): In Format 1 (operand-from-stack), the 10-bit specifier always designates the last argument of a multi-operand instruction, but ifmode == 2andoffset == 0(SP-pop), that operand is popped fromSPbefore any implicit stack arguments are popped. - CDR Code Preservation on
data-writeandbind-write: Memory cycle typesdata-write(1, used byrplaca,rplacd,%p-store-contents,aset-1) andbind-write(5/3) overwrite only bits<37:0>(DTP+POINTER), preserving the target memory word's existing 2-bitCDRcode (<39:38>). Raw writes (%memory-write#o234,%block-k-write#o030..#o033) overwrite all 40 bits. - Fake Access Bits in
VMA=PMA(Zone 31) andDTP-PHYSICAL-ADDRESS: Unmapped accesses synthesizewrite_protect = 0,transport_trap = 0,modified = 1, andephemeral_reference = 0x1Fso they never trigger PHT-update traps or GC transport traps. - 64-Bit Host (
LP64) Struct Alignment forEmbCommArea: Always useint32_t/uint32_t(never 64-bitlong) forEmbWord,EmbPtr, andEmbSignalMaskso every field inEmbCommAreaandEmbChannelmatches the 1-word (4-byte VME Data) hardware stride.
4. Component Datasheets Archive (datasheets/)
Public datasheets and vendor reference manuals for the off-the-shelf ICs on the XL1200, Merlin-II motherboard, and planned VMEbus / Univision UDC-3400 color boards are pinned by SHA-256 in scripts/assets.tsv and fetched into the git-ignored local datasheets/ directory with:
scripts/fetch-assets.sh --datasheets
scripts/fetch-assets.sh --datasheets --check
| Chip | Role on XL1200 / Merlin-II / VME | Archived PDF(s) (datasheets/) | Source |
|---|---|---|---|
| Intel 82C54 | Merlin-II Programmable Interval Timer (0x08000000) | intel_82C54_pit.pdf | MIT PDOS |
| Intel 8237A | Merlin-II Serial DMA Controller (0x44014xxx) | intel_8237A_dmac.pdf | MIT PDOS |
| Mostek MK48T02 / ST M48T02 | Merlin-II 2 KiB Timekeeper NVRAM & TOD Clock (0x09000000) | st_M48T02_MK48T02_timekeeper.pdf | Internet Archive |
| Western Digital WD33C93A | Merlin-II SCSI-2 Bus Interface Controller (0x44015000) | wd_WD33C93A_scsi_datasheet.pdf (mirror), wd_WD33C93A_datasheet_and_appnotes_1990.pdf (mirror) | Bitsavers |
| Intel 82586 | Merlin-II IEEE 802.3 Ethernet LAN Coprocessor (0x44016000) | intel_82586_lan_coprocessor.pdf (mirror), intel_82586_reference_manual_1983.pdf (mirror) | Bitsavers |
| Signetics / Philips SCN68562 (SCN26562) | Merlin-II Dual Universal Serial Comm Controller (DUSCC) | signetics_1991_IC019_data_comm_SCN68562.pdf (mirror) (1991 IC019 Databook) | Bitsavers |
| National Semiconductor DP8466 / DP8466A | Merlin-II ESDI Disk Data Controller | national_1988_mass_storage_DP8466.pdf (mirror), national_DP8466A_AN0500_esdi_1987.pdf (mirror) | Bitsavers |
| VTC / Cypress VIC068A | Merlin-II VMEbus Interface Controller | cypress_VIC068A_VAC068A_users_guide.pdf (mirror) | Bitsavers |
| Intel 82786 | Univision UDC-3400 CHMOS Graphics Coprocessor (VME) | intel_82786_preliminary_datasheet_1986.pdf (mirror), intel_82786_users_manual.pdf (mirror) | Bitsavers |
| Brooktree Bt458 | Univision UDC-3400 Triple 8-bit Color RAMDAC (VME) | brooktree_1989_product_databook_Bt458.pdf (mirror) (1989 Product Databook) | Bitsavers |
| Weitek WTL3164 / WTL3364 | XL1200 64-bit IEEE-754 FPA (standalone datasheet not publicly archived) | Closest Weitek FPDP family sheets: weitek_WTL3132_3332_fpdp_1988.pdf (mirror), weitek_WTL1164_1165_64bit_ieee_1986.pdf (mirror), weitek_WTL3167_coprocessor_1988.pdf (mirror) | Bitsavers |
| AMD Am8158 | XL1200 Monochrome Video Timing Controller | Not archived on Bitsavers or Internet Archive; register semantics documented in Volume 5. | — |