# The Atomiswave core: a test build for the 2D games Written 2026-11-24. This is the first build of the whole machine: the SH-4, Holly, the cartridge board, the PowerVR2 as the lean 2D renderer, and the AICA (its ARM and voices, without the DSP), all memories in DDR3. It is meant for the ten games the 2D renderer covers: Animal Basket, Guilty Gear Isuka, KOF NeoWave, KOF XI, Metal Slug 6, Salaryman Kintaro, Samurai Shodown VI, Sushi Bar, Victory Furlong and WaiWai Drive. Since build `i` there is an `.mra` file for the other 18 games too. Guilty Gear X ver. 1.5, Fist of the North Star and NeoGeo Battle Coliseum draw mostly sprites and should look right, but ask more of the CPU than this core gives (`workload.md`); the rest draw 3D scenes, which the 2D renderer shows wrong or not at all. In simulation Guilty Gear X 1.5, Fist of the North Star, NeoGeo Battle Coliseum and Knights of Valour boot and draw their first screens (1,200 fields each); the other fourteen were not run. ## Loading games: your MAME zips, as an arcade core The games load straight from MAME 0.289 ROM sets, merged or split, through an `.mra` file per game (the way MiSTer's arcade cores load), with nothing converted: | File | Where on the SD card | |---|---| | `releases/AtomiswaveDV1_.rbf` | `/media/fat/_Arcade/cores/`, its name kept (it must start with `AtomiswaveDV1_`) | | (or the release zip, `dist/Atomiswave_MiSTer_.zip` from `tools/package.py`: unzipped over the SD card's root it puts the core in `_Arcade/cores/` and the MRAs in `_Arcade/_Atomiswave/_DV1/`) | | | the folder `mra/_DV1/` (17 games; `_alternatives/` with five clones; `_preliminary/` with eleven preliminary games, ten of them not tested yet, and one clone) | a folder of `/media/fat/_Arcade/` whose name starts with `_`, for example `/media/fat/_Arcade/_Atomiswave/_DV1/` | | your `kofxi.zip`, `mslug6.zip`, ... and `awbios.zip` | `/media/fat/games/mame/` | Each build of the core has its own name and its own set of `.mra` files (since 2026-11-30): the DV1 / CRT build is `AtomiswaveDV1_.rbf` and its set `_DV1`, whose files ask for that core (`AtomiswaveDV1`). The HDMI build will be `AtomiswaveHDMI_.rbf` with a set `_HDMI`, so both can be installed side by side. Main_MiSTer starts the core in `_Arcade/cores` whose name is the `.mra`'s `` followed by `_` or `.` (any case; of several, the one last in alphabetical order: the newest date), wherever under `_Arcade` the `.mra` is. Both sets share each game's `.nvm` file and settings (their `.mra` names and set names are the same). Builds before `at` were named `Atomiswave_.rbf` and their `.mra` files asked for `Atomiswave`. Pick the game in the Arcade menu. Main_MiSTer opens the zips, checks every part's CRC, and writes the BIOS and the cartridge straight into DDR3, one chip (at most 32 MB) at a time, the gaps filled as MAME's driver fills them; the header with the game's decryption key comes last and starts the machine. Unzipping 320 MB (KOF XI, Samurai Shodown VI) on the ARM takes a while: not measured yet, expect tens of seconds. The `.mra` files are made by `tools/aw_rom/mkmra.py` from the same table as `mkgame.py` below; `mkmra.py --check` loads one in Python as Main_MiSTer would and compares every byte with `mkgame.py`'s image (all 28 games: equal). Each `.mra` names the game's buttons (``): the OSD's input mapping shows them by name and offers only the ones the game uses (cabinet buttons 1 to 5 are the core's A to E), with a default place on a pad (fighters: punches on Y and X, kicks on B and A, the fifth button on R). The names come from flycast's per-game input names, SNK's NeoWave panel page, the Amusement Journal's new-machine pages, the Sports Shooting USA and Ranger Mission manuals and fighting-game wikis (Dream Cancel, Dustloop, GBL). Guilty Gear Isuka's fifth button is Turn (Isuka replaced Dust with it); Guilty Gear X ver. 1.5 is given four buttons, as flycast has it. Animal Basket, Sushi Bar and WaiWai Drive keep A to E (on A, B, X, Y and R): no reliable description of their controls was found. The gun, wheel, trackball and touch-panel games (their controllers are not in the core yet) name only their buttons. The clones MAME 0.289 has are in `_alternatives/_/`, as in the owner's other cores: The King of Fighters NeoWave (Japan), NeoGeo Battle Coliseum (Japan) (the Japanese cartridges, their network data filled in), The Rumble Fish (prototype), The Rumble Fish 2 (prototype), Animal Basket (19 Jan 2005) and Sega Bass Fishing Challenge (the version before Version A). Each looks in its own zip, then in the parent's (merged sets keep the clones' files there). Since 2026-11-30 the ten games the owner has not tested for play (most need a gun, a wheel or a fishing reel) are in `_preliminary/`, with Block Pong-Pong (planes wrong, play slowish), their clone (Sega Bass Fishing Challenge) in `_preliminary/_alternatives/`; the README's games table gives every game's state. As MAME has it, the Atomiswave has no region setting: the BIOS (one Sammy BIOS) only boots the cartridge and checks the backup memory, and each game has its own test menu. ## The image files of earlier builds `tools/aw_rom/mkgame.py` makes the same memory contents as one file (a header, the BIOS and the cartridge region) from the same zips. The simulators load those, and `mkmra.py --check` compares with them. The core loads only `.mra` files: its "Load game" line for `.aw` images was taken out on 2026-11-29. ## Controls | MiSTer | Atomiswave | |---|---| | D-pad / stick | the joystick | | A, B, C, D, E | buttons 1 to 5 (BTN0, BTN1, BTN2, BTN3, BTN4) | | Start | start | | Coin | coin (counts once; held longer than 100 ms it is not counted again until let go) | | Test, Service | the board's test and service buttons (the OSD's Service menu line presses Test too; no default place in any game's MRA). The games' system menu (Sammy's "sx_SystemSetting") moves with Service and enters and leaves with Test, so map both in the OSD's input mapping: the MRAs give them no default place (as the owner's other cores do); the Service menu line enters the menu without them | Players 1 and 2 are on Maple buses 0 and 1. Guilty Gear Isuka's players 3 and 4 and WaiWai Drive's trackballs are not connected in this build. ## The menu - **Video:** 480i (default) or 240p, for a 15 kHz CRT; **480i fields**, **480i flicker filter** (on: the games' own vertical filter), both greyed out while 240p is chosen (they do nothing there). The DV1 / CRT build (the releases, `_DV1`) has no HDMI scaler, so it also leaves out what only the scaler uses: the **HDMI deinterlace**, **Aspect ratio** and **Scale** lines, and the scandoubler (31 kHz VGA output). An HDMI build, later, keeps them. - **CPU clock (overclock)**, a page of its own (since 2026-11-30, the owner's wording): **Clock** with `73.6 MHz: No OC (Safe)` (the default: a game with no settings yet starts on the clock timing analysis signs off), `90 MHz: Min OC`, `101 MHz: Avg OC` and `115.7 MHz: Max OC`, **Reset to apply**, and under them the owner's warning: above 73.6 MHz the CPU runs faster than the design is verified for, games may hang, restart or glitch (then lower the clock for that game); overclocking is generally safe to try, as only the clock is raised (no voltage), so it should not harm the MiSTer; use it at your own risk. **If a game hangs or restarts at a raised clock, switch the MiSTer off and on before playing on:** a CPU that fails at 115.7 MHz can leave the FPGA's way into memory stuck, and then every game (in this core or another) stops at the BIOS's "ERROR 00 MAIN MEMORY ERROR" until a power cycle; a reset or a reboot from the menu does not clear it (seen twice on the owner's board, 2026-11-30). (Before, 101 MHz was the default and first; settings saved then at 101, 73.6 or 90 come back one step different, those at 115.7 unchanged.) The clock is kept per game with the other settings and taken at the next reset (the OSD's Reset, or loading the game). 73.6 MHz is what timing analysis signs off; above it the CPU runs faster than the analysis guarantees, and how far a board goes is found by trying (HS3, which the CPU is built on, runs at 102.8 MHz on most boards by its author's report; the owner's board runs every game at 115.7, not at 125). A game that stops, restarts or shows garbage at one setting is set lower; the menu works whatever the CPU does. The CPU's clock comes from a PLL of its own (`rtl/cpu_clk.sv`), its output divider rewritten through MiSTer's PLL reconfiguration block while the machine is held in reset; the timers' 50 MHz tick follows. - **Autosave NVRAM** (On by default), **Save NVRAM**: the backup SRAM (128 KB: the game's settings, scores and bookkeeping) is kept on the SD card as `config/nvram/.nvm`, as in the owner's other arcade cores. Loading a game clears the SRAM and then loads the game's file if there is one. A game with no file starts with an empty backup memory, and the BIOS shows its "ALL BACKUP DATA WAS CLEARED" notice and sets it up, as on a new board. With Autosave On the SRAM is saved each time the OSD is opened after the game wrote to it. The games write it all the time, so that is nearly every opening while a game runs (128 KB each time). With Autosave Off it is saved only by Save NVRAM. The `.mra` files' `` asks Main_MiSTer for this (`rtl/aw_nvram.sv` moves the bytes between the SD card and DDR3). **Not working yet (found 2026-11-30):** the games still start with "ALL BACKUP DATA WAS CLEARED", so settings and scores are lost at each start. Measured on the board (KOF NeoWave, builds `at` and `ao`): the file does arrive in the SRAM (8.4 s after the load, a marker in it included), and about 5 s later, with the BIOS running, the whole SRAM goes to zero and the BIOS sets it up anew, even when the file was a copy of the SRAM of the game running a moment before (the same in KOF XI and Metal Slug 6: the wipe comes 5.2 s after the file, `../work/board6/nvsee.sh`). So the BIOS judges the backup lost for some other reason. Suspects: the AICA's clock starts at the same time (2026-01-01) at every start, where on the board it runs on its battery; and the BIOS chip is a flash the BIOS can write (MAME keeps it as NVRAM too), which this core treats as ROM. - **Service menu**: holds the Test button for a quarter of a second, as pressing it on the board does. The BIOS then opens its test menu (game settings, coin settings, input and screen tests, bookkeeping). The game's settings changed there go into the backup SRAM, and so into the `.nvm` file. - The OSD has no file line or empty rows at its top: games come from `.mra` files only (2026-11-29). - **Diagnostics** and **Memory cache** were taken out (2026-11-29) for the room they took, which the 115.7 MHz CPU needs: the debug builds' register log (`AW_DBGLOG`, `tools/board/README.md`) shows what the overlay did, and the second-level cache is always on. (Earlier builds had them: the overlay's twelve rows are in this file's history.) The LED is on while the game loads, then blinks with the fields drawn. ## What to expect - The CPU runs at 73.6 MHz in this build (its own clock; the rest at 81 MHz). On busy code that is about 37 million instructions a second with DDR3's delays: see `sh4.md` for the measurements and the estimate per game in the README. A frame that does not fit a field takes two, so heavy scenes run at half speed: most of KOF XI's and Samurai Shodown VI's fights still do (`system.md` counts the frames that fit), and scenes in KOF NeoWave and Guilty Gear Isuka may; loading takes about 2.5 times as long as on the original. - No sound effects from the AICA's DSP (reverb, echo): voices are heard as Flycast plays them with its DSP off. - The board's serial ID chip is not modelled (port A reads "fitted, data low"). - FSCA is computed (within 2^-20 of the sine), not Flycast's measured table. - **Starting a game is slow.** After the BIOS (its NOTICE screen and its own waits, several seconds as on the original), each game's start-up code clears its memory with the caches off, one longword at a time, fetching every instruction from memory too. Each of those accesses goes to DDR3 and back across the CPU's clock crossing (about 0.6 µs), so the screen stays black for a while: about 2 s for KOF XI, about 10 s for Metal Slug 6 (11 MB), measured in simulation. The original takes a fraction of a second. - The Atomiswave draws 640 × 480 progressive frames for its own 31 kHz output; this core shows them as 480i (each field every other line) or 240p. The BIOS's first screen on a new board (or after its backup memory was cleared) reads "NOTICE / ALL BACKUP DATA WAS CLEARED"; the backup memory lives in DDR3 and is not saved to the SD card, so expect it each time the core is loaded. - Timing is met on every clock in `Atomiswave_20261127m_DV1.rbf` (fitter seed 2; the least setup margin is 0.28 ns, on the CPU's clock) and in `Atomiswave_20261127m.rbf` (seed 1; 0.04 ns, on the system clock; the HDMI scaler's has 0.16 ns, the CPU's 0.23 ns). - The CPU's clock is a build switch too: `AW_CPU_90=1` or `AW_CPU_101=1` as a `VERILOG_MACRO` in the qsf (see the builds' table for what that means). - Two builds come from one source: with `set_global_assignment -name VERILOG_MACRO "MISTER_DEBUG_NOHDMI=1"` in `Atomiswave.qsf` (the line is there, commented out) the framework leaves the HDMI scaler out and the core is for direct video and the analogue output only (79% of the FPGA's logic, 448 of 553 block RAMs); without it the scaler is in (88%, 500 block RAMs). ## On the board so far (2026-11-24) | Build | What the owner saw | |---|---| | `b`, image files | Metal Slug 6 starts (slowly), BIOS and warning screens right, the attract loop runs; garbage pictures between scenes; KOF XI, Isuka and Animal Basket loaded after it: no signal, the OSD gone | | `c`, MAME zips through the `.mra` files | loading works; Metal Slug 6 and KOF XI run their attract loops with sound, no garbage pictures; KOF XI's demo fight is slow and its music ends before the pictures do (the game runs slower than real time); KOF XI stopped once at its title screen (not reproduced); Isuka and Animal Basket restart in a loop after the backup notice | | `d` | Isuka's and Animal Basket's restart after the notice is gone and every game but Salaryman Kintaro (black screen) shows pictures, but none keeps running: Samurai Shodown VI runs its attract demo and restarts after the title; WaiWai Drive restarts after its demo; Animal Basket goes white a little after the title; Sushi Bar stops with garbage blocks in the picture; Isuka stops on its INSERT COIN screen; Victory Furlong draws only a strip at the left; Metal Slug 6 changes its picture every 10 to 20 seconds (as in every build so far); a grey and yellow garbage picture after the backup notice in most games | | `e` | not tested: the SH-4 register read fault below, video memory cleared before the machine starts | | `f` (20261125) | `e`, and Holly's registers are no longer cached by the SH-4 (Sushi Bar's palette read-back); the DDR3 arbiter picks its write master a clock ahead (timing). Animal Basket, WaiWai Drive and Salaryman Kintaro run their attract loops right; Sushi Bar too, but for a slight flicker of the character icons on its records screen in 480i; Isuka runs, its demo at half to three quarters speed; Samurai Shodown VI runs with slowdowns; KOF XI stopped once at the title and once at the start of its demo fight, with slowdowns and music out of step; KOF Neowave starts slowly and stops at the AW-Net logo; Victory Furlong stops at its title; Metal Slug 6 still very slow; every game shows a garbage picture after the backup notice. Nothing played yet | | `g` (20261125) | a second-level cache for main RAM (below), and the picture is black while the game has VO_CONTROL's blank bit set. The garbage picture after the notice is gone. Animal Basket, WaiWai Drive, Sushi Bar and Salaryman Kintaro look right. KOF XI no longer stops and is faster, Isuka plays well, neither at full speed. KOF Neowave gets further and stops in its attract demo before the title. Samurai Shodown VI is as slow as those and stops at the end of its demo fight. Victory Furlong runs; its race demo (3D) is drawn wrong: grey blocks for the sky and stands, green lines across the picture. Metal Slug 6 a little faster, still about a frame every 5 seconds on its title screen, and it stops on the rankings screen | | `h` (20261126) | the SH-4 predicts its branches (a 256-entry target table; `system.md`), the menu's Memory cache switch, eleven Diagnostics rows. For the owner's `g` findings: Metal Slug 6 stops at its rankings screen every time, idling (the PC stays in the game's wait loop, no new pictures, sound runs), and its title updates about once in five seconds; Samurai Shodown VI and KOF NeoWave stopped once each and not again; Victory Furlong's 3D race demo is drawn wrong (3D, left for later); KOF XI, Isuka and Samurai Shodown VI are not at full speed. Not yet tested | | `i` (20261126) | `.mra` files for all 28 games; the SH-4 no longer waits for the return address after a call (about 2% on busy code); the second-level cache reads four lines ahead on a walk through memory (Metal Slug 6's loading); the interrupt request is registered on its way into the CPU (timing). Metal Slug 6's rankings stop and slow title are not fixed in it: the slow title shows in simulation (the game's main thread waits five seconds a picture, cause not found yet). The owner's test, all 28 images: **right but slow** Fist of the North Star (50-60%), KOF XI (50-60% in the gameplay demo, slowdowns in the attract loop), KOF NeoWave (about 75% and smooth once loaded; sprite glitches over a character in the gameplay demo), Guilty Gear Isuka (80-90% in the attract loop, 50-60% in the gameplay demo, where the sound is muffled), Samurai Shodown VI (70-80% and 50%), and very slow: Dolphin Blue (some glitches, perhaps its 3D objects), NeoGeo Battle Coliseum, The Rumble Fish 1 and 2, Guilty Gear X ver. 1.5; **as good as before, perhaps faster** Animal Basket, WaiWai Drive, Salaryman Kintaro, Sushi Bar (its title glitches as it fades at the start); **Metal Slug 6** as slow as before but past the rankings (the screen itself was not seen); **play, 3D parts wrong** Knights of Valour, Demolish Fist, Maximum Speed, Block Pong-Pong; **boot, pictures preliminary (3D)** Extreme Hunting, Sega Bass Fishing Challenge, Sega Clay Challenge, Ranger Mission; **stop** Dirty Pigskin Football (the picture hangs at the backup screen with the music playing, then changes rarely), Extreme Hunting 2 (error 109, NETBD NOT RESPOND), Faster Than Speed (a grey and yellow screen after the backup screen), Victory Furlong (as before) | | `j` (20261126) | the second-level cache is on the CPU's clock (a line found there is 2 clocks away, it was 9), has two ways, and every miss brings four lines from DDR3 in one burst; the operand cache is 32 KB; the FPU adds in 4 clocks and multiplies in 2 (7 and 5); a twelfth Diagnostics row (the CPU's reads of DDR3). In the bench KOF XI's heaviest frame needs 17% fewer clocks than in `i` and Samurai Shodown VI's 13% (1.69M and 1.67M; a field is 1.23M), so 11% of KOF XI's fight frames fit a field where 6% did: the fights still run at half speed (`system.md`). The source is commit 457b263, fitter seed 1. Not yet tested | | `k` (20261126) | two files of one source: `Atomiswave_20261126k.rbf` with the HDMI scaler, and `Atomiswave_20261126k_DV1.rbf` for **direct video and the analogue output only**, built without the scaler (the framework's `MISTER_DEBUG_NOHDMI`; the HDMI socket carries direct video whatever MiSTer.ini says, for a DAC or a scaler that takes it), which has more timing margin. The SH-4's own caches fill behind the pipe (it runs on while a line comes in, a dirty line and a store queue are written out in the background); a second-level miss brings eight lines, and the seven read ahead arrive while the CPU is already answered; a line found in the second level is there the next clock. In the bench KOF XI's heaviest frame needs 11% fewer clocks than in `j` and Samurai Shodown VI's 9% (1.50M and 1.52M; a field is 1.23M): about three in ten of KOF XI's fight frames fit a field where one in ten did. The build with the scaler did not meet timing in eleven fitter seeds before the change of commit 2d030e4 (the CPU clock's longest path); with it the first seed met. The source is commit 2d030e4, fitter seed 2 for both. Not yet tested | | `l` (20261127) | `Atomiswave_20261127l.rbf` (HDMI scaler) and `Atomiswave_20261127l_DV1.rbf` (direct video and analogue only). Two faults of `j` and `k` fixed, both found and checked on the owner's board over SSH (screenshots): the SH-4's operand cache is 16 KB again, as the chip's (with 32 KB Animal Basket's title had a scrambled sprite and Metal Slug 6's demo scrambled backgrounds; build `i` did not), and the renderer reads textures from a copy of video memory taken when a render is asked for (KOF NeoWave's fighters came out as a mix of two frames' sprites in every build so far). The smaller cache costs 2% in the bench's heavy frames (KOF XI 1.53M clocks, Samurai Shodown VI 1.55M). Metal Slug 6's demo still draws a picture only every few seconds: it does a 30 Hz frame's work (about 900,000 instructions) in one burst and the core needs 1.27 fields for it (`system.md`). The source is commit f519ab9, fitter seed 2 for both | | `m` (20261127) | `Atomiswave_20261127m.rbf` and `Atomiswave_20261127m_DV1.rbf`: `l`, and the palette a picture is drawn with is the one of the moment the picture is handed over (Sushi Bar's first logo faded in bands of two palettes: one capture in two on the board with `l`, none in twelve with this). A tour of the games on the board with it: The Rumble Fish's stage backgrounds are scrambled in its fights (open); the 3D games as before. The source is commit 5bf744f; fitter seed 1 with the scaler, 2 without | | `n` (20261127) | `Atomiswave_20261127n_DV1.rbf` only so far (direct video and analogue): `m`, and an operand fill takes a line the second-level cache has two longwords a beat, which gives back the 2% the 16 KB cache cost (KOF XI's heavy frame 1.49M clocks, Samurai Shodown VI's 1.52M). The same source with the HDMI scaler ran seven games on the board but has not met timing in eight fitter seeds. The source is commit 3817240, fitter seed 2 (least setup margin 0.25 ns) | | `n` at 90 and 101 MHz (20261127) | `Atomiswave_20261127n_90MHz_DV1.rbf` and `Atomiswave_20261127n_101MHz_DV1.rbf`: build `n` with the CPU's clock at 810 MHz / 9 or / 8 instead of / 11 (`AW_CPU_90`, `AW_CPU_101`; the timers' tick follows). **Experimental: above what timing analysis guarantees** (it reports the CPU's clock 2.2 ns and 2.8 ns short at its worst corner, a slow chip at 85 C; 79 MHz is what it signs off). The SH-4 here is built on HS3, whose author measures real boards running it at 100 MHz and more where analysis gives 78; a board that passes at one temperature may not at another, and nothing here tests the paths the way his stress test does. On the owner's board both ran every game tried for 15 minutes and more with right pictures. Measured there with a debug build's counters: 19% and 35% more instructions a field than at 73.6 MHz (memory's waits do not get shorter); KOF XI's fights have a new picture on 52-57% of the fields at 73.6 MHz, 56-72% at 90, 72-79% at 101; Metal Slug 6's heaviest demo stretch is still a picture every four fields at 101. Metal Slug 6's picture stays on its WARNING screen with the 101 MHz file (the owner's report, reproduced), where the 90 MHz file and a 101 MHz debug build of the same source run the game through. That was taken for the clock's limit; it was the renderer dropping the pictures the game builds a field ahead, which a faster CPU makes it do more often (`system.md`, fixed after `o`) | | `o` (20261127) | `Atomiswave_20261127o_DV1.rbf` (73.6 MHz, timing met) and `Atomiswave_20261127o_90MHz_DV1.rbf` (experimental, as `n` at 90 MHz): the sound chip's voices no longer lose sample ticks. Every wave read was a DDR3 round trip and a pass of many voices outlasted a sample, whose tick was then dropped: slow, dull sound in the heavy games (measured on the board: The Rumble Fish's fights had a pass on 54-82% of the ticks, Knights of Valour 65-78%, Dolphin Blue 83-90%; all 100% now, Guilty Gear Isuka's fight demo too). The source is commit ad8ff55, fitter seed 2 for both | | `p` (20261128) | `Atomiswave_20261128p_116MHz_DV1.rbf`: the CPU at 810 MHz / 7 = 115.7 MHz (`AW_CPU_116`), **experimental, above what timing analysis guarantees** (4.6 ns short at the slow corner; 73.6 MHz is what it signs off), and two fixes. The renderer keeps a picture the game built a field before rendering it (`system.md`): Metal Slug 6 does that nearly always and KOF XI in some stretches, and those pictures were dropped, which was Metal Slug 6's "a picture every few seconds" in every build so far and its frozen picture at 101 MHz and above. The SH-4 runs `FMOV @(R0,Rm)` register pairs (The Rumble Fish 2 stopped after its title). The owner's test of the same build without the second fix: Metal Slug 6 90-100%, no glitches; KOF XI about 100% (a short stall on the "next stage" screen before the demo fight); KOF NeoWave 100%, its demo 90-100%; Fist of the North Star 90-100%, its demo too; Guilty Gear X 1.5 100%, its demo 80-90%; Isuka 100%, its demo about 70%; Samurai Shodown VI about 90% on the title and rankings, 70% in the demo; The Rumble Fish 90-100%, its demo about 50% (3D backgrounds); Dolphin Blue 100% where it is 2D, its 3D intro slow and its 3D effects scrambled. The Rumble Fish 2 (checked over SSH) runs its demo fight, records and title loop, its 3D backgrounds scrambled. Other clocks on the owner's board: at 125 MHz (own PLL) Metal Slug 6 and KOF XI run but Isuka restarts about once a minute; at 135 MHz the CPU does not start. The source is commit a3af6a2, fitter seed 2 | | `q` (20261128) | `Atomiswave_20261128q_116MHz_DV1.rbf`: `p` and the second-level cache reading down (a backward copy's misses fetch the eight lines below, `system.md`). Measured on the board with a debug build: Isuka's demo fight did 7,800 DDR3 reads in a busy field, now 3,400, its busy fields 1.80 clocks an instruction (2.30), 29% more instructions in them, and two of the demo's stretches a picture on 73-91% of the fields (59-75%). All 18 group 1 and 2 games ran their attract loops right with it on the owner's board (frames 10 s apart, checked over SSH). Also measured, at 115.7 MHz: the fighters' slow demo fights are CPU-bound (the renderer is never late), The Rumble Fish's and Dolphin Blue's 3D parts are limited by both. 120 MHz ran all 18 games but one failed to start once; 125 MHz restarts Isuka. The source is commit 0f35090, fitter seed 2. The owner's test: every game tried looked right, no big change in speed, Samurai Shodown VI clearly faster | | `r` (20261128) | `Atomiswave_20261128r_DV1.rbf`: `q` with the CPU clock chosen in the OSD, **CPU clock (at reset)**: 101 MHz by default, 73.6, 90 or 115.7 MHz at your own risk (above the 73.6 MHz that timing analysis signs off), kept per game in its settings file and set while the machine is held in reset (its own reconfigurable PLL, `rtl/cpu_clk.sv`). Metal Slug 6 reached its WARNING screen 43.8 s after starting at 101 MHz, 41.8 s at 115.7 and 49.5 s at 73.6 on the owner's board. The source is commit f4090e4, fitter seed 2 (the machine's 81 MHz clock 0.12 ns short at the slow corner on two paths) | | `s` (20261128) | `Atomiswave_20261128s_DV1.rbf`: `r` with a faster multiplier path in the CPU (`sh4.md`): a multiply no longer holds the pipeline while it works, and STS takes a 32x32 product as it is written. Measured in the recordings of the demo fights: the busy code takes 7.5% fewer clocks in Guilty Gear Isuka and 4.5% fewer in Guilty Gear X 1.5 (Sammy's library scales with MUL.L and STS MACL in its drawing code; other games use it less). All 18 group 1 and 2 games ran their attract loops right with it on the owner's board at 101 MHz (frames 10 s apart, checked over SSH). The source is commit 2be0b52, fitter seed 2 (the CPU's clock 0.18 ns short of 73.6 MHz at the slow corner, on the instruction cache's tags to the branch target; it runs at 101 MHz or more anyway). The owner's test: all the 2D fighters run quite smoothly, clearly faster and smoother than before (which and how much not measured); Metal Slug 6 played through its first stage, a good experience, the "train with legs" scene (also in the demo) the heaviest, still playable | | `t` (20261128) | `Atomiswave_20261128t_DV1.rbf`: `s` with the OSD's Reset working (its line came after the joystick lines and selecting it did nothing; the keyboard's reset combination worked): a new **CPU clock (at reset)** now takes effect at Reset, without saving the settings and loading the core again. Metal Slug 6 reached its WARNING screen in 43.6 s at 101 MHz on the owner's board. The source is commit 203c6dc, fitter seed 2 (timing met on every clock) | | `u` to `y` (20261128-29) | Test builds on the owner's board over SSH, not released. `u`: `t` with the 3D parts' fixes (mipmapped VQ textures, intensity polygons with an offset colour, `renderer2d.md`) and an OSD Fast boot the owner did not want (taken out again). `v`: the same without it. `w`: `v` and 480i drawing that keeps the two fields' pictures together (Dolphin Blue's demo showed lines of pictures seconds apart); timing missed by 0.19 ns on the CPU's clock. `x`: `w` and 511 entries a tile (black squares around Dolphin Blue's ships in its intro, scenery through its black bars; both gone on the board), timing met. `y`: `x` with depth per pixel and 1023 entries a tile; 0.14 ns short on the CPU's clock at 73.6 MHz. **At 115.7 MHz `x` restarts KOF XI in its attract** (at 101 MHz it plays; `t`, `v` and `y` play it at 115.7): the analysis signs the CPU off at 73.6 MHz only, and how far above that a build runs is a matter of its placement, which its slack at 73.6 does not tell. So a release is first run on the seven games the owner keeps at 115.7 (`../work/board6/qual.sh`) | | `z` (20261129) | `Atomiswave_20261129z_DV1.rbf`: `t` with the 3D parts drawn far better and faster (`renderer2d.md`): mipmapped VQ textures and intensity polygons with an offset colour (The Rumble Fish's and Demolish Fist's backgrounds, Dolphin Blue's dolphin); 480i drawing that keeps both fields' pictures together (Dolphin Blue's demo); 1023 entries a tile (the black squares around Dolphin Blue's ships, scenery through its black bars, a black box beside Demolish Fist's helicopter); depth per pixel for 3D triangles (Demolish Fist's trees and water); the walker passing outside pixels 8 or 4 at a time (Dolphin Blue's heaviest 3D frame 2.16 -> 1.48 million clocks a field, Sushi Bar's 0.91 -> 0.62); the MRAs' button names. Run on the owner's board at 115.7 MHz for two and a half minutes each in the seven games kept there (KOF XI, Animal Basket, Dolphin Blue, Fist of the North Star, Knights of Valour, Samurai Shodown VI, KOF NeoWave): all play their attract loops. Still open in the 3D parts: triangles with a corner beyond 1,024 pixels are left out (black wedges in Demolish Fist's floors; fixed since, up to 4,096), no perspective in the textures. The source is commit f106a98, fitter seed 2 (timing met on every clock) | | `aa` to `ag` (20261129) | Test builds after `z`, not released. `aa`, `ab`: the floor wedges and perspective; `ab` missed the system clock by 1.6 ns (the perspective arithmetic in one clock, the chip 89% full), fixed by two more stages and a buffer before the texture unit (`ac`: 0.14 ns short), then a smaller list builder. `ad`: timing met, but at 115.7 MHz the CPU hung every game just after the BIOS (at 101 MHz it plays): the CPU's margin was the lowest yet. `ae`: the record unpacking overlapped. `af`: the CPU's longest paths shortened (late enables as late selects, `sh4.md`) and the bridge's token registered: the CPU's margin the best yet, the system clock 0.08 to 0.68 ns short in four seeds, mostly render done's delay. `ag`: that delay worked out ahead | | `ag` (20261129) | `Atomiswave_20261129ag_DV1.rbf`: `z` and (`renderer2d.md`) triangles with corners out to 4,096 pixels (Demolish Fist's floor wedges gone), perspective-correct textures, a merge sort of the translucent entries (Demolish Fist's heavy frames up to 25% faster), the next record unpacked while the last primitive drains (3D frames 9-10% faster, 2D 1-4%); the CPU's fetch paths shortened for more margin above 73.6 MHz. Run on the owner's board at 115.7 MHz in the seven games kept there: all play their attract loops. The source is commit ad1e75d, fitter seed 1 (timing met on every clock: CPU 0.38 ns, system 0.24 ns to spare). The owner's test: **right** KOF NeoWave, Fist of the North Star, Animal Basket, Sushi Bar, WaiWai Drive, Salaryman Kintaro; KOF XI (a slight slowdown on the "next stage" screen before the demo fight); Metal Slug 6 (perhaps slower in the "train with legs" scene); both Guilty Gears (sound and pictures right, the demos close to full speed); Samurai Shodown VI (its demo fights 70-90%); **3D right or nearly, slow** Dolphin Blue (its pictures nearly perfect; the intro and demo sluggish, the rankings' 2D at full speed); Knights of Valour (much faster; black planes coming and going from the corners in the intro, the sound breaking up under the IGS logo, the demo fight slow); The Rumble Fish 1 and 2 (backgrounds at full speed but the fighters about 20%, little faster at 115.7 MHz; the sound distorted at times in the demos); Demolish Fist (intro 50-60%, a few black planes and boxes; the demo's pictures right but 15-20%); Victory Furlong (glitching planes, the race demo about 30%); NeoGeo Battle Coliseum (speed and sound right; black boxes, top-to-bottom tearing lines and black planes in the demo fight); Block Pong-Pong (pictures and sound good, its play slow, perhaps the ball missing, some planes wrong); the rest boot and play with many faults | | `ah` to `ak` (20261129) | Test builds after `ag`. `ah`, `ah2` (three seeds): the changes below in earlier states; at 115.7 MHz KOF XI, Guilty Gear Isuka, Fist of the North Star and The Rumble Fish 2 stopped changing their pictures within a minute (`../work/board6/screen.sh`, the four games that stopped first). `ai`: released, below. `aj`: `ai` and an entry cache in the list builder's write combiner (93% of the chip): it stopped in the same screen. `ak`: `aj` without the Diagnostics overlay and the Memory cache switch, to free room; the room did not come back (93%) | | `ai` (20261129) | `Atomiswave_20261129ai_DV1.rbf`: `ag` and, for the slow 3D scenes, the list builder 2.4-2.7 times faster (the heaviest frames in million clocks: Demolish Fist 3.09 -> 1.17, Dolphin Blue 2.07 -> 0.85, The Rumble Fish's fight 0.84 -> 0.39; `renderer2d.md`), its writes gathered into bursts, triangles with corners out to 32,768 pixels, and FIPR and FTRV computed as the chip does (`sh4.md`: FTRV 89 -> 14 clocks, FIPR 26 -> 11, every result the chip's to the bit). The captured 2D frames come out as in `ag`. Qualified at 115.7 MHz on the owner's board in all 27 games the owner runs there (`../work/board6/qual.sh`: each started and watched for 15 frames 10 s apart): 25 show 12 to 31 different pictures; Faster Than Speed and Maximum Speed wait at their controller setup screen for the wheel the core does not have yet. The source is commit f0e54e7, fitter seed 1 (the CPU 0.41 ns short at 73.6 MHz, which has not told which builds run at 115.7; the system clock met with 0.05 ns to spare). The owner's notes, watching its qualification at 115.7 MHz: **right** Animal Basket, KOF NeoWave, Guilty Gear Isuka and X 1.5, Metal Slug 6, NeoGeo Battle Coliseum, Salaryman Kintaro, Sushi Bar, WaiWai Drive; KOF XI (the slight slowdown on the "next stage" screen still there); Fist of the North Star (its intro music stopped midway once, as once before); Samurai Shodown VI (its play perhaps not quite full speed); **faster, not yet full speed** Dolphin Blue (much faster, its play demo still slowish); The Rumble Fish 1 and 2 (everything right, the fights about 60%, was 20%; RF2's sound distorted now and then in the demo); Demolish Fist (the demo about 50%, was 15-20%, the intro faster; a black box on the helicopter by the sun and a black plane flashing in the intro); Victory Furlong (intro and title right, the race demo about 50%, small glitches); Extreme Hunting (the intro a little slow, the play demo at full speed); **faults** Knights of Valour (nearly right, but the IGS logo's sound still cut, a small black plane in the tower intro, and the play demo ended in a line of text on a black screen, the game's own assertion message, while its music played on: the CPU stopped on one of the game's checks; new in `ai`); Block Pong-Pong (something missing, perhaps the ball; planes wrong); Dirty Pigskin Football (intro not full speed, play slow, its floor and other parts glitched in some stages); Ranger Mission (its play demo quite slow, pictures and sound right); Sega Bass Fishing Challenge (much faster than before, many glitches); Sega Clay Challenge (black planes in the play demo, its speed good); Sports Shooting USA (the intro slow and its music stopping, play a little slow) | | `al` to `an` (20261129-30) | Test builds with NVRAM. `al`: `ak` and NVRAM, the Service menu and the OSD without the `.aw` loader or empty rows; at 101 MHz it played KOF XI, at 115.7 it hung every game of the screen (95% of the chip). `am`: `ai`'s renderer (the entry cache taken out again) with the same; both seeds missed the system clock by 2.0 and 2.4 ns (the texture filter's last stage placed as one multiplier into the next: rewritten). `an`: `am` with that fixed, the DV1 build without the scaler's parts, the clones' MRAs; both seeds met timing at 73.6 MHz, seed 2 hung half the screen at 115.7 and seed 1 passed it, then 6 of the 27 games (KOF NeoWave, NGBC, Victory Furlong, Extreme Hunting, Bass Fishing, Clay Challenge) stopped at their logos in the qualification. 115.7 MHz is a matter of each placement: the analysis signs the CPU off at 73.6 only | | `ao` (20261130) | `Atomiswave_20261130ao_DV1.rbf`: `ai` and (`core.md`, the menu) **NVRAM**: the backup SRAM kept on the SD card per game (Autosave NVRAM, Save NVRAM; the `.mra` files' ``), the **Service menu** line, the OSD without the `.aw` loader, the empty rows, Diagnostics and Memory cache, and in this DV1 build without the HDMI deinterlace, Aspect ratio and Scale lines and the scandoubler; the texture filter's last stage rebuilt for timing (pictures equal to the bit); the clones in `releases/mra/_alternatives`. Qualified at 115.7 MHz on the owner's board in all 27 games (`qual.sh`: 15 frames 10 s apart each; the two driving games wait at their wheel setup), after a 10-game screen with Knights of Valour's attract for 4 minutes (no `hyinfo.c` stop). The source is commit 329b95e (the CPU's paths constrained for 115.7 MHz: 4.69 ns short there at the slow corner, +0.25 ns at 73.6), fitter seed 1; the system clock met with 0.29 ns to spare | | `ap` to `as` (20261130) | Test builds after `ao`, not released yet. `ap`: `ao` and the CPU clock page with the owner's labels in ascending order (73.6 MHz the default), its overclocking note, the 480i lines greyed out in 240p; seven fitter seeds, with and without the 115.7 MHz constraint of 329b95e (it made no visible difference on the board: of the builds with it 2 of 4 passed the screen, without it 1 of 4). A 10-game screen at 115.7 (`../work/board6/screen10.sh`: the ten games that stopped first on some build, then Knights of Valour's attract for 4 minutes) passed seeds 5 and 6. `aq`: `ap` and the sound CPU's data cache (256 entries: 500 ALMs; then 64). `ar`: also the list builder's float colours, the sub-pixel cull and the far corners (`renderer2d.md`): 99% of the chip; the far corners (974 ALMs, only Knights of Valour's tower sky) taken out again. `as`: `ap` with float colours (Block Pong-Pong's ball and shadows, Bass Fishing's and other 3D games' such polygons), the sub-pixel cull (Demolish Fist's black box by the sun) and the 64-word sound data cache: 93% of the chip. **The board's DDR3 writes from the FPGA stopped working at about 05:40** (every build, `ag` included, then stops at the BIOS's "ERROR 00 MAIN MEMORY ERROR"; Linux's own test of the same memory passes; a soft reboot did not help: it needs a power cycle), so `ap5`'s qualification and the debug build's sound measurement from then on mean nothing | | `at` (20261130) | `AtomiswaveDV1_20261130at.rbf` (the first under the DV1 build's own name, its `.mra` files in `releases/mra/_DV1`): `ao` and the **CPU clock** page (the owner's labels in ascending order, 73.6 MHz the default, the overclocking note), the 480i lines greyed out in 240p, the list builder's float colours (Block Pong-Pong's ball and shadows, such polygons in the other 3D games) and sub-pixel cull (Demolish Fist's black box by the sun), the sound CPU's 64-word data cache (Knights of Valour's IGS logo sound, not yet heard on the board), and the NVRAM's watchdog: the core never holds Main_MiSTer for long, even with the memory path wedged (before, a stuck clear froze the MiSTer's menu until a reboot). The MRAs of its time give Test and Service no default place in any game and put the ten untested games in `_preliminary/`. Qualified at 115.7 MHz on the owner's board in all 27 games (`qual.sh`: 15 frames 10 s apart each: 15 to 31 different pictures, Knights of Valour's 30 with no `hyinfo.c` stop; the two driving games wait at their wheel setup), then a health check (Animal Basket on `ao`, the MiSTer's command pipe). The source is commit d7a85ed, built without the 115.7 MHz constraint of 329b95e, fitter seed 2: timing met (the CPU 0.71 ns to spare at 73.6 MHz, the system clock 0.02 ns), 94% of the chip (39,387 ALMs) | | `au` (20261130) | `AtomiswaveDV1_20261130au1.rbf` on the board, a release candidate: `at` and 240p's lines gone (`renderer2d.md`: a primitive's top edge on a sampled line filtered in the texel row above its picture; the list builder now records the texel rows the corners' v spans and the tile core keeps v within them). Checked on the owner's board: KOF NeoWave's attract in 240p, the line beside Kyo in the capture where the owner saw it gone, that row now equal to its neighbours. Three fitter seeds: seed 2 missed the CPU's clock at 73.6 MHz by 1.06 ns; seed 1 passed the 10-game screen at 115.7 MHz (Knights of Valour's attract for 4 minutes: 47 pictures, no `hyinfo.c` stop) and the qualification of all 27 games (`qual.sh`: 12 to 31 different pictures each, Knights of Valour 30, no stop; the two driving games at their wheel setup; no MAIN MEMORY ERROR), then the health check. The source is commit 06c7b12 (the renderer's fix a6ec8e4; comments only since), built without the 115.7 MHz constraint, fitter seed 1 (`Atomiswave.qsf` now has it, with the DV1 switch on): timing met at 73.6 MHz (the CPU 0.36 ns to spare, the system clock 0.58 ns), 93% of the chip (39,141 ALMs) | | `av` (20261130) | Test builds after `au`, not released. On `au1` the owner saw, through direct video (a RetroTINK 4K on the HDMI port, to an LCD), a green shadow by the OSD's letters and a shaky 480i picture, less so on the CRT (the analogue output), where `at` was clean: without the scaler, sys_top's direct-video data is a plain chain of registers, which synthesis folds into a RAM shift register (`dv_d1_rtl_0`), so `HDMI_TX_D` comes from a RAM output that cannot use the pins' I/O registers, its timing against `HDMI_TX_CLK` a matter of the placement (the ADV7513 samples six times a pixel: a bit a clock late shows as a sixth of a pixel's fringe). `av` kept the chain's last stage a register (`AUTO_SHIFT_REGISTER_RECOGNITION OFF` on `hdmi_out_d`): all 24 data pins packed into the I/O cells in every seed, and `av2`'s picture right on both outputs. But it cost about 650 ALMs (95% of the chip): of six seeds, four missed the CPU's clock at 73.6 MHz, and `av2`, `av4` and `av5` froze KOF XI or Knights of Valour at 115.7 MHz (a control run of `au1` played on). The setting is left in `Atomiswave.qsf` as a comment; a leaner way is for later | | `au6` (20261201) | `AtomiswaveDV1_20261130.rbf`, the first release: `au`'s source and settings, fitter seed 6. Of `au`'s other seeds, `au3` (direct video clean) hung KOF NeoWave at boot at 115.7 MHz, `au2` and `au4` missed timing; `au5` met it, untried. `au6` passed a quick check (KOF XI, KOF NeoWave, Knights of Valour) and the qualification of all 27 games at 115.7 MHz (15 to 31 different pictures each; the two driving games at their wheel setup), Knights of Valour's attract for 4 minutes (48 pictures, no `hyinfo.c` stop), no MAIN MEMORY ERROR, then the health check. Timing met at 73.6 MHz (the CPU 0.12 ns to spare, the system clock 0.24 ns), 93% of the chip (39,077 ALMs). Its direct video checked by the owner: the OSD and 480i clean on the RetroTINK 4K, 240p free of lines (KOF NeoWave's intro); the owner: "looks great, as is the speed at 115.7 MHz" | What `d` showed, and `e`: recordings of Flycast's SH-4 (4 million instructions each, at nine points of every game's attract loop) replayed through the core found one fault in it. After a delayed branch whose delay slot is a register-pair FMOV, the instruction at the branch target could read its registers at the delay slot's register numbers; it depends on cache timing, and Sammy's library (Animal Basket, WaiWai Drive, Sushi Bar, Isuka) has that sequence in its matrix copy (`system.md`). With it fixed, the recordings that have been replayed match at three memory timings, except one of Sushi Bar's (late in its attract loop), which is still open. The garbage picture: between the notice and their first picture the games show a frame buffer nothing has written, which on the board was whatever DDR3 held; video memory is now cleared at every start. Not explained yet: Salaryman Kintaro's black screen (in simulation it draws its credit line), Victory Furlong's strip, Metal Slug 6's speed, and whether the restarts of Samurai Shodown VI and WaiWai Drive are the same CPU fault. Isuka's and Animal Basket's restart: their interrupt handler (Sammy's library; KOF XI and Metal Slug 6 use another) saves SGR with `STC.L SGR,@-R15`. The core had neither SGR nor DBR, so that was an illegal instruction with SR.BL set, which resets the SH-4. With the two registers both games reach their title screens in simulation (700 fields), showing the Atomiswave logo on the way; Flycast shows that logo for Isuka too and not for KOF XI or Metal Slug 6. Animal Basket's picture is turned a quarter: the game is made for an upright monitor, and the core has no rotation. ## What was checked before the build Every block against Flycast or MAME in its own bench (`sim/`), and the whole machine from power-on in `sim/sys/tb_aw.cpp`: see `system.md`. In that simulation KOF XI goes from power-on through the BIOS, loads from the cartridge, starts its sound CPU, shows its WARNING screen for as long as Flycast does and reaches its attract mode with the coin pressed counted ("CREDIT(S) 1"); Metal Slug 6 gets through its start-up and is loading when the run ends. Six bugs that only the whole machine showed were fixed on the way (`system.md`, "KOF XI from power-on"). Since then the SH-4 has SGR and DBR (found on the board, see above).