Engineering Roadmap
Purpose: Master index of completed and proposed architectural plans under
docs/, ordered by priority and dependency tier, together with the shared Core ABI v5 &_reservedSlot Allocation Registry so independent workstreams never collide on frozen struct sizes or VMEbus address windows.
1. Status & Priority Dashboard
Roadmap Evolution: Completing the Symbolic Debugger & Profiler (debugger-profiler-plan.md), the Portable CL Assembler/Disassembler (assembler-disassembler-plan.md), and the Clean-Room Boot PROM v1.1 + IFEP Overlays (custom-boot-prom-plan.md) removed the proprietary Boot PROM requirement for SCSI/CD-ROM bring-up and added live symbolic inspection, flamegraph profiling, and .flod assembly across all upcoming tracks. With those three foundations promoted to Completed Architectural Milestones, the remaining 10 open items shift forward: Audio, Chaosnet/PCAP Networking, and Memory Expansion now lead Tier 1, followed by Shared VMEbus (ABI v5) and IVPV Idle Yield in Tier 1.5.
Completed Architectural Milestones
| Plan | Status | Summary & Live Documentation |
|---|---|---|
docs/cpu-acceleration-plan.md | DONE | 3-tier execution (portable / avx512_c / avx512), 256-page 4-GW-ready IvoryDcache, OS-independent SysV/Win64 Zen 4 hot assembly (~150 MIPS, 2.31× vs portable). Live ref: docs/emulator/core-and-acceleration.md. |
docs/gui-scripting-windows-plan.md | DONE | SDL3 + microui workbench (15/18 px antialiased Inter font, 6 floating windows incl. Video Recording, single-button Bug Dump .zip), s7 Scheme (define-machine ...) & call/cc scheduler, portable 2-channel serial host, Windows MinGW-w64 + Wine 11 CI. Live ref: docs/emulator/gui-scripting-and-debug.md. |
docs/debugger-profiler-plan.md | DONE | From-scratch 40-bit Ivory disassembler (ivory_disasm.c, canonical Lisp S-expr compatible with ivasm), read-only Genera symbol/stack/trap walker (ivory_sym_walk.c), symbolic Bug Dump traces, on-demand sample-sym .folded profiler, 4-tab Debug & Snapshots UI, cross-platform scripts/xl1200-ctl.py, and troubleshooting playbook. Live ref: docs/TROUBLESHOOTING.md, docs/emulator/gui-scripting-and-debug.md. |
docs/assembler-disassembler-plan.md | DONE | Standalone portable ANSI Common Lisp multi-arch assembler/disassembler (tools/ivasm/, verified across SBCL, ECL & CLISP, 304/304 C↔CL golden checks, 0-diff real-media round-trips), Ivory Rev 4/4A + FrameThrower AVP/ASQ skeletons, and :raw-words/:ifep-prom/:ifep-fep/:ifep-flod/:ibin-fasl containers. Live ref: docs/ivory-assembler.md. |
docs/custom-boot-prom-plan.md | DONE | Clean-room open-source XL1200 Boot PROM v1.1 (prom/, 1,808 words: Merlin-II cache mode 2, dual 1bpp VRAM 8×8 font + Serial Ch.B console, SLB keyboard + serial input, 3s interruptible countdown, SCSI 0..6 discovery & interactive menu, FEPFS FEP7..13: & ISO-9660 CART7..13: CD-ROM boot, split 115988/115989 EPROMs) + IFEP 328 overlay SDK & live custom-diag.flod (Show Emulator Info). Live ref: docs/custom-boot-prom.md, docs/fep-internals-and-overlays.md. |
Remaining Next-Phase Plans (Ordered by Priority)
| Tier | Priority | Status | Plan | Scope | Core ABI Impact | Depends On |
|---|---|---|---|---|---|---|
| Tier 1 | 1 | TODO | docs/audio-plan.md | Authentic XL1200 console beeper (VIDEO_CTRL 0x4402C000 <3:4> + SLB beep/volume) via SDL3 audio streams, UI mute/volume, optional .wav sidecar for .y4m | None (Xl1200Console event ring) | — |
| Tier 1 | 2 | PARTIAL | docs/networking-chaosnet-plan.md | Lean real-world networking: cbridge/CHUDP Chaosnet (0x0804) + libslirp EtherType mux, Linux persistent/pre-existing TAP & PCAP/AF_PACKET (veth), Windows Npcap / TAP-Windows, macOS notes (lowest priority). (Base 82586 + libslirp + Linux TAP already work.) | None (EthHostCallbacks only) | — |
| Tier 1 | 3 | TODO | docs/memory-expansion-plan.md | Sparse host RAM backing (mmap/VirtualAlloc), safe Zone-31 ceiling (<= 127.875 MW), Merlin-II expansion boards 0–2 (0x10000000..0x30000000, up to 895.875 MW), multi-region .snap/COW scaling | 1 ptr slot in IvoryMem::_reserved | — |
| Tier 1.5 | 4 | TODO | docs/vme-bus-plan.md | Shared Merlin-II VMEbus & VIC068 bridge (vme_bus.c, VmeDeviceOps, direct 0xC0000000+ & polled 0x88000040..0x88000140, 4 shuffle modes, BERR/IRQ/IACK, disjoint A32 slot registry) | ABI v5 (1 ptr slot in MerlinBoard::_reserved) | — |
| Tier 1.5 | 5 | TODO | docs/genera-pv.md (Wave 1B) | Standalone IVPV Idle Yield Device — 1-register VME idle hint (PV_REG_IDLE_YIELD), condvar sleep in main.c, ~20-line Genera scheduler hook for ~0% idle host CPU | Uses vme-bus-plan.md | vme-bus-plan.md |
| Tier 2 | 6 | TODO | docs/genera-pv.md (Waves 2–3) | Full Host–Guest Paravirtualization: seamless uncaptured mouse, bidirectional Solstice/UX-style RPC + External RPC Sidecar Proxy, zero-copy HOST: DMA filesystem, host clipboard | Uses vme-bus-plan.md | vme-bus-plan.md |
| Tier 2 | 7 | TODO | docs/color-graphics-plan.md | Authentic VMEbus color hardware: Univision UDC-3400 (3× Bt458 RAMDACs + Intel 82786 GP) → Symbolics FrameThrower (Photon + AVP), dual-head SDL3 + microui | Uses vme-bus-plan.md | vme-bus-plan.md |
| Tier 3 | 8 | PARTIAL | docs/platforms-and-ci-plan.md | Generic x86-64 fast assembly loop + Linux/Windows Release CI (Primary) → ARM64 (aarch64) Linux & NEON/ASM (Second Tier) → macOS portability notes (Lowest Priority). (Linux/Win64 Nix & Wine builds already work.) | None (runtime tier table) | — |
| Tier 3 | 9 | TODO | docs/genera-pv.md (Separate IVFB Card) | Optional separate VME Linear Color Framebuffer card (IVFB at 0x1400_0000, screen_id = 1..4) decoupled from IVPV | Uses vme-bus-plan.md | vme-bus-plan.md, genera-pv.md |
| Tier 3 | 10 | PARTIAL | docs/genera-autoinstall-plan.md | Optional unattended Genera 8.3 layered-products installer (extending working base install-genera-8.3-from-cdrom.sh for C/Fortran/Pascal/Color/CLIM/Statice/Joshua + incremental world save) | None (Automation scripts only) | — |
2. Architecture & Dependency Graph
flowchart TD
subgraph DONE["Completed Foundations DONE"]
DBG["debugger-profiler-plan.md\nDisasm, Symbol Walker, Bug Dump,\nsample-sym, Cross-Agent Skill"]
ASM["assembler-disassembler-plan.md\nCL Multi-Arch Asm/Disasm (tools/ivasm/)\nLisp S-Expr, PROM/FEP/FLOD/IBIN"]
PROM["custom-boot-prom-plan.md\nClean-Room Boot PROM v1.1 (3s Menu)\n+ IFEP 328 Overlays (.flod)"]
end
subgraph T1["Tier 1 — Zero Core ABI Break (Audio, Networking & Sparse RAM)"]
AUD["1. audio-plan.md\nVIDEO_CTRL + SLB Beep via SDL3"]
NET["2. networking-chaosnet-plan.md\ncbridge/CHUDP + SLIRP Mux,\nTAP/PCAP (veth), Win Npcap"]
MEM["3. memory-expansion-plan.md\nSparse RAM + Merlin Boards 0..2\n(127.875 MW / 895.875 MW)"]
end
subgraph T15["Tier 1.5 — VMEbus Foundation & Early Idle"]
VME["4. vme-bus-plan.md\nvme_bus.c, VIC068 BERR/IRQ/IACK,\nDirect/Polled VME, ABI v5"]
IDLE["5. IVPV Idle Yield Device\n(genera-pv.md Wave 1B)\n~0% Idle Host CPU"]
end
subgraph T2["Tier 2 — Full Host-Guest PV & Authentic Color Hardware"]
PV["6. genera-pv.md (Waves 2-3)\nSeamless Mouse, HOST: FS, Clipboard,\nExternal RPC Sidecar Proxy"]
CLR["7. color-graphics-plan.md\nUnivision UDC-3400 & FrameThrower\n(SDL3 Dual-Head + microui)"]
end
subgraph T3["Tier 3 — Portability, CI & Stretch Cards"]
PLAT["8. platforms-and-ci-plan.md\nGeneric x86-64 ASM + CI -> ARM64 -> macOS"]
IVFB["9. Separate VME Linear Color Card (IVFB)\n(Low Priority, Decoupled from IVPV)"]
end
DBG <-->|"Shared Lisp S-Expr"| ASM
ASM --> PROM
ASM -.->|"IBIN & Microcode Analysis"| CLR
VME --> IDLE
IDLE --> PV
VME --> CLR
PV --> IVFB3. Shared Core ABI v5 & _reserved Slot Allocation Registry
All future plans MUST obey the frozen hot-reload struct sizes enforced by C11 _Static_assert in emu/src/cpu.c and emu/AGENTS.md:
| Struct | Frozen Size | Currently Available _reserved | Planned Slot Allocations | Remaining Headroom |
|---|---|---|---|---|
IvoryCpu | 4096U | _reserved[248] (1,984 B) | None required by Tier 1–3 plans | 248 slots (1,984 B) |
IvoryMem | 32768U | _reserved[937] (7,496 B) | memory-expansion-plan.md: IvoryMemBanks *banks (1 uint64_t slot) | 936 slots (7,488 B) |
MerlinBoard | 278528U | _reserved[1054] (8,432 B) | vme-bus-plan.md: VmeBus *vme (1 uint64_t slot) + uint32_t idle_yield_us & uint32_t _vme_pad (1 uint64_t slot) | 1052 slots (8,416 B) |
Heap-Pointer Indirection Rule for VME Boards: Rather than embedding large board state (such as IvoryPvBoard's 4 KiB CLUTs, Univision's 8 MiB VRAM, or FrameThrower's microcode banks) directly inside MerlinBoard, all VME boards attach via VmeBus *vme (1 pointer slot in MerlinBoard::_reserved) using VmeDeviceOps defined in docs/vme-bus-plan.md. Only the single hot-loop idle_yield_us word (checked at L_outer_reload in cpu.c) sits inline on MerlinBoard for zero-pointer-chase slice exit.
Disjoint VMEbus A32 Address Window Registry
| VME A32 Byte Range | Direct Ivory PMA (:shuffle :none) | Owner Card | Plan |
|---|---|---|---|
0x1000_0000 .. 0x1000_03FF (1 KiB) | 0xC400_0000 .. 0xC400_00FF | IVPV Paravirtual Control / Idle / Mouse / RPC | docs/genera-pv.md |
0x1400_0000 .. 0x15FF_FFFF (32 MiB) | 0xC500_0000 .. 0xC57F_FFFF | Optional separate IVFB Linear Color Card (Heads 1–4) | docs/genera-pv.md (Low Priority) |
0x9000_0000 .. 0x90FF_FFFF (16 MiB) | Direct window (direct_am.addr = 2) | Univision UDC-3400 Color Board | docs/color-graphics-plan.md |
Probed slot (per probe.ibin) | Direct window | Symbolics FrameThrower (Photon + AVP) | docs/color-graphics-plan.md |
4. Lightweight Utility Backlog (Non-PV Complements)
Small, self-contained improvements that fit naturally into existing shell tools without requiring a standalone plan:
- DONE FEPFS file extract / inject (
ivory-fep-convert): Added--extract <file>and--inject <file>commands toemu/src/fep_convert.cfor moving individual Lisp/text/kernel/.flodfiles into or out of FEPFS disk images offline. - DONE Pure-C11 MacIvory APM / Classic HFS multi-volume converter (
ivory-fep-convert+ GUI): Extendedemu/src/fep_convert.cand theDisk & Image Toolsworkbench to parse Apple Partition Maps and Classic HFS Catalog + Extents Overflow B-trees (including hiddenfInvisible=0x4000'IVRY'files) and automatically convert and save all discovered FEPFS volumes as<base>_<vol><ext>with zero Rust or external dependencies. - Serial Ch.B / TCP PostScript Spooler: Extend
serial_host.cfile:capture or a small helper script to auto-split GeneraHardcopyPostScript jobs (%!PS..^D) into timestamped.psfiles on the host. - SDL3 Desktop Polish: Drag-and-drop (
SDL_EVENT_DROP_FILE) to attach.iso/.tap/.scmfiles, HiDPI (SDL_WINDOW_HIGH_PIXEL_DENSITY) scaling polish, and an interactive Symbolics bucky-key cheat-sheet popup insideView.
- Brooktree Bt458 —
brooktree_1989_product_databook_Bt458.pdf(mirror) - VTC / Cypress VIC068A —
cypress_VIC068A_VAC068A_users_guide.pdf(mirror) - Intel 82586 —
intel_82586_lan_coprocessor.pdf(mirror) - Intel 82586 —
intel_82586_reference_manual_1983.pdf(mirror) - Intel 82786 —
intel_82786_preliminary_datasheet_1986.pdf(mirror) - Intel 82786 —
intel_82786_users_manual.pdf(mirror)