# The netlists: what survives of the real design, and what does not The most important finding of this Phase 0: **the designers' own netlist sources for Tom and Jerry are public**, with the processor blocks complete and the GPU's microcode ROM included. They are the nearest thing to the silicon this family has had for any CPU. This page says what the archive holds, what has been edited, what is missing, what derived Verilog exists, and the licence position. How it is used as an oracle is in [validation.md](validation.md). Paths: `NET/` is `reference/src/JagNetlists/netlists_org/` (fetched by `scripts/fetch_references.py`, pin `Torlus/JagNetlists` @ `e13d5120`, commit of 2014-11-08 by Gregory Estrade). `MiSTer/` is `reference/src/Jaguar_MiSTer/` (@ `43a761d7`). ## What the archive is Flare II's netlist language: one `.NET` file per block, gates and cells from a Toshiba library (`IMPORT duplo, tosh;`), with the designers' prose comments and dated change notes (1990-11 to 1993-05). Example: `NET/tom/DIVIDE.NET` opens "divide.net 17/4/91 ... non-restoring division ... two bits per tick" and adds "10/3/92 To allow division of two 16.16 bit numbers, a new input div_offset ...". `scripts/netlist_comments.py FILE` prints only the prose of a file. `NET/tom/` holds 66 files, `NET/jerry/` 31. The processor blocks are all there: | Block | Tom (GPU) | Jerry (DSP) | Note | | --- | --- | --- | --- | | top of the processor | `GPU.NET` | `DSP.NET` | | | instruction decode, microcode ROM instance | `INS_EXEC.NET` (`Mcode := RA6032A`, l.270) | `DSP_EXEC.NET` (l.279) | the ROM cell's contents are not netlist text | | pipeline control | `EXECON.NET` | `EXECON.NET` | byte-identical | | prefetch, PC | `PREFETCH.NET` | `DSP_F-35.NET` | | | scoreboard | `SBOARD.NET` | `SBOARD.NET` | byte-identical | | ALU, shifter, saturate, multiplier, flags | `ARITH.NET` | `DSP_A-5Q.NET` | DSP adds 40-bit accumulator, modulo, mirror | | divider | `DIVIDE.NET` | `DIVIDE.NET` | differ only by one 2012 declaration edit (3 lines) | | register file (2 x 32) | `REGIS-WA.NET` | `REGIS-WA.NET` | | | MMULT sequencer | `SYSTOLIC.NET` | `SYSTOLIC.NET` | byte-identical | | interrupt latches and entry | `INTER-UA.NET` | `DSP_INT.NET` | DSP has six sources | | control/status register | `GPU_CTRL.NET` | `DSP_CTRL.NET` | | | local bus controller | `GPU_MEM.NET` | `DSP_MEM.NET` | | | gateway to the external bus | `GATEWAY.NET` | `DSP_GATE.NET` | | | local RAM | `GPU_RAM.NET`, instanced in `GRAPHICS.NET` l.180 | `DSP_RAM.NET`, instanced in `DSP.NET` l.167 | RAM cell contents are not text (it is RAM) | | slave port (other masters into local space) | `GPU_CPU.NET`, instanced in `GRAPHICS.NET` l.185 | `DSP_SLAVE`, instanced in `DSP.NET` l.172 | 16-bit and 32-bit (`+$8000`) ports | The asymmetry in the last two rows matters for the core boundary: on Tom the local RAM and the slave port sit in `GRAPHICS.NET`, beside the GPU and the Blitter (whose registers share the local bus); on Jerry they are inside `DSP.NET`. See the boundary decision in [handoff-brief.md](handoff-brief.md). Read in full for this Phase 0: `INTER-UA.NET`, the `ALU32`, flag and `BRLSHIFT` sections of `ARITH.NET` (l.200-500), `DIVIDE.NET` prose, `PREFETCH.NET` l.1-320, the direct-decode section of `DSP_EXEC.NET`, `GRAPHICS.NET` l.60-80 and its instance list. Read for prose only (comments): `EXECON`, `SBOARD`, `SYSTOLIC`, `INS_EXEC`, `GPU_CTRL`, `DSP_INT`. **Not read**: `GPU_MEM.NET`, `GATEWAY.NET`, `DSP_MEM.NET`, `DSP_GATE.NET`, most of `DSP_F-35.NET` and `DSP_A-5Q.NET`, `REGIS-WA.NET` (the build session reads them when it reaches those parts; [timing.md](timing.md) says which numbers depend on them). ## What has been edited (checked 2026-11-12) `netlists_org` is **not pristine**: - 17 Tom files carry comments by Estrade dated June 2012, for example `(* GE 13/06/2012 Added missing declarations *)` (13 of them), `Changed comment layout` (2), `Non-working and unused, so commented out` (1), and one `WTF` note on a declaration. These are what his Verilog translator needed; none seen so far changes logic, but **one does comment a block out**, so a claim resting on a GE-tagged file should name the line and check it is not in an edited region. No Jerry file carries a GE tag. - The sibling directory `netlists/` is a further-corrected copy: 14 Tom files differ from `netlists_org` (`ADDARRAY`, `DBUS`, `DIVIDE`, `GRAPHICS`, `INNER`, `IODEC`, `LBUF`, `MEM`, `OBDATA`, `OB`, `PIX`, `SBOARD`, `TOM`, `VID`) and it adds `MEM_longCAS.NET`. `SBOARD.NET` and `DIVIDE.NET` are processor blocks: diff them before relying on either copy. Which silicon revision the files match is stated only indirectly: `GPU_CTRL.NET` returns version code 2, which the manual calls "First production release" (TRM p.61; its bugs list p.133 is "revision code 2 silicon"). Where the files first came from is **not established** (U8): a forum search result says they were once on the Atari Museum site; not verified. ## The microcode ROM There is no micro-program. Each opcode indexes a 64 x 27-bit ROM (`RA6032A`) whose word drives the pipeline for that instruction. The comment in `INS_EXEC.NET` l.326-329: "Due to the slow nature of the ROM, some control bits are directly decoded. THESE MUST MATCH THE ROM CONTENTS IN mcodegen.c." - **GPU: present.** `reference/src/JagNetlists/soft/mcodegen.c` is Flare's generator; `soft/Mcode.rom` its output. `python -I scripts/mcode_table.py --check` recomputes the ROM from the generator's table: **64 words, 0 differ**. `scripts/mcode_table.py` decodes each word into the columns used in [instruction-set.md](instruction-set.md) (ALU function, result selector, the source operand form, which flags load and where C comes from, how the destination is written, whether it is read). - **DSP: missing.** `DSP_EXEC.NET` l.279 instances the same cell type, but its contents for Jerry are nowhere in the archive. Torlus's own Verilog (`verilog/base/ra6032a.v`, `$readmemh("mcode.rom")`) loads the GPU ROM for Jerry too. The 58 opcodes the two processors share very probably have the same words (same execution blocks, same decodes in `DSP_EXEC.NET`), but that is an inference. The six DSP-only opcodes (32 SUBQMOD, 33 SAT16S, 42 SAT32S, 48 MIRROR, 62 undefined, 63 ADDQMOD) need words the archive does not give. - **MiSTer's reconstruction.** `MiSTer/rtl/jaguar_common/ra6032a.v` selects six substitute words when its `JERRY` parameter is set (l.63-105): SUBQMOD `00071906`, SAT16S `00069802` (the GPU's SAT8 word; the comment says the saturator's size select could be inverted instead), SAT32S `00069822`, MIRROR `00069807`, opcode 62 `00008000` ("illegal -- nop"), ADDQMOD `00071806`. They are **reconstructions by the core's authors (HDL tier), not recovered data**: plausible because they pick existing datapath controls, unproven because nothing ties them to the silicon. The same file also **edits one GPU word**: PACK `00069806` becomes `00069006` ("pack/unpack do not change flags"), i.e. the flag-load bit is cleared to agree with the manual (C3). `python -I scripts/mcode_table.py --dsp` prints the DSP table with MiSTer's six words. How the six words could be checked without the ROM (U1): the DSP-only datapath (`DSP_A-5Q.NET`: modulo mask, mirror, the 40-bit saturator) fixes which result selector and saturate size each instruction can use; the remaining bits (flag load, operand form, write mode) follow from the manual's flag descriptions. That narrows each word; it does not prove it. ## Netlist-derived Verilog: two forms 1. **Torlus's gate-for-gate translation**, `reference/src/JagNetlists/verilog/` (`tom/`, `jerry/`, `base/`): output of Estrade's Java translator, one Verilog module per netlist block, with hand-written models of the Toshiba cells in `base/`. Line comments point back at the netlist (`// DSP_EXEC.NET (285) - mcodepipe : fd2qp`). Same licence position as the netlists. 2. **MiSTer core**, `MiSTer/rtl/` (GPL-2.0, `LICENSE`; but `rtl/README.txt` still carries Estrade's "All rights reserved" note): Torlus's design ported by ElectronAsh and Kitrinx, with updates by Kitrinx and GreyRogue (`README.md`). `rtl/jaguar_common/` is **one RISC processor shared by Tom and Jerry** through a `JERRY` parameter, reworked into behavioural Verilog whose modules map 1:1 onto the netlist blocks (`sboard.v`, `execon.v`, `prefetch.v`, `arith.v`, `divider.v`, `systolic.v`, `interrupt.v`, `gpu_ctrl.v`, `gpu_mem.v`, `gateway.v`, ...). Its memory controller is edited for the FPGA's SDRAM, so its external-bus timing is not the console's (the libretro project's `gpu-timing-spec.md` ยง13 says the same). **Both elaborate.** `python -I scripts/lint_referee.py --oss ../sm83-python/reference/build/oss-cad-suite` runs Verilator 5.053 `--lint-only` over three islands, each with **0 errors** (run 2026-11-11): `mister-dsp` (top `_j_dsp`, 30 files, 1.4 s), `mister-gpu` (`_graphics`: GPU, gateway, local RAM and Blitter, 79 files), `torlus-gpu` (`graphics`, 191 files). Nothing was built or simulated. The libretro project reports having built a Verilator rig around Torlus's `graphics` island and measured GPU timing with it (`reference/src/virtualjaguar-libretro/docs/gpu-timing-verilator-results.md`); its traps are worth knowing before building one (bus vectors bit-reversed by their wrapper; one netlist `clk` tick = one 26.59 MHz system clock; `ack` is a level), but the rig itself (`vsim/`) is not in their repository, so their numbers are second-hand ([validation.md](validation.md)). ## Licence position - **Netlists and Torlus's Verilog**: no licence. `README.txt`: "JagNetlists (c) 2013 Gregory Estrade. All rights reserved (until I sort out the licensing stuff)." The netlists themselves are Flare II / Atari Corp. design files. The platform was opened in 1999 (the manual's pin note says it has circulated since then); whether that opening covers the chip design was **not established**, and no statement saying so was found. - **Rule for this repository**: cite file and line, describe behaviour in our own words, never copy netlist text or Verilog into the code or the docs beyond short quotations of a comment. A generated test corpus (expected values produced by simulating the netlist-derived Verilog) is data about behaviour, not a copy of the design; whether Aubrey is content to commit such a corpus is an open decision ([handoff-brief.md](handoff-brief.md)). - **MiSTer core**: GPL-2.0. Simulating it as a separate referee binary is fine; copying its code into an MIT core is not.