XL1200-EMU Symbolics XL1200 Emulator

Volume 4 — Merlin-II Motherboard Core, Timers, Interrupts & VMEbus Architecture

This volume specifies the Merlin-II system bus and motherboard core that hosts the Symbolics Ivory Rev 4 / 4A microprocessor in both the Symbolics XL1200 / XL1201 standalone workstation and the Symbolics UX1200S Sun VMEbus coprocessor. Every physical memory address (PMA), bitfield, and interrupt mask in this document is derived from canonical Genera 8.3 hardware definitions (genera-original/sys.sct/i-sys/io-register-definitions.lisp, i-clocks.lisp, interrupts.lisp, vme-defs.lisp, vme-bus.lisp, merlin-scsi-hardware.lisp, configuration.lisp) and cross-verified against live-booted XL1200 FEP 3.30 (IFEP promJ) and Genera 8.3 execution in emu/include/ivory_hw.h and emu/src/merlin.c.


1. Merlin-II Internal Bus Hierarchy

The Merlin-II main board links the Ivory microprocessor, ECC main memory, C-Bus core logic, Merlin I/O Board(s), and the 6U VMEbus backplane through three internal buses:

+-------------------------------------------------------------------------+
|                    Symbolics Ivory VLSI Processor                       |
|        (40-bit Tagged Data Path, 32-bit VMA, 28/32-bit PMA Bus)         |
+------------------------------------+------------------------------------+
                                     | I-Bus (40-bit tagged word bus)
          +--------------------------+--------------------------+
          |                          |                          |
+---------v----------+     +---------v----------+     +---------v---------+
|  Main ECC DRAM     |     |  C-Bus Core Logic  |     |  B-Bus / I/O Bus  |
|  0x00000000..      |     |  0x08000000 PIT    |     |  IO Board 0:      |
|  0x007FFFFF (8 MW) |     |  0x09000000 NVRAM  |     |   0x40000000 SRAM |
|  Wired Low Memory  |     |  0x0A000000 Core   |     |   0x44014000 MMIO |
|  Boot PROM / Comm  |     |   LEDs, Cache, ECO |     |   0x48000000 VRAM |
|  0x07FE0000..FFFF  |     |   %merlin-ii-int   |     |  IO Board 1:      |
+--------------------+     +--------------------+     |   0x50000000..    |
                                     |                +-------------------+
                                     v
                         +----------------------+
                         |  VIC068 VMEbus Bridge|
                         |  0x80000000 Master   |
                         |  0x88000000 VIC068   |
                         |  0x8FF80000 Slave    |
                         +----------------------+
  • I-Bus: Full 40-bit tagged word bus connecting the Ivory CPU to on-board ECC DRAM, the wired Zone 31 Boot PROM / Boot Communication Area (0x07FE0000..0x07FEFFFF), and the C-Bus / B-Bus bridges.
  • C-Bus: 32-bit motherboard control and timing bus hosting the Intel 82C54 Programmable Interval Timer (0x08000000), Mostek MK48T02 NVRAM & BCD TOD clock (0x09000000), and Merlin-II Core Registers (0x0A000000..0x0A00000F, including LEDs, C-Bus interval timer, audio, on-board memory cache control, B/C quad latches, ECO register, VME arbitration, and the 32-bit master interrupt controller).
  • B-Bus (Merlin I/O Bus): Connects up to two Merlin I/O Boards (IO Board 0 at 0x40000000..0x4FFFFFFF, IO Board 1 at 0x50000000..0x5FFFFFFF) carrying shared 64-KWord DMA SRAM, Signetics DUSCC serial/console + Intel 8237A DMAC, WD33C93A SCSI, DP8466 ESDI, Intel 82586 Ethernet, I/O Board ID ROM, and the 512-KWord monochrome console framebuffer.
  • VMEbus Bridge (VIC068): Connects the Merlin-II motherboard to the 6U VMEbus backplane (0x80000000..0x8FF8000F). In a standalone XL1200/XL1201, the VMEbus supports expansion cards; in a UX1200S, the VMEbus exposes dual Data/Tag slave windows into Ivory RAM to the host Sun workstation (see Volume 6).

2. Proven XL1200 Merlin-II Physical Memory Map

All addresses are 40-bit word addresses (physical memory addresses, PMAs). Virtual addresses in Zone 31 (VMA 0xF8000000..0xFFFFFFFF, #o37000000000..#o37777777777) map directly via PMA = VMA & 0x07FFFFFF (27-bit unmapped window, 128 MegaWords). Physical addresses with bits <31:27> non-zero (motherboard C-Bus peripherals, I/O Boards, and VMEbus windows) are accessed via DTP-PHYSICAL-ADDRESS (#o22) or wired PHT entries.

Physical Word Range (Hex)Octal / Zone 31 AliasSizeSubsystem & Access Behavior
0x00000000..0x007FFFFFVMA 0xF8000000..0xF87FFFFF8 MW (40 MB)Contiguous Main ECC DRAM (IVORY_MERLIN_MAX_CONTIG_RAM_WORDS). Standard XL1200 / Merlin-II main RAM boundary.
0x00000100..0x00000132VMA 0xF800010051 wordsUX1200S EmbCommArea (when booted as an embedded coprocessor; normal RAM on XL1200).
0x00040000..0x00040FFF#o001000000, VMA 0xF80400004 KWHardware Trap Vector Table (IVORY_TRAP_VECTOR_BASE).
0x00041000..0x000410FF#o001010000, VMA 0xF8041000256 wordsFEP Communication Area (IVORY_FEP_COMM_AREA_VMA).
0x00041100..0x000411FF#o001010400, VMA 0xF8041100256 wordsSystem Communication Area (Syscom) (IVORY_SYSCOM_AREA_VMA).
0x00041200 / 0x00041208#o001011000 / #o0010110102 symbolsWired NIL (0xF8041200) and T (0xF8041208) symbol cells.
0x00800000..0x07FDFFFF—UnmappedUnpopulated DRAM expansion gap (IVORY_ERR_BUS_FAULT on XL1200 8 MW config unless expanded RAM is installed).
0x07FE0000..0x07FE003F#o777400000..#o777400077, VMA 0xFFFE000064 wordsWired Boot Communication Area (IVORY_BOOT_COMM_AREA_WORDS): *BOOT-SPY-PC* halt vectors and Main Board ID ROM shadow bytes.
0x07FE0040..0x07FEFFFF#o777400100..#o777577777, VMA 0xFFFE004064 KW − 64 WFEP Boot PROM Space (IVORY_BOOT_ROM_BASE_PMA, CPU cold reset vector at +0x40 = #o777400100, Even phase).
0x07FF0000..0x07FFFFFF#o777600000..#o777777777, VMA 0xFFFF000064 KWReserved I-Bus / Spy diagnostic address range.
0x08000000..0x0800000F#o0100000000016 wordsIntel 82C54 Programmable Interval Timer (MERLIN_TIMER_BASE_PMA).
0x09000000..0x090007FF#o011000000002,048 wordsMostek MK48T02 2 KB NVRAM & BCD TOD Clock (MERLIN_NVRAM_BASE_PMA, <7:0> valid).
0x0A000000..0x0A00000F#o0120000000016 wordsMerlin-II C-Bus Core Registers (LEDs, C-Bus timer, audio, cache control, B/C latches, ECO, VME, %merlin-ii-interrupt).
0x40000000..0x4000FFFF#o1000000000064 KW (256 KiB)Merlin I/O Board 0 Shared DMA SRAM (MERLIN_IO_BOARD0_BASE_PMA): Serial 8237A DMA (0x40004200), SCSI ring (0x40005000), Intel 82586 Ethernet structures (SCP at byte offset 0x01FFF4).
0x44014000..0x4402D001#o10400240000..#o10400550001Sparse MMIOMerlin I/O Board 0 Device Registers (ESDI cable status, Serial ctrl, SCSI ctrl, ID ROM + 82586 Ethernet ctrl, DUSCC, 8237A DMAC, WD33C93A SCSI & DMA regs, DP8466 ESDI, Video VPOS/CTRL, Am8158).
0x48000000..0x4807FFFF#o11000000000512 KW (2 MiB)Merlin I/O Board 0 Monochrome Console VRAM (MERLIN_VRAM_BASE_PMA, 1152x896 visible, 64-word stride).
0x50000000..0x5FFFFFFF#o12000000000256 MW windowMerlin I/O Board 1 Window (MERLIN_IO_BOARD1_BASE_PMA). Raises IVORY_ERR_BUS_FAULT when unpopulated (used by find-merlin-boards during hardware probe).
0x80000000..0x8000000F#o2000000000016 wordsVMEbus Master Control / Mapping Window (MERLIN_VME_CTL0_BASE_PMA).
0x88000000..0x880002FF#o21000000000768 wordsVIC068 VMEbus Interface Controller Registers (MERLIN_VIC068_BASE_PMA).
0x8FF80000..0x8FF8000F#o2177600000016 wordsVMEbus Slave Interface Window (MERLIN_VME_CTL1_BASE_PMA).

Unpopulated Board Probing: During cold boot and Genera's find-merlin-boards, the system deliberately probes 0x50000000..0x5FFFFFFF (I/O Board 1) and unmapped MMIO addresses while catching bus errors. Any unpopulated slot must signal IVORY_ERR_BUS_FAULT (Bus Error trap) rather than returning zero.


3. Wired Boot Communication Area (0x07FE0000..0x07FE003F)

The bottom 64 words of the Boot PROM window (PMA 0x07FE0000..0x07FE003F, Zone 31 VMA 0xFFFE0000..0xFFFE003F, #o777400000..#o777400077) are wired scratchpad / boot communication cells shared between the cold-boot loader, FEP firmware (IFEP promJ), and Genera:

PMAZone 31 VMAOctalPurpose
0x07FE00100xFFFE0010#o777400020*BOOT-SPY-PC* + 0 (Shutdown Halt Vector): IVORY_BOOT_SPY_PC_PMA. When FEP or Genera halts cleanly (e.g., Halt Machine), it jumps here.
0x07FE00110xFFFE0011#o777400021*BOOT-SPY-PC* + 1
0x07FE00120xFFFE0012#o777400022*BOOT-SPY-PC* + 2 (Fatal Halt Vector): Target for unrecoverable firmware/kernel halts.
0x07FE0020..0x07FE00250xFFFE0020..0xFFFE0025#o777400040..45Main Board ID ROM Bytes 0..5: 4-byte little-endian board serial number ([0..3], default 1200) + 2-byte little-endian manufacturing days since 1982-01-01 ([4..5], default 3650).
0x07FE0030..0x07FE00350xFFFE0030..0xFFFE0035#o777400060..65Main Board ID ROM Fallback Copy (bytes 0..5), queried by some FEP diagnostic routines.
0x07FE00400xFFFE0040#o777400100CPU Hardware Cold Reset Vector (IVORY_RESET_VECTOR_PMA, DTP-EVEN-PC, CR.TRAP-MODE = 3).

4. Intel 82C54 Programmable Interval Timer (0x08000000..0x0800000F)

The Merlin-II motherboard houses an Intel 82C54 three-counter Programmable Interval Timer at MERLIN_TIMER_BASE_PMA = 0x08000000 (register select on address bits <1:0>, byte payload in <7:0>):

OffsetPMARegisterClock Input & Interrupt Routing
+00x08000000Counter 0 (16-bit)Cascaded from OUT1 (CLK0 = OUT1, typically Mode 0 one-shot/terminal count). Terminal count asserts timer1_2 (LP interrupt bit <1> in 0x0A00000C).
+10x08000001Counter 1 (16-bit)Clocked at 1 MHz (1 tick per microsecond, typically Mode 2 rate generator). Output OUT1 drives CLK0 to form a 32-bit microsecond-resolution interval timer (timer1_2).
+20x08000002Counter 2 (16-bit)Clocked at 10 MHz (10 ticks per microsecond). Terminal count / periodic wrap asserts timer0 (HP interrupt bit <0> in 0x0A00000C), driving Genera's preemptive scheduler and high-precision clock.
+30x08000003Control Word (WO)Standard Intel 82C54 control byte: <7:6> counter select (0..2, or 3 = Read-Back command), <5:4> RW mode (0 = latch count, 1 = LSB only, 2 = MSB only, 3 = LSB then MSB), <3:1> operating mode (0..5), <0> BCD (1) vs. binary (0).
  • 16-bit Reload Value 0: Per Intel 82C54 rules, writing 0 reloads 65536 (0x10000) in binary mode or 10000 in BCD mode.
  • Read-Back (SC = 3): Supports latching count (<5> = 0) and/or status (<4> = 0: <7> OUT pin, <6> NULL COUNT, <5:0> mode/RW/BCD) across any combination of counters <3:1>.
  • Interrupt Clearing: Timer IRQ latches in 0x0A00000C bits <1:0> are cleared by writing the corresponding mask bits to 0x0A00000D (Timer IRQ Clear).

5. Merlin-II C-Bus Core Registers (0x0A000000..0x0A00000F)

The 16-word C-Bus core register block at 0x0A000000 (#o01200000000) controls motherboard LEDs, C-Bus interval timing, audio, on-board cache control, B/C-bus transceivers, VME timeout / board ECO identification, VMEbus arbitration, and the 32-bit interrupt controller:

OffsetPMASymbol / FunctionR/WBit Layout & Semantics
+0x00x0A000000MERLIN_LEDS_PMAR/WFront-panel status LEDs: bit <0> (0x01) = U0 (~2 Hz FEP/Genera heartbeat), bit <1> (0x02) = U1 (process active / run-light), bit <2> (0x04) = RUN.
+0x10x0A000001C-Bus Interval Timer CountR/WC-Bus auxiliary interval timer counter (1 MHz down-counter when enabled).
+0x20x0A000002C-Bus Interval Timer ControlR/WC-Bus auxiliary timer control: bit <0> enables down-counting; underflow asserts timer1_2 (bit <1> of 0x0A00000C).
+0x30x0A000003C-Bus Audio RegisterR/WC-Bus audio register (auxiliary speaker/tone control).
+0x40x0A000004MERLIN_CACHE_CTRL_PMAR/WOn-Board Memory Cache Control Register (see Section 5.1). Resets to 0x2 (cache enabled).
+0x50x0A000005B-to-C Quad LatchR/WB-Bus to C-Bus 4-word transceiver latch.
+0x60x0A000006C-to-B Quad LatchR/WC-Bus to B-Bus 4-word transceiver latch.
+0x70x0A000007Quad Transceiver StatusR/WB/C transceiver status / diagnostic scratch latch.
+0x80x0A000008MERLIN_VME_TIMEOUT_PMAR/WVME Timeout & Board ECO Register (board->vme_timeout, default MERLIN_ECO_DEFAULT = 0x0FF4FF11; see Section 5.2).
+0x90x0A000009VME Int Req VectorR/WVMEbus interrupt request vector (<31> is the host doorbell bit toggled by +0xE/+0xF).
+0xA0x0A00000AVME OwnershipR/WVMEbus ownership / master grant register.
+0xB0x0A00000BB-Bus LockR/WB-Bus interlock / semaphore register.
+0xC0x0A00000CMERLIN_IRQ_REG_PMAR/W32-bit %merlin-ii-interrupt Control / Status Register (write = enable mask, read = pending status; see Section 5.3).
+0xD0x0A00000DTimer IRQ ClearWOClears latched timer interrupt bits <1:0> (timer0 and timer1_2) in 0x0A00000C.
+0xE0x0A00000EVME Doorbell ClearWOClears VMEbus host doorbell (vme_int_req_vec<31> = 0).
+0xF0x0A00000FVME Doorbell AssertWOAsserts VMEbus host doorbell (vme_int_req_vec<31> = 1, waking a UX1200S Sun host).

5.1 On-Board Memory Cache Control Register (0x0A000004)

Derived from genera-original/sys.sct/i-sys/io-register-definitions.lisp (%merlin-ii-memory-cache-control) and verified by FEP/Genera memory diagnostics:

BitsFieldAccessMeaning
<1:0>CACHE-MODER/W0 = reserved, 1 = instruction-only, 2 = enabled (reset default), 3 = disabled.
<2>DIAGNOSTIC-MODER/WEnables cache tag diagnostic access.
<3>CLEAR-TAGSWOWrite 1 to invalidate all cache tags; self-clears to 0 on read-back.
<31:4>ReservedROReads as 0.

5.2 Board ECO & VME Timeout Register (0x0A000008)

Genera's configuration.lisp (find-merlin-boards and si:machine-model) reads nibbles of 0x0A000008 to discover the Merlin board population and hardware revision. A nibble value of 0xF indicates an absent board slot.

The standard upgraded XL1200 default is MERLIN_ECO_DEFAULT = 0x0FF4FF11:

BitsFieldDefault (0x0FF4FF11)Meaning
<3:0>main0x1Merlin-II Main Board revision (bit <3> = %%XL1201-eco-subfield-main distinguishes XL1201 from XL1200).
<7:4>mem00x1Memory Board 0 revision (8 MW ECC DRAM).
<15:8>mem1..20xFFMemory Boards 1 and 2 absent.
<19:16>io00x4I/O Board 0 revision (4 = upgraded XL1200 I/O board with WD33C93A SCSI & DUSCC serial).
<27:20>io1..20xFFI/O Boards 1 and 2 absent (0x50000000..0x5FFFFFFF triggers bus fault).
<31:28>Reserved / VME timeout0x0VMEbus timeout flags.

5.3 Master Interrupt Control & Status Register (0x0A00000C)

At MERLIN_IRQ_REG_PMA = 0x0A00000C (%merlin-ii-interrupt in io-register-definitions.lisp:92-112 and interrupts.lisp):

  • Writes update the 32-bit interrupt enable mask (int_enable, 1 = enabled).
  • Reads return the 32-bit interrupt pending status (int_pending, 1 = active).

An active interrupt exists whenever (int_pending & int_enable) != 0. Merlin-II partitions sources into High-Priority (HP) and Low-Priority (LP) lines delivered to the Ivory CPU's Preempt-Pending / sequence-break interrupt pins:

  • High-Priority Mask (MERLIN_IRQ_HP_MASK): 0x4FF7FF0D (all active sources except timer1_2, vme_lp, and reserved spare bits).
  • Low-Priority Mask (MERLIN_IRQ_LP_MASK): 0x00000002 (timer1_2 — plus vme_lp <2> when used as low-priority VME).
BitMaskField Name (MerlinInterruptControlReg)PrioritySource
00x00000001timer0HP82C54 Counter 2 (10 MHz scheduler / clock tick)
10x00000002timer1_2LP82C54 cascaded Counter 1→0 (1 MHz) or C-Bus interval timer
20x00000004vme_lpHP/LPVMEbus Low-Priority interrupt
30x00000008vme_hpHPVMEbus High-Priority interrupt
40x00000010vme_busHPVMEbus general / SYSFAIL / ACFAIL interrupt
50x00000020vme_slave_triggerHPVMEbus slave trigger / host doorbell (UX1200S)
60x00000040vme_bus_errorHPVMEbus BERR / timeout fault
70x00000080spare0—Reserved
80x00000100scsi_controllerHPI/O Board 0 WD33C93A SCSI controller IRQ (AUX_STATUS<7>)
90x00000200scsi_triggerHPI/O Board 0 SCSI DMA ring trigger threshold reached
100x00000400scsi_overrunHPI/O Board 0 SCSI DMA ring overrun threshold reached
110x00000800scsi_resetHPI/O Board 0 SCSI bus reset detected
120x00001000esdi_controllerHPI/O Board 0 DP8466 ESDI controller IRQ
130x00002000esdi_triggerHPI/O Board 0 ESDI DMA trigger
140x00004000esdi_overrunHPI/O Board 0 ESDI DMA overrun
150x00008000esdi_cableHPI/O Board 0 ESDI cable status change
160x00010000serial_sccHPI/O Board 0 Signetics SCN26562/68562 DUSCC IRQ
170x00020000serial_dmacHPI/O Board 0 Intel 8237A DMAC terminal count IRQ
180x00040000net_controllerHPI/O Board 0 Intel 82586 Ethernet SCB IRQ (CX/FR/CNA/RNR)
190x00080000spare1—Reserved
20..310xFFF00000io1_*HPI/O Board 1 mirror of bits <8:19> (scsi_*, esdi_*, serial_*, net_controller, spare2)

6. VMEbus Master, VIC068 & UX1200S Slave Windows

6.1 Merlin-II VMEbus Control Windows (XL1200 / UX1200S)

Physical Word RangeSizeController / Window
0x80000000..0x8000000F16 wordsVMEbus Master Control & address-modifier configuration (MERLIN_VME_CTL0_BASE_PMA).
0x88000000..0x880002FF768 wordsCypress VIC068 VMEbus Interface Controller register file (MERLIN_VIC068_BASE_PMA: ICGS/ICMS interprocessor flags, VIICR/LICR interrupt vectors, VME arbiter/requester config).
0x8FF80000..0x8FF8000F16 wordsVMEbus Slave Mapping Window (MERLIN_VME_CTL1_BASE_PMA).

6.2 UX1200S Host-Side VMEbus Slave Windows (Sun-3 / Sun-4 Perspective)

When a Merlin-II board is configured as a Symbolics UX1200S coprocessor inside a Sun-3 (68020/68030) or Sun-4 (SPARC) VME chassis, the Sun host maps the board's memory through three byte-addressed VMEbus windows (see Volume 6 for the complete EmbCommArea and EmbQueue protocol):

Sun VME Byte OffsetSizeMapping into Ivory 40-Bit Word Space
+0x0000000064 MBData Window: Each 32-bit VME word at byte offset 4 * PMA accesses bits <31:0> of Ivory word PMA.
+0x0400000064 MBTag Window: Each byte/word accesses bits <39:32> (CDR + DTP tag) of Ivory word PMA.
+0x05000000ControlVME Control / Doorbell Window: Allows the Sun host to reset/halt Ivory, trigger vme_slave_trigger (0x0A00000C bit <5>), and receive Ivory doorbells asserted via 0x0A00000F.

Related Chip Datasheets (11)All Component Datasheets →