# Atomiswave on the DE10-Nano: resource budget and architecture verdict Written 2026-11-22 from the workload profile (`workload.md`) and from fit reports of the owner's other cores. No Atomiswave RTL exists; every size below is an estimate with its anchor named. Two anchors were compiled here: the HS3 SH-3 core and the polly2-rtl PowerVR2 core. ## Verdict **A full-RTL Atomiswave core does not fit the DE10-Nano.** The estimate was about 59,000 ALMs against 41,910 (140%). With the one existing PowerVR2 core for this board put in at its measured size, the total is about 71,000 (170%): that renderer alone is 36,272 ALMs, 87% of the device, in a form already cut down from the real chip. The CPU clock is a second limit for the heavier games only: an open SH-3 core runs at 102.8 MHz on this board, which covers the 16 lighter games, while the other 12 need about 150 MHz or more. | Question | Answer | |---|---| | Does the logic fit? | No. Estimated at 43–75k ALMs (mid 59k) against 41.9k. With the measured renderer in place of the estimated one: 63–80k, mid 71k. | | Is the CPU fast enough? | For the lighter games, yes in practice. HS3, an open SH-3 core, runs at 102.8 MHz and close to one instruction per clock in a released core on this board, although static timing gives 74–82 MHz. That covers the 11 games that need 100 MHz, and 5 more with brief slowdowns. The other 12 need about 150 MHz or more, which nothing here reaches. The SH-4's FPU and store queues are not in HS3. | | Is memory bandwidth enough? | Yes, with a 32 KB texture cache and with RAM split across SDRAM and DDR3. | | Do per-game builds help? | Not enough. A build trimmed for the lightest 2D games was estimated at 46–51k ALMs; with the measured renderer it is about 64–67k. The CPU clock those games need (35–90 MHz) is within what HS3 reaches. See option 4. | | Does a 480i target help? | It halves the renderer's pixel work and lets a CRT-only build drop the HDMI scaler, but about 15k ALMs remain for a renderer whose one implementation is 37k. See "Lower output resolution". | | Is a 2D-only renderer enough for some games? | Probably. Ten games draw almost only flat sprites and are within reach of a 100 MHz CPU. Its two blocks exist as RTL: a list builder (2,167 ALMs) and a tile core (3,220 ALMs), closing at 81 MHz. In simulation they draw real frames of all ten games from the polygon stream the game sent, each within a field's time (the heaviest takes 94% of it), at 480i or 240p with bilinear filtering, and agree with MAME's renderer on 99.98% of the pixels. A first board build plays captured frames through them. A CRT-only core around them adds up to about 30.5k ALMs on paper (73%). See `renderer2d.md`, `player.md`. | | Does a hybrid work? | For very few games. Measured on the board, the emulated SH-4 side alone exceeds a frame for most games even with idle loops skipped; only Animal Basket has clear room among the 17 measured so far. See "Hybrid: the software half measured on the board". | | Do native ports on a GPU core work? | Plausibly, and it is the only route here that avoids both limits: the game's own code compiled for the ARM, drawn by a general 3D core in the FPGA. It exists for one game of Sega's sister arcade board. The result is a set of per-game ports, not an Atomiswave core. See option 5. | Recommendation: a core for the whole library is out of reach on this board. Both large blocks are now measured. The CPU fits and is fast enough for the lighter games. The full renderer leaves no room for a CPU and a sound chip beside it. What remains open is a 2D-only core at 480i for the ten flat games: its drawing core is built and small, and the rest is unproven (`renderer2d.md`). The other options are at the end. ## Size anchors Measured ALM figures from fit reports on the same FPGA (5CSEBA6, Quartus 17.0): | Block | ALMs | Clock | Source | |---|---|---|---| | MiSTer framework (`sys_top` without `emu`: scaler, audio, HPS I/O) | 6,000–7,000 | | Gaelco 3D, Ultra Sports, CoJag | | PowerPC 403 core, no FPU | 8,900 | | Ultra Sports `ppc403_core` | | R3000 core, no FPU | 2,300 | | CoJag `cojag_r3000` | | TMS320C31 floating-point DSP core | about 12,400 at first fit | 96 MHz, 4–8 clocks per instruction | Gaelco 3D plan | | ARM9-class core (Chisel) | | Fmax 48 MHz, run at 40 MHz | PGM2 plan | | fx68k | 2,100 | | Ultra Sports sound | | Perspective-textured polygon rasteriser, one pixel pipe (setup 8,400 + pixel 6,600) | 16,100 | 96 MHz after four timing rounds | Gaelco 3D `g3d_raster` | | Jaguar Tom (blitter, object processor, GPU) | 5,100 | | CoJag | | YMZ774 sound (16 voices, MPEG decode) | 7,500, 19 DSP | 67.5 MHz | PGM2 plan | Whole cores for scale: Gaelco 3D uses 99% of the ALMs, PGM2 77%, Ultra Sports 51%, CoJag 49%. A second set of anchors comes from the Sega Model 2 core for this board (`alphanu1/sega-model2-mister`, commit `c4385d0` of 2026-11-20, GPL-3.0; figures from its `docs/area-budget.md`, `docs/speed-plan.md` and `docs/p1-i960-spike.md`, all read from fit reports by its author). It is the closest existing design: a 32-bit CPU with floating point, a geometry processor and a textured polygon renderer. | Block | ALMs | Clock | Note | |---|---|---|---| | Whole core | 41,132 (98%) | 50 MHz system, 100 MHz SDRAM | "The core is full"; timing closes by seed sweep | | i960 CPU with floating point | 7,717 in the core; 6,685 standalone | Fmax 25.61 MHz standalone; runs at 25 MHz, the real chip's clock | about 2 clocks per instruction | | i960 CPU before floating point | 3,812 | Fmax 42.94 MHz | | | Floating-point units | double add 785, double multiply 326 + 4 DSP, divide 319, square root 249 | 52-90 MHz each, standalone | single multiply (Model 1): 144 + 1 DSP, 117 MHz | | Geometry processor | 6,388 | | no multipliers, all control logic | | 3D rasteriser (textured, mip-mapped) | 5,912 | 50 MHz | the Model 1 core's 3D clock tops out at 58.84 MHz; "80 does not close" | | Sound board (68000, sound chips) | 5,029 | | | | Coprocessor (TGP) | 2,612 | | | | Framework outside the core | about 6,066 | | every framework trim already applied | A third anchor is HS3 (`ika-musume/HS3`, BSD-2-Clause): an SH7709S core written for this FPGA, with a five-stage pipeline and a 16 KB four-way cache, and without MMU or FPU. It is the CPU of the Cave CV1000 core for MiSTer. Its stress-test project (`ika-musume/MiSTerSH3Test-CV1k`, commit `09e0e3a` of 2026-07-12, GPL-3.0) holds the whole chip in the MiSTer framework. It was compiled here with Quartus 17.0.2 Lite at the project's own settings (seed 3); the build tree is in `work/hs3fit/`. | Block | ALMs | Note | |---|---|---| | Integer pipeline | 3,891 | 5 DSP blocks | | Cache | 1,200 | 154 kbit of block RAM | | Exception entry, control registers | 227 | | | **CPU core** | **5,319** | | | Bus state controller | 1,057 | the SH7709S pins, with its SDRAM engine | | DMA controller, four channels | 859 | | | Timers, interrupt controller, on-chip bus | 655 | | | I/O ports, clock unit, real-time clock | 305 | | | **HS3 total** | **8,196** | 7,411 registers | | Whole test core | 23,712 (57%) | framework, test manager and overlay included | - **Later versions are larger.** HS3's own log (`eval_ooc/timing_campaign_log.md`) gives 8,363 to 10,093 ALMs out of context as the bus and DMA controllers were completed. - **Clock.** This build misses its 102.8 MHz constraint by 3.55 ns in static timing, and the author's six seeds by 3.26–3.74 ns: 74–77 MHz. The author's out-of-context runs give 78–82 MHz. The core nevertheless runs its stress test and the Cave games at 102.8 MHz on users' boards, and forum users report the test passing at 133 MHz. The working speed relies on the silicon being faster than the slow-corner timing model. - **Instructions per clock** (its testbench): 0.98 on a cached add loop, 0.56 on a store loop (one cache port shared by fetch and data), 0.40 uncached. - **What an SH-4 adds:** the FPU, the store queues with their address translation, separate instruction and data caches, and a different register map. A fourth anchor is polly2-rtl (`skmp/polly2-rtl`, commit `2806e9f` of 2026-10-24, no license stated): the PowerVR2 render core that DreamSTer runs on this board. Its DE10-Nano project (`quartus/polly2`) was compiled here with Quartus 17.0.2 Lite at the project's own settings; the build tree is in `work/polly2fit/`. The project holds the render core, video output and a minimal top level: no CPU, no sound, no tile accelerator (DreamSTer does that in software), no MiSTer scaler or menu framework. | Block | ALMs | Note | |---|---|---| | Shading and texturing (`tsp_shade_v2_pp`) | 13,511 | 46 DSP blocks; texture caches included | | Depth stage, 8 pixels wide (`isp_raster_line`) | 7,264 | 45 DSP blocks; the real chip is 32 wide | | Polygon setup for the depth stage | 3,783 | | | Span generation (`spanner_v2`) | 3,377 | | | Depth and tag tile buffers (`peel_tile_buffer`) | 2,719 | | | Render control (`peel_core` itself) | 2,233 | | | Primitive iterator and list parsers | 2,175 | | | Sort cache, hand-off buffer, blend, registers | 1,210 | | | **Render core** | **36,272** | 111 DSP blocks, 3.69 Mbit of block RAM | | Video output and timing | 935 | | | Rest of the project | 413 | | | **Whole project** | **37,620 (90%)** | 112 of 112 DSP blocks; 3.83 of 5.66 Mbit | - **By function:** the depth side (raster, setup, iterator, parsers, peel and hand-off buffers, sort cache) is about 16.6k; the shading side (shade, spans, blend) about 17.2k; control and registers about 2.4k. - **Clock.** The project offers 75, 90, 100 and 112.5 MHz and constrains all four. In this build none closes in static timing. The worst path family (a FIFO read pointer into the primitive iterator's vertex slots) limits at 44.75 MHz; without it the worst path is at 57 MHz. Failing endpoints: 351 at 75 MHz, 5,313 at 90 MHz, 14,288 at 100 MHz, 25,704 at 112.5 MHz. The released bitstream is the author's own build; its timing and the clock DreamSTer selects are not published. - **Compile time:** 2 hours 24 minutes on eight threads, 1 hour 10 minutes of it routing. What these say about the budget above: - The SH-4 integer row (8k mid) holds. The HS3 blocks an SH-4 keeps (CPU core, timers, interrupt controller, DMA, on-chip bus) are about 6.8k; store queues and their translation bring that to about 7.5k. - The CPU-with-FPU estimate (15k mid) is in the right range for a pipelined design: the i960 is 7.7k as a two-clocks-per-instruction design with no caches. - **The renderer estimate (27k mid) was too low.** An earlier version of this section called it possibly high, from Model 2's 12.3k for a simpler chip. The one working implementation is 37.2k with its video output, without a tile accelerator and at a quarter of the real chip's depth width. That is above the budget's high column for the same rows (31.5k). - **The clock is hard, and reachable for the CPU.** Model 2 runs its CPU at 25 MHz and its renderer at 50 MHz, and its sister core could not close 80 MHz. The Atomiswave needs the CPU at 60-100 MHz at one instruction per clock and the renderer at 100 MHz. HS3 reaches the CPU figure in practice. For the renderer, polly2-rtl in this build closes most of its logic at about 67–75 MHz and nothing at 100 MHz; Gaelco 3D's single pixel pipe reached 96 MHz after four timing rounds. - A Model 2 board with its 25 MHz CPU already fills the device. The Atomiswave has a CPU eight times faster on paper and a renderer a generation later. ## Budget | Block | What it must do (from the profile) | ALMs low | mid | high | Anchor | |---|---|---|---|---|---| | Framework | scaler, HDMI, audio out, HPS I/O | 6,000 | 7,000 | 7,000 | measured | | SH-4 integer core | 5-stage pipeline, 8 KB + 16 KB caches (in block RAM), store queues, UTLB lookup for SQ flushes, TMU, DMAC, INTC, SCIF stub | 6,000 | 8,000 | 10,000 | PPC403 8.9k; R3000 2.3k has none of the peripherals or caches | | SH-4 FPU | single precision at full speed (FMAC, FDIV, FSQRT, FTRV, FIPR, FSCA, FSRRA); doubles may trap | 5,000 | 7,000 | 10,000 | TMS320C31 12.4k for a simpler FP unit plus its CPU | | CLX2 tile accelerator | list building, tile binning into VRAM | 1,500 | 2,000 | 3,000 | estimate | | CLX2 ISP | 32 depth processors (the real chip tests 32 pixels per clock), float depth, polygon setup, peel control | 7,000 | 10,000 | 13,000 | Gaelco setup alone is 8.4k | | CLX2 TSP | perspective-correct texture and colour, 1/w divide per pixel, bilinear, offset colour, fog, four blend modes, accumulation buffer | 8,000 | 12,000 | 15,000 | Gaelco pixel + setup 15k for a simpler shader | | Texture path | 32 KB cache, VQ decode, palette, twiddle addressing | 1,500 | 2,000 | 2,500 | estimate | | Video out, frame buffer read-out | SPG timing, 640×480 | 500 | 1,000 | 1,000 | estimate | | AICA | ARM7, 64 channels with ADPCM (34 decodes per sample), low-pass filter, pitch LFO, 128-step DSP | 5,000 | 7,000 | 9,000 | fx68k 2.1k; YMZ774 7.5k | | Glue | Holly, G1 cartridge, G2, Maple, SDRAM and DDR3 controllers, loader | 2,500 | 3,000 | 4,000 | CoJag machine glue | | **Total** | | **43,000** | **59,000** | **74,500** | | | **Available** | | | **41,910** | | | Even the all-low column is over the device. The renderer rows have a measured cross-check, and it is worse than the estimate. The author of `polly2-rtl`, an open PowerVR2 core for this board, writes that the GPU core "takes over most of the FPGA" and has to be cut down to fit, and that it will not lead to a full Dreamcast core for that reason. Compiled here, it is 37.2k ALMs for what the ISP, TSP, texture and video rows cover (25k mid, 31.5k high in the table), with a depth stage 8 wide instead of 32. See "Size anchors". With that figure in place of the four estimated rows, and the tile accelerator kept at its estimate: | | ALMs low | mid | high | |---|---|---|---| | Framework, SH-4, FPU, AICA, glue | 24,500 | 32,000 | 40,000 | | Tile accelerator (estimate) | 1,500 | 2,000 | 3,000 | | Renderer and video output (polly2-rtl, measured) | 37,200 | 37,200 | 37,200 | | **Total** | **63,200** | **71,200** | **80,200** | | **Available** | | **41,910** | | polly2-rtl is built for throughput with the whole device to itself: four copies of the hand-off tile buffer, a four-port texture cache, prefetchers. A design written for area would be smaller and slower, and how much smaller is not known. The measured figure is what an existing, working renderer costs, not a lower bound. A second attempt points the same way. `ElectronAsh/DC_MiSTer` (last commit 2026-07-01, no license stated) is a test of the PowerVR2's low-level renderer on this board, drawing from VRAM dumps with no CPU. Its README says that with the speed-up logic enabled it asked for about 226% of the device's logic, and that the cut-down form takes 12 seconds or more per frame. Its commit log gives a clock of 20–24 MHz. The repository also holds an SH-4 core credited to Zephray, described as unfinished. Block RAM and DSP blocks were estimated as not limiting: about 1.5–2 Mbit of 5.66 Mbit, and 80–100 of the 112 multipliers. The measured renderer changes that as well: polly2-rtl alone uses all 112 DSP blocks and 3.83 Mbit. An FPU and an AICA beside it would have to build their multipliers from logic. ## CPU speed From `workload.md`, for a single-issue SH-4 with no stalls other than cache misses (a lower bound): | Clock at 1 instruction per clock | Games that hold frame rate | |---|---| | 100 MHz | 11 | | 100 MHz, brief slowdowns accepted | 16 | | about 150 MHz | 25 | | more than 150 MHz | 28 | What has been reached on this FPGA: - PGM2's ARM9-class core: Fmax 48 MHz. - Gaelco 3D's datapaths: 96 MHz, after pipelining and four timing rounds, with the DSP at 4–8 clocks per instruction. - MiSTer's ao486 ships at a 90 MHz CPU setting and describes its speed as a 486SX-33, without an FPU. - HS3, an SH-3: 74–82 MHz in static timing, run at 102.8 MHz in the released Cave CV1000 core, at 0.98 instructions per clock on cached register code (see "Size anchors"). HS3 shows that the integer side of an SH-4 at about 100 MHz is reachable on this FPGA in practice. An earlier version of this section guessed 50–80 MHz; that matches HS3's static timing but not the speed it runs at. At 100 MHz and the profile's lower bound, 11 games hold frame rate and 5 more do with brief slowdowns. The other 12 need about 150 MHz or more and stay out of reach. Three cautions carry over to an Atomiswave core: - **Timing margin.** 102.8 MHz is above static closure, and 55–65% of each failing path in HS3 is routing. The Cave board has a small blitter beside the CPU; a device packed to the limit by a PowerVR2 routes worse. - **Store-heavy code.** HS3's one cache port is shared by fetch and data, so a store loop runs at 0.56 instructions per clock. The SH-4 has separate caches, which removes this limit but is new work. (Done 2026-11-23: the SH-4 port fetches on a port of its own, `sh4.md` "Speed work"; busy code in the KOF XI and Samurai Shodown VI traces now runs at about 1.5 clocks an instruction.) - **The FPU.** Its stalls are not in the lower-bound figures, and HS3 has none. ## PowerVR2 The tile model's clock costs match what is published about the chip: the ISP tests 32 pixels per clock (one tile row), which is the model's one clock per row, and the nominal shading rate is 100 M pixels per second, the model's one pixel per clock. The setup cost of 4 clocks per polygon per tile remains an assumption. So the model's percentages can be read as estimates of the real chip's render time, and frames over 100% are frames where the original hardware would also have taken more than one refresh. What the FPGA version would need: - **ISP.** All 32 depth processors. A narrower ISP multiplies depth time by the same factor, and depth peeling already puts 13 games over one refresh in their worst frames. - **Translucency.** Auto-sort in 27 of 28 games, up to 35 layers in a tile. Peeling as the chip does costs time; per-pixel fragment lists cost block RAM (32×32 pixels × depth × about 64 bits: 0.5 Mbit at 8 layers). - **TSP.** One pixel per clock at 100 MHz is the minimum; three games exceed even that. - **Texture cache.** 32 KB direct-mapped, 32-byte lines: at most about 120 MB/s of VRAM reads. None of this can be cut for a "2D games only" build. KOF XI, Metal Slug 6 and the other sprite games draw everything as textured translucent polygons with auto-sort, and KOF XI's shading alone fills 96% of a frame at one pixel per clock. ### Lower output resolution (480i, 240p) The renderer's cost is mostly per pixel, so fewer pixels mean a slower clock is enough. It does not change the verdict: the SH-4 does the same work per frame at any output resolution, and the logic is the same circuit. - **480i by field rendering.** The real hardware renders a full 640×480 frame in interlaced mode too and scans out alternate lines. A core could render only the lines of the current field: the same picture on an interlaced display (as long as the game leaves the flicker filter off and does not read the frame buffer back), at half the depth and shading work. The renderer could then run at about 50 MHz instead of 100 MHz, the clock the Sega Model 2 core's renderer closes at on this FPGA. This was not modelled; halving the tile model's ISP and TSP shares is the estimate. - **240p.** The games do not support it, so the core would have to render the scene at 320×240 itself. That quarters the pixel work and the texture traffic, but it is not what the game drew, and the 2D games lose half their sprite detail in each direction. Unchanged in both cases: the CPU clock, polygon and tile counts per frame apart from tile size, the depth of translucent sorting (up to 35 layers in a tile), and the ALM count apart from the narrower depth stage already counted under "Per-game builds". Field rendering is worth keeping for a larger FPGA, where it removes the renderer's clock problem almost for free. **480i is the owner's target** (2026-11-22), so that the games play on a normal 15 kHz CRT. It is one of the board's own modes: DIP switch 1 selects 15 kHz. What it buys, against the measurements above: - **Half the pixel work**, by field rendering as above. With half the lines, a depth stage 4 wide takes the same time per polygon as one 8 wide on a full frame. polly2-rtl can be built either way. Built 4 wide with two copies of its hand-off buffer (`work/polly2fit/polly2-rtl-4lane`) the project is 33,791 ALMs and the render core 32,426, 10% less than 8 wide. The depth stage shrinks from 7,264 to 4,788 and the tile buffers from 2,719 to 1,589; the shading side stays at 13.9k. That build reaches 78 MHz in static timing and uses 93 DSP blocks. - **No HDMI scaler** in a CRT-only build: 1,705 ALMs in the SH-3 test core compiled here, out of 6,345 for the framework around that core. A CRT-only build for the light 2D games then looks like this: | Block | ALMs | Basis | |---|---|---| | Framework without the scaler | about 4,600 | measured in the SH-3 test core | | SH-4 integer core | about 7,500 | HS3's measured blocks plus store queues | | Slow shared FPU | about 3,000 | estimate (7k less the 4k trim) | | AICA without filter and LFO | about 6,500 | estimate | | Glue | about 3,000 | estimate | | Tile accelerator | about 2,000 | estimate | | **Left for the renderer, of 41,910** | **about 15,300** | | | polly2-rtl render core and video output | 37,200 | measured, 8 wide | | the same, 4 wide | 33,400 | measured | Narrowing the depth stage acts on its 7.3k and on part of the tile buffers. The 13.5k of shading and texturing does not depend on it. So the 480i target makes the renderer's job half as heavy, but a renderer of about 15k would be a new, leaner design, not a setting of the existing one. What the games program in 15 kHz mode is already in the profile. The profiler's Flycast ran with its default cable type, composite, so all 28 games were measured in the interlaced mode, not in 31 kHz mode. On every render of every game: | Register | Value | Meaning | |---|---|---| | SPG_CONTROL | 0x150 | interlaced, NTSC timing | | FB_R_CTRL | 0x5 (0x1 in two games) | pixel clock halved, the 15 kHz setting | | Render size | 640×480 | a full frame for every field | | SCALER_CTL | 0x401 | the scaler's own interlace bit off; vertical factor one step above 1.0 | So the workload figures in this study are 480i figures, and the games draw a full frame for every field as assumed above. The factor 0x401 switches on the vertical blend between neighbouring lines, the flicker filter: the frame dumps hold Y_COEFF, and in every frame of the ten 2D games it is 0x8040, a quarter of the line above, half the line itself and a quarter of the line below (2026-11-23). Flycast treats 0x401 as 1.0 and leaves the blend out, and MAME does not model the scaler. Field rendering without it gave a visibly more flickery picture than the board on the owner's CRT (Samurai Shodown VI's select screen, 2026-11-23); the 2D frame player now applies the blend in its scan-out (docs/player.md). Sprites that the 2D fighters draw line-doubled are not affected. Frame read-back by the games was not checked. ## Memory | Memory | Size | Where | Traffic (p99) | |---|---|---|---| | Main RAM | 16 MB | SDRAM | CPU fills and write-backs 10–240 MB/s; DMA under 45 MB/s | | VRAM | 8 MB | SDRAM | textures up to 120 MB/s with the cache; TA input up to 50 MB/s; CPU writes up to 30 MB/s | | Sound RAM | 2 MB (corrected 2026-11-23 from the ARM traces) | SDRAM or DDR3 | about 3 MB/s | | Cartridge | up to about 256 MB | DDR3 | 7.4 MB/s at most | | Frame buffer | 2.4 MB | DDR3 | write 37 MB/s, read by the scaler | A 16-bit SDRAM at 100 MHz moves at most about 150–200 MB/s in bursts, so main RAM and VRAM together exceed one module in the busy games. Main RAM on the SDRAM module and VRAM in DDR3 (or the reverse) works; DDR3's latency is hidden by the texture cache and by tile-sized bursts. Memory is not what stops the project. ## Options 1. **Stop here.** The profile, the tile model and this budget are the result: the Atomiswave is out of reach as a stand-alone DE10-Nano core. The profiler and its data stay useful for any later attempt. 2. **Hybrid, on top of existing work.** SH-4, AICA and the tile accelerator emulated on the HPS; the CLX2 core in the FPGA. DreamSTer (released July 2026) does this for the Dreamcast with `polly2-rtl` and the `minicast` emulator. Its author estimates 15–30 frames per second when optimised and says it will never run at full speed on this board; users report 15–60. The Atomiswave is the same chipset with a cartridge instead of a GD-ROM, so supporting it there is mostly a software task. Neither repository states a license, so reuse needs the author's permission. The result would not be a MiSTer core in the usual sense, and it would not be cycle-accurate. 3. **A larger FPGA.** The total is about 71k ALMs with the measured renderer, against the DE10-Nano's 41.9k (a 110k-logic-element part). A board with about twice that logic and a faster fabric would hold the design, and the CPU clock becomes a normal timing-closure problem there. An earlier version of this item said "100k+ logic elements", which is the size the DE10-Nano already has. This is a different platform from MiSTer as it exists today. 4. **Per-game builds**, as Gaelco 3D and Konami M2 have. See the next section: it narrows the logic gap for a few light 2D games, whose CPU clock HS3 now covers, but the build stays over the device. 5. **Native ports on a GPU core.** No SH-4 at all, in logic or emulated: each game's program is turned back into C (or machine-translated to C) and compiled for the board's ARM, and a general 3D core in the FPGA draws the frames. One game of Sega's sister arcade board runs this way on the DE10-Nano today. See "Native ports on a GPU core": it removes both limits, at the price of work per game and of not being a hardware core. The profile says which option-2 games are the best first targets: the eleven that need the least CPU (KOF XI, Metal Slug 6, Samurai Shodown VI, NGBC, Extreme Hunting 2, Sushi Bar, WaiWai Drive, Clay Challenge, Salaryman Kintaro, Animal Basket, Victory Furlong), since the emulated SH-4 on a Cortex-A9 is the bottleneck in a hybrid. ## Per-game builds In Gaelco 3D and Konami M2 the builds differ because the boards differ. Every Atomiswave game runs on the same board, so a per-game build can only leave out what a game does not use. The large blocks are used by all 28 games: the SH-4, an FPU, the depth stage, auto-sorted translucency, the textured shader and the framework. What a build for the games with the lowest CPU demand could drop (KOF XI, Metal Slug 6, Samurai Shodown VI, Sushi Bar, WaiWai Drive, Animal Basket, Salaryman Kintaro), from the profile's per-game feature data: | Trim | Why these games allow it | Saving (ALMs, estimate) | |---|---|---| | A slow FPU on a shared multiplier instead of a full-speed one | FPU instructions are 0.3–2.8% of their busy instructions | 4,000 | | No mipmapping, trilinear, modifier volumes, render-to-texture | none of them uses these | 2,000–3,000 | | A depth stage 8 pixels wide instead of 32 | one ISP pass is 2–9% of a frame at 32 wide | 3,000–5,000 | | AICA without low-pass filter and LFO | unused in these games | about 500 | | **Total** | | **about 8,000–13,000** | That takes the mid estimate from 59k to about 46–51k ALMs against 41.9k: over by 10–20%. The measured renderer moves this figure up; see the end of this section. Notes on the trims: - The narrow depth stage is the least safe. With peeling, KOF XI's ISP time is 38% of a frame at 32 wide, and the row-test part of it grows fourfold at 8 wide. It needs the tile model re-run with that width before it is relied on. - Other trims are uneven. KOF XI, Sushi Bar and Metal Slug 6 load an AICA DSP program. Sushi Bar uses fog on 98% of its polygons. Samurai Shodown VI and WaiWai Drive use bilinear filtering on nearly half. Metal Slug 6 and Salaryman Kintaro use VQ textures. - The 3D games gain almost nothing: FPU instructions are 8–21% of their load, and they use mipmapping, fog and VQ. The trims do not change the CPU clock. The same games need, at one instruction per clock and as a lower bound: | Game | MHz, 99th-percentile frame | |---|---| | Animal Basket | 35 | | Salaryman Kintaro | 41 | | Sushi Bar | 60 | | WaiWai Drive | 60 | | Metal Slug 6 | 65 | | KOF XI | 85 | | Samurai Shodown VI | 90 | All seven are under the 102.8 MHz at which HS3 runs. KOF XI and Samurai Shodown VI are close enough that FPU and load-use stalls could push them over. So the CPU clock no longer rules these games out. What remains is logic. By the estimate above the trimmed build is 10–20% over the device. With the measured renderer it is 50–60% over, about 64–67k: polly2-rtl is already 8 wide, so that trim is in its figure, and at most 2–3k more could go for features these games do not use. ## Hybrid: the software half measured on the board Measured on the owner's DE10-Nano on 2026-11-22 with the profiler's headless Flycast built for the Cortex-A9 (`../work/awprof/tool/README.md`, "Timing on the board"): SH-4 recompiler, AICA and tile-accelerator parsing in software, no rendering, MiSTer menu running. 4,200 vblanks per game, the input script from vblank 1,200. Flycast executes idle wait loops like any other code, so each game ran at SH-4 clocks of 200 and 100 MHz. The work per frame is the same at both and the waiting halves, which gives the cost of the work alone: `work = 2 × T(100) − T(200)`. That is what an emulator that skips idle loops would spend. All figures are shares of one 60 Hz vblank (100% = exactly full speed with nothing left over). | Game | Speed as Flycast runs it (200 MHz) | Work only: mean | 95th percentile second | worst second | |---|---|---|---|---| | KOF NeoWave | 101% | 32% (unreliable, see below) | 38% | 38% | | Animal Basket | 94% | 42% | 49% | 83% | | KOF XI | 52% | 54% | 97% | 123% | | Guilty Gear Isuka | 75% | 59% | 92% | 150% | | NeoGeo Battle Coliseum | 56% | 60% | 120% | 152% | | Faster Than Speed | 83% | 62% | 119% | 327% | | Guilty Gear X ver.1.5 | 77% | 62% | 148% | 154% | | Clay Challenge | 54% | 63% | 111% | 115% | | Metal Slug 6 | 77% | 64% | 155% | 186% | | Maximum Speed | 71% | 68% | 85% | 133% | | Fist of the North Star | 77% | 73% | 120% | 244% | | Block Pong-Pong | 71% | 86% | 146% | 159% | | Bass Fishing | 44% | 100% | 125% | 125% | | Dirty Pigskin Football | 57% | 101% | 166% | 184% | | Knights of Valour 7 Spirits | 56% | 113% | 158% | 162% | | Demolish Fist | 57% | 134% | 182% | 189% | | Dolphin Blue | 41% | 192% | 304% | 313% | 17 of 28 games; the other 11 had not finished when this was written. The raw files are in `work/awtime-results/board1/`. KOF NeoWave keeps only 78% of its frames at 100 MHz, so the subtraction underestimates its work; its 200 MHz figure stands (101% on average, 50% in its worst second). What it says: - **As Flycast runs today, only KOF NeoWave averages full speed** on the board's ARM, with nothing rendered, and it drops to half speed in its worst second. Every other game is at 41–94%. - **With idle loops skipped, only Animal Basket has clear room.** Ten more games average 54–73% of a vblank, but all except Maximum Speed reach 92–155% in their busy seconds; KOF XI sits at 97%. From Block Pong-Pong down, the work alone leaves nothing or needs more than the board has. - **The board delivers about 50 million busy SH-4 instructions per second**, with wide scatter (Dolphin Blue's 83 M/s costs 192% of a vblank, Animal Basket's 16 M/s costs 42%). The 100 M/s assumed in the first version of this document was about twice too high. - This is before the ARM also feeds the FPGA renderer. The worst-second column includes loading and scene changes, where a slowdown shows less; the 95th-percentile column is the fairer picture of busy play. Not separated in this measurement: the SH-4, the AICA (ARM7, 64 channels, DSP) and the tile-accelerator parsing all count as work. Moving the AICA into the FPGA or onto the second ARM core would take some of it away; Flycast ran everything on one core here. So the hybrid, on this board, is a route to a few of the lightest games at best, not to the library. ## Native ports on a GPU core Looked at on 2026-11-22: gibletto's Marvel vs. Capcom 2 decompilation (commit `66e476d`, AGPL-3.0) and the Pinedra GPU package it draws with on the MiSTer (release 20261121b, core 1.1.0, driver 0.5.37; © Sandro Catallo, closed source, distributed by its author). Their figures below are their authors' statements. ### What it is - **The game's code runs natively.** The project rewrote the game's SH-4 machine code as C that compiles back to the original bytes, and compiles the same C for other machines. On the MiSTer it is an ARM program. There is no SH-4 in the FPGA and none emulated. - **The FPGA holds a general 3D chip.** Pinedra GPU is an OpenGL 1.x class core with a driver on the ARM. Its author gives 107 frames per second for Quake II's timedemo at 640×480 and 53 at 1024×768. - **The port stands in for Sega's libraries.** It replaces the arcade board's own library the game calls (83 `nl` routines), builds each frame's polygon lists as the PowerVR2 would receive them, and draws them through OpenGL 1.4 by the PowerVR2's rules. Translucent triangles are sorted per triangle on the ARM, not per pixel as the chip does. - **Sound is still emulated.** The AICA's ARM7 and DSP run in software, with the game's own sound driver. The port's notes give 9.7 ms a frame for the arcade version's sound on the MiSTer, 58% of a 60 Hz frame on one of the two ARM cores. MvC2 runs on Sega's sister arcade board, with the same SH-4, PowerVR2 and AICA as the Atomiswave. The repository says the port runs at 60 frames per second on an original 3DS, whose CPU is much slower than the DE10-Nano's. It gives no frame rate for the MiSTer. ### Why it avoids both limits The two things that stop a core are the SH-4's clock and the logic size. Here the SH-4 does not exist, so its clock does not matter, and the only logic is a GPU core that already fits. The emulated-SH-4 cost measured in the hybrid section does not apply either: compiled C does the game's work without translating instructions at run time. How much cheaper that is on this board was not measured. ### What the Atomiswave games link Every game was run to its attract mode and its main RAM searched for the version strings Sega's libraries carry (`work/awprof/libscan/`). All 28 link Sega's Dreamcast libraries, 50–75 versioned modules each, in two families: | Family | Games | Which | |---|---|---| | Kamui 1.11 (July 1999) with Ninja | 17 | Animal Basket, Block Pong-Pong, Demolish Fist, Dolphin Blue, Fist of the North Star, Faster Than Speed, Guilty Gear Isuka, Guilty Gear X ver.1.5, Knights of Valour 7 Spirits, Maximum Speed, Ranger Mission, Rumble Fish, Rumble Fish 2, Salaryman Kintaro, Sports Shooting USA, Sushi Bar, WaiWai Drive | | Kamui 2 (June 2000) with Ninja 2 and "Shinobi Library for AtomisWave 2.01" | 11 | Bass Fishing Challenge, Clay Challenge, Dirty Pigskin Football, KOF NeoWave, KOF XI, Metal Slug 6, NeoGeo Battle Coliseum, Samurai Shodown VI, Victory Furlong, Extreme Hunting, Extreme Hunting 2 | - **Two host layers would cover the library**: one standing in for Kamui 1 and one for Kamui 2, the graphics drivers every game draws through. - **The MvC2 host layer does not fit as it is.** It hooks one level higher, at that board's own library, which no Atomiswave game links; it defines a single Kamui routine. - **Its back half could be reused** under the AGPL: the polygon-list renderer for Pinedra and the AICA code. ### What it costs - **Work per game.** MvC2's arcade program is 18,306 routines in 700 files; the repository holds about 410,000 lines of C and assembler for its two versions. Doing that for 28 games is not realistic. The cheaper variant is to translate each game's SH-4 code to C by machine, without making it readable, as is done for N64 and Xbox 360 games; no such tool for the SH-4 is known to the writer. - **Dependence on Pinedra.** The core is closed, in beta and another author's. Its package has a hook for other people's programs. Its logic size and clock are not published. - **The CPU budget is unproven for the heavy games.** The games do their geometry on the SH-4, so the 3D games stay the expensive ones as native code too, and sound takes a large share of one core. - **It is not a hardware core.** Nothing of the Atomiswave board is reproduced; accuracy is that of a port, and each game is its own program. - **Publishing game code.** The MvC2 repository publishes the game's program as source. A translator that works from the user's own ROM avoids that. ## Limits of this estimate - No Atomiswave block was synthesised. HS3 and polly2-rtl are the two anchors compiled here; the other ranges come from other designs on the same device and can be wrong by the width of the low–high span. - The polly2-rtl figures are from one compile: one seed, the Lite edition of Quartus 17.0.2 where the project file names the Standard edition. Its author's own fit and timing are not published. What it implements of the real chip was not audited here. - The CPU clock figure assumes no load-use or FPU stalls; a real core needs more. - HS3's 102.8 MHz is a field result above static timing closure, taken from its author's stability test and from forum reports. It was not run on the owner's board, and it says nothing about an SH-4's FPU. - The `DC_MiSTer` figures are its author's statements in the README and commit log. It was not compiled here. - The DreamSTer figures are its author's and users' statements for Dreamcast games. The board measurements here cover the software half only (no renderer) and 17 of 28 games so far; the work-only figures rest on the two-clock subtraction, not on an emulator that actually skips idle loops. - The native-port route was read, not run: no Atomiswave code was compiled for the ARM, and Pinedra was not installed or measured. The library families come from version strings in RAM, which name the libraries a game links but not how much of each it uses. ## Sources - Fit reports and plans: `C:\repos\gaelco3d-mister`, `ultrsprt-mister`, `cojag-mister`, `igspgm2-mister`. - Sega Model 2 core: https://github.com/alphanu1/sega-model2-mister (sister project: https://github.com/alphanu1/sega-model1-mister) - polly2-rtl: https://github.com/skmp/polly2-rtl , https://skmp.dev/projects/polly2-rtl/ , https://drk.emudev.org/blog/hello-polly2-rtl/ - HS3: https://github.com/ika-musume/HS3 (`README.md`, `docs/HS3_Core_Hardware.md`, `eval_ooc/timing_campaign_log.md`); its stress test: https://github.com/ika-musume/MiSTerSH3Test-CV1k ; the Cave core's outline: https://github.com/ika-musume/ikacore_CV1k ; field reports: https://misterfpga.org/viewtopic.php?t=10529 - DC_MiSTer: https://github.com/ElectronAsh/DC_MiSTer - DreamSTer release r6b (2026-10-24): the binary package and the source snapshot, read from the owner's downloads. Its release script takes the bitstream from `polly2-rtl/quartus/polly2`, the project compiled here. - DreamSTer: https://github.com/skmp/DreamSTer/ , https://www.timeextension.com/news/2026/07/the-impossible-dreamcast-core-comes-to-mister-but-its-very-early-days - MvC2 decompilation and ports: gibletto's repository on GitHub (`README.md`, `ports/README.md`, `ports/MISTER.md`, `ports/port/`) - Pinedra GPU: its package's `README.md` and `CHANGELOG.txt`, release 20261121b; https://www.patreon.com/pinedragpu - CLX2 ISP width (32 pixels per clock): https://segaretro.org/Sega_Dreamcast/Technical_specifications - ao486 speed setting: https://github.com/MiSTer-devel/ao486_MiSTer