You are building the hardware measurement ROM for a family of cycle-accurate emulators. The console is an early US Sega Genesis (Model 1, no TMSS screen), with a flash cart. We have no 32X, no Sega CD, and no logic analyser. Compare this list with what you already built, keep what you have, and add what is missing. Do not delete your own tests. Public references, read if you can reach them: github.com/alewman/megadrive-python (src/megadrive_python/board.py, vdp.py, arbiter.py, system.py; docs/undocumented-behavior.md), m68000-python (docs/claims.md), z80-python, ym2612-python. The numbers below are what our board does today, from reading the Nuked-MD die model, other emulators and published notes. THEY ARE WHAT WE WANT CHECKED, NOT THE TRUTH. Never bake one in as the only "correct" answer. == Two outputs, both required == 1. SCREEN, like AccuracyCoin: a pass/fail/not-run list by group, with test name, measured and expected values, and a total. Pads navigate it. Expected values are labelled as the emulator's prediction. 2. SAVE, like an RPG: raw results in cartridge save RAM, which the flash cart writes to its SD card. No result may need reading off a photo. Layout: magic, format version, ROM build ID (git hash), console version register, run and boot counters, a status byte per test (not run / started / done / hung), a boot log, a directory (tag, slot, length) so the decoder needs only the save file, then the slots, with a CRC per slot. - Save raw values and histograms, not just pass/fail. A pass hides the number. - First test: write/read/verify save RAM, and show plainly if it does not persist. Fallback: paged hex on screen with a CRC per page, or a QR code a phone can read. - Standard save mapping: SRAM on odd bytes at $200000, header "RA" at $1B0, ROM <= 2 MB, $A130F1 bit 0 maps it in and bit 1 protects it. I do not know which flash cart this is: make the save size and mapping one build-time setting, and check its docs. - Hangs: mark a test started before it runs. A boot that finds it unfinished marks it hung and moves on, so a freeze costs one press of reset. Lock-up tests run one per boot. == Rules for the measurements == - Control test: the flash cart is not a mask ROM. Its FPGA may answer unmapped reads, /TIME ($A130xx) and $400000-$7FFFFF. Every test that could be affected says so in its record. Run timing tests from work RAM and from cartridge, and report both. - The 68000 has no cycle counter. Time with the VDP HV counter, YM2612 timers or Z80 loops. Prefer phase walks: step a delay a clock at a time across the frame or refresh period and save the whole curve, so one edge can be located exactly. - Repeat. Anything that can vary gets a histogram over many runs and over several power cycles. Some results are expected to differ per boot. That is a finding, not a failure. - Build the ROM so the same image also runs on emulators (BlastEm, MAME, Nuked-MD if available) and write a decoder that prints any number of save files side by side, differences marked. Run it on at least one emulator before Aubrey flashes it. - Safety: nothing that risks the console. Unplug pads for any test that drives port lines as outputs against a pad. Keep video modes to what a TV survives. == What we need to know == A. Which console. Version register $A10001 (we expect hardware version 0, no TMSS, bit 5 set, export NTSC). Ask Aubrey for the board revision and chip markings if the case is open: VDP 315-5313 or 5313A, discrete YM2612. B. Power-on state, logged per boot, over many cold boots and resets. Contents of work RAM, Z80 RAM, VRAM, CRAM, VSRAM and registers before anything writes them. HV counter at first instruction. Phase between the 68000 (MCLK/7), Z80 (MCLK/15) and VDP clocks; the die model gives one relation and a real console may give many. Cartridge and work-RAM refresh phases. FM phase. Is it random per boot, or fixed? C. Reset button. Where it lands in the frame, 68000 held 128 clocks, Z80 and YM2612 held until $A11200 is written, VDP and I/O untouched, refresh restarted (we use 896 and 2,380 MCLK from the pulse: a supported finding, not proven). Does the 68000 RESET instruction reset anything? D. Refresh and bus timing. - Cartridge refresh: every 896 MCLK the next cartridge bus cycle takes 14 MCLK more, unless the bus was free and it ran by itself from 112 MCLK after falling due (7 at 119, 0 from 126). - Same refresh on $A00000-$A0FFFF costs 7, or 0 if due in the last 7 MCLK before /AS. - Every 68000 access to Z80 space costs one extra 68000 clock. - Work-RAM refresh: due 819 MCLK after the last began, costs 21, taken only within 98 MCLK of falling due, else runs by itself at 112. A 68000 that leaves RAM alone pays nothing. - Kabuto's "work-RAM slow-down" was never measured: measure it. E. Z80 and the arbiter. - Bank-window access: what it costs each CPU. We use 60/75/90 MCLK for the Z80, and the 68000 share depends on what it was doing. Test it during multiply/divide, shifts and bus-heavy code. - Z80 reads of the VDP through $7F00-$7F1F: same three lengths? Z80 writes? - BUSACK: delay from a $A11100 write. BUSREQ sampled about 33 MCLK after it; /BUSAK about 3 after the machine cycle ends. MoD's gen_test_z80_bus reads that count on real machines. - Z80 resume: 42 MCLK or more after bus release, 57 after reset release, on one clock phase. - Request during reset: is the grant held until the first M1 cycle has run? - Z80 INT: line and length (one line is our guess). - Z80 access inside its instruction: does a pop's second read wait behind the 68000? F. VDP. Reproduce Nemesis's published HV and status captures in both H modes and V28/V30, then: - F flag to 68000 interrupt delay; HINT and VINT positions in each mode. - DMA: start-up and pace. Kabuto measured 5.6 68000 clocks and 2.4 per word; the die model says 8.0 and 2.47. They disagree: settle it, with the display on and off, in all three memories. - FIFO commit delay (44 MCLK in our model), read release (53 MCLK), slot positions, the first read after a request, fill and copy timing. - Does VINT fire on a frame whose border never started (V28/V30 trick)? Mode 4 at power-on. 128 KB mode. Sprite overflow and collision flags: when set, when cleared. - testpico's six failing tests (below) in H32 and H40 with a walked start phase. G. YM2612 (discrete chip). - BUSY after a data write, walked through the 42-MCLK chip cycle. Our table of /AS phase to clear time: 0->1,407, 7->1,400, 14->1,393, 21->1,428, 28->1,421, 35->1,414 MCLK. - Status read lag, timer load to flag (die 1,141 to first set), timer A and B periods and resets. - Short /IC pulses, 56-224 MCLK: a 56-MCLK pulse is unexplained on our side. - What ports 1-3 read on a discrete chip (we return 0 with no hardware source). - DAC sampling point within its cycle. Status read from 68000 versus Z80. H. Open bus and the memory map. Word and byte reads at $400000-$7FFFFF, $A10020-$BFFFFF, $A11100 unused bits, and Z80 space without the bus. We say: MSB of the next opcode word, LSB 0; check data accesses, prefetch position and any decay. Lock-ups, one per boot: $800000- $9FFFFF, VDP outside its mirror pattern, Z80 bank onto its own space. Z80 reads of work RAM (expect $FF). TAS on work RAM, cartridge and VDP (write phase lost?). I. 68000 core, which has never met hardware. Instruction clocks with their bus patterns, DIVU and DIVS worst cases, MOVEM, MOVEP, interrupt acknowledge and E-clock phase, RESET, STOP. Address error frames: six rules are contested between WinUAE, Musashi and our core (m68000-python docs/claims.md). Save the raw frames. J. Z80 core. ZEXALL on the real Z80. Undocumented flags, MEMPTR, R, HALT, EI delay, IM 0 and IM 2 bus value, interrupt timing, each from Z80 RAM. K. I/O chip. TH pull-up delay, control and data register readback, 6-button timeout (no pad and with pad), serial registers, floating inputs. L. Existing suites, run as they are with the verdict entered or photographed: testpico, VDPFIFOTesting (repeat its intermittent tests: 4, 16, 31, 32, 33), MD Soft Checker, and r57shell's and MoD's tests. For testpico, the six our board fails from cold are 26 time z80 vdp, 27 time z80 bank rom, 41 irq ack v-h 2, 42 irq ack h-v, 43 irq ack h-v 2, 45 irq f flag h32. BlastEm also fails 26, 27, 41. What does the real console do on each? M. Things the CPU cannot see. List them separately with what Aubrey needs: pixel position of a CRAM dot and output delay (we use 21 pixels H40, 24 H32), shadow/highlight levels, audio (filter corner, PSG/FM mix, ladder), composite/RGB. Make picture ROMs for these and ask whether he has a camera, capture card or line-in. Do not block anything else on them. == Addendum, 2026-11-02: from the session that reviewed the board's open items == Same rule as the top of this brief: compare, keep what you have, add what is missing. Numbers here are the board's or the die's, to be checked, and may have moved: read the current code. N. Prove the rig before trusting a result. Do these before anything long. - The brief assumes the ROM sees power-on state. A flash cart's menu usually runs first, and it will touch RAM, VDP, Z80, FM and I/O. Find out whether this cart can boot our ROM directly. If not, label every affected result in B "after menu", because it is not power-on state. - Find out exactly when the cart commits save RAM to SD: on reset, on return to the menu, or on power-off? Does a power-off lose it? Read-back verify in the same session proves none of this, so test it across a real power cycle and an SD read. The hang plan depends on the answer. - Does the reset button reach the console, or does the cart take it? Section C and the "one press of reset" hang recovery both depend on it. If a hang needs a power-off, results before the hang must already be safe. - Never write the cart's private config registers. Documented interfaces only. - Keep a ring of past runs in the save, so a second run cannot overwrite the first. O. Do not mix up the machines. This console should be our board machine `genesis` (early Model 1, hardware version 0, discrete YM2612). The die referee, `nuked-md`, is Model 1 VA6+ and PAL, and many of our constants were fitted to it. A mismatch may be a revision difference, not a bug on either side: say which you think it is, and why. This console is NTSC, so PAL-only figures and captures do not transfer directly. P. Write predictions down first. Before the first console run, run the same ROM on board `genesis`, board `nuked-md`, the Nuked-MD referee, BlastEm and MAME where each can run it, and commit those saves. This replaces "one emulator's results" in Deliver 3 where it is possible. The console run is then compared with a commit, so nobody explains results after seeing them. One Rust board (megadrive-rust) should agree with the Python board on this ROM. Q. Measuring method. Sync the 68000 to the VDP by a deterministic stall (DMA end, FIFO full) before a walk. Test whether port 2's TH can drive the HV latch and external interrupt as a timing probe. Every record states its real resolution: do not claim sub-68000-clock results unless the method resolves them. R. Additions to the VDP list. - HBlank flag position with the display off, which the board takes from Nemesis's captures. (Correction: an earlier "931 MCLK gap from the die" came from mis-aligned VDP clocks and was withdrawn in the worklog; it is not a known disagreement.) VBlank clearing on line $1FF. H40 dot clock pattern. Interlace 0/1/2 in the HV map, and every mode with the display on and off. - DMA: 1 to 512 words from ROM and from work RAM; slots lost per refresh; the first-read rule; the 512-word CRAM figure (die 1,270 cycles, board 1,274). - FIFO Wait States sub-test 8 passes on the die about 1 time in 812. Get its real-console rate. - Sprite overflow and collision flags can judge the renderer without a camera. Move writes to the sprite cache around the V step and read the flags: phase 1 and phase 2 timing (new on our side, from BlastEm and Kabuto's sentence, never run on the die), line $1FF scanning the first line's sprites, sprites above line 0, per-line sprite and pixel limits, 17-bit cache compare. S. Additions to the bus and sound lists. - Refresh: stretches of 7/21/35 MCLK, not only 21; the refresh count pausing during DMA; ties at count 112; several different access mixes, because rules fitted to one program did not generalise. - BUSACK with the Z80 held in reset: die 235 MCLK, board 57, from a single observation. - Pop's two reads: die 2.95 then 3.60 wait states, MoD about 3.5 overall; single read die 2.93. - 68000 waits on FM writes and reads (board 21 and 27 MCLK). Why Z80 space costs an extra clock is unknown, and MAME calls it unverified: a clean measurement of the cost is enough. - FM: timer control lag (2 cycles on the die), /IC restart versus pause by write position, DAC enable edges, test registers, LFO, CSM timing. PSG write timing. T. Clocks. True crystal frequency in ppm against an outside reference (a long timed run or an audio recording). Our Super Famicom's audio clock read +2,987 ppm, so do not assume nominal. Exact line and frame rates. Warm-up: repeat key timing at cold boot, 30 and 60 minutes. U. Additions to M, picture and sound by eye. Use test cards with large numbered cells, so a phone photo gives a counted column. Display-off delay at the right edge (5 pixels is a bound; H32 is unmeasured), vscroll latch ($149/$143 H40, $109/$103 H32), 2-cell column latch, tile fetch schedule, mid-line tile-row writes in H32 (board 8 pixels late), window bug, invalid plane sizes, debug register $C0001C including the $140 dot pattern and $1C0 borders, open-border raster, 128 KB picture with the display on, interlace 2. Audio, if line-in exists: DAC $7F/$80 jump, DAC pulse shape, 1 kHz sweeps, noise level, MDFourier. Our filter and mix are fitted to one A-MD1UTVA3 board. Measure the chain's own response too. V. Additions to K and L. Pad read latency (r57shell's joy_speed), TH interrupt, port output modes. Also record VDPTEST, the 240p Test Suite, Overdrive 1, and Overdrive 2 (a PAL demo: note what this NTSC console does with it). MoD's gen_test_z80_bus has no published hardware values, so its readings fill a real gap. W. Priority. Rank by decisions it could reverse x games touched / Aubrey's effort. My top ten: save commit, menu contamination, DMA start-up and pace, read release, BUSACK in reset, work-RAM refresh, sprite phase timing, F-flag delay, reset's refresh restart, YM2612 ports 1-3. Put your ranking beside it and flag the differences. X. Reading results. One console is one revision: label it so. No constant changes on one run, or without checking existing hardware oracles. If the console disagrees with Nemesis or Kabuto, report it and leave the call to Aubrey. Post nothing publicly. == Deliver == 1. The ROM, built with its git hash, under the flash cart's size limit. 2. A one-page run sheet for Aubrey: what to flash, what to press, how many power cycles, how long, which file to send back. The first run should be short and valuable; order tests so a short run still pays. Keep the slow repeats in a second pass. 3. The decoder, with one emulator's results already in it. 4. A table: test tag, what it settles, what our board predicts, what hardware said. Results count as hardware-captured evidence; keep what the documents say, what hardware shows and what the board does as separate records. Do not change any emulator here. Tell me what you already had, what you added, what could not be measured, and anything about this flash cart that limits us.