← All cores
Rayforce (DanimanX)
Cites MAME source — 113
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:8 What this build is: the real F3 main board (rf_main.sv) -- the full taito_f3.cpp memory map with every video RAM present, the vblank and timer interrupts delivered, inputs and EEPROM wired -- driving a diagnostic page instead of a renderer.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:14 Nothing in the pixel pipeline can be developed, let alone diffed against MAME, until the program is actually running its frame loop.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:196 Ray Force is MAME ROT270 but its flipscreen inverts the raster, so the upright rotation is CW (see rotate_ccw below); that is the default.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:427 Ray Force is MAME ROT270 but runs with the F3 flipscreen ON (its graphics are stored flipped and the chipset draws them flipped), so the raster the core outputs is already inverted: rotating it CW puts it upright, and that is the default (2
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:788 Ensoniq grew 4 MB -> 8 MB for Puzzle Bobble 3/4, whose sample region is 16 MB in MAME against Ray Force's 8.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:800 The Taito F3 board is one chipset running 35 different games, and MAME's per-game differences are small enough to be data rather than RTL: the visible-raster crop (four variants), the playfield "extend" bit, and the sprite lag.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:808 bit [1:0] visarea: 0 = f3_224a (Ray Force), 1 = f3_224b, 2 = f3_224c, 3 = f3 bit [2] NON-extend (1 = eight 32x32 playfields, MAME's extend=0: Puzzle Bobble 2/3/4, Darius Gaiden, Cleopatra Fortune, Grid Seeker, Space Invaders '95, Gekiri
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:813 0 = four 64x32, which is Ray Force, Elevator Action Returns and both Bubble Bobble games.) Note the inverted sense against MAME's own "extend" naming: a 0 byte has to keep meaning what every MRA written before this bit went live meant.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:818 bit [4:3] sprite lag in frames (reserved; the engine does 1 today, MAME does 2 for both of these games)
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:834 All 35 parent sets were tabulated from MAME's GAME() lines, its init_ functions and f3_config_table (see F3-LIBRARY.md); these are every per-game parameter they need:
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:845 MAME's table wants 2 for 8 sets, 1 for 22 and 0 for 3, so this is the one per-game parameter the core cannot yet express -- the field is here so the MRAs can carry it the day the engine can.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:929 Buttons 4-6 are NOT in IN.0 beside the first three: MAME's port map puts them in IN.4 (P2) and IN.5 (P1), which every other F3 game uses for P3/P4.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:988 Compute the ROM-derived ones with tools/rf_stream_sum.py; the write hash comes from the MAME write-stream oracle.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:999 The first four come from tools/rf_stream_sum.py over the MRA; the write hash comes from tools/oracle_f3writes.lua, and the board already reports exactly it -- so the 68020 executes this game's first 4096 bus writes the same way MAME does.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1032 bubblembe: stock bubblem graphics and sound, a DIFFERENT 68020 program (all four maincpu CRCs absent from MAME 0.288).
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1039 The write hash can only be measured from a MAME trace, and MAME has no such set, so there is nothing honest to put here.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1091 The board ALREADY REPORTS exactly this value, so Darius Gaiden's 68020 executes its first 4096 bus writes the way MAME does.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1119 ---- otisbank mask, per game ---------------------------------------- The Taito EN board banks the sample ROM with its own register, not the ES5505's, and MAME masks what the game writes there with
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1156 MAME switches on the GAME to decide (taito_f3_v.cpp palette_24bit_w), and its own TODO there says the real chip may select it per line through 0x6400 -- unimplemented there too, so a per-game flag is exactly as correct as the reference.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1183 ---- SDRAM MAP PROFILE ---------------------------------------------- Fourteen F3 sets do not fit the 18.5 MB map, and measuring their REAL ROM bytes (not MAME's declared region sizes, which overstate it) shows what actually blocks them:
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1215 The sizing came from a script whose regex was `ROM_LOAD\w*\(`, and MAME writes a plain load as `ROM_LOAD (` with alignment spaces before the paren -- so EVERY sprites_hi and tilemap_hi in the library measured as zero.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1353 Stage 1 of Phase 3: the chips only answer; their register writes go to the write ring (UART Debug = Sound Ring) for the comparison against MAME's stream, and to the es_*/bk_*/vl_* ports the sampler will take in stage 2.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1408 The sample clock: master 15.238 MHz / (16 x (ACT + 1)), the integer division MAME makes, as a fractional divider of clk_sys.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1531 Mix: the pump sends pair 0 straight out and pairs 1-3 through the ESP, which is a dry sum here (ROADMAP Phase 3, stage 3 is the volume chip); four 20-bit pairs summed and scaled to 16 bits, MAME's route gains (0.18 x 0.5 x the MB87078 at 0
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1544 MAME's own level, pre-boost
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1553 ---- AUDIO BOOST ------------------------------------------------------- The chain above reproduces MAME's gain structure exactly, and MAME's gain structure for this board is very quiet.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1555 rf_mb87078's 0 dB coefficient is 576 against a >>> 15, i.e. 576/32768 -- which is precisely taito_en's x3.125 at 0 dB, times MAME's 0.18 route gain, times the ES5506 pump's 0.5, times the 20-bit -> 16-bit 1/16.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1566 The boost is a saturating left shift on the finished 16-bit sample, defaulting to 8x (+18 dB, peak -15.4 dBFS on that capture); 16x is there for quiet amplifiers and 1x reproduces MAME's own level for anyone comparing.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1574 1x -- MAME's level
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1911 the index counts every output sample since the sound CPU was released, so a capture is placed on the model's timeline (the model's t = 0 is MAME's reset, ~2 s before the release)
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pivot.sv:24 The per-line "used" flag (MAME skips the layer on a line whose text-RAM row is all zero codes) is a 64-word scan of that row before the pixel pass; the pixel layer is always used.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_cpu_spike.sv:4 THE question this answers: is TG68K.C's "68020 (only some parts - yet)" good enough to execute Ray Force's boot sequence exactly as MAME's 68020 does?
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_cpu_spike.sv:6 No simulator is involved: the board runs the CPU against the real ROM image in SDRAM, and the ARCHITECTURAL WRITE STREAM is compared against MAME's, captured with a debugger watchpoint log.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_cpu_spike.sv:16 Memory model, from a MAME access profile of the first emulated second (99.998% of early data reads are ROM; VRAM is written long before it is read; palette IS read back early): 0x000000-0x0FFFFF ROM, full 1 MB maincpu region, in SDRAM via
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pf.sv:4 Port of PlayfieldInf / build_playfields / x_index / y_index from tools/f3_render.py, which reproduces MAME's frames pixel-exact and is the spec.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pf.sv:13 MAME's row-usage skip: a tilemap row whose 64 tile codes are all 0 draws NOTHING, even though tile 0 in this ROM is opaque.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pf.sv:27 Flipscreen -- which Ray Force runs with permanently -- mirrors the whole tilemap in both axes (MAME set_flip_all), THEN each tile's own flip bits apply.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pf.sv:70 MAME: "[.ttt yyyy yxxx xxa|h] non-extend / [.tty yyyy xxxx xxa|h] extend" in taito_f3_v.cpp pf_ram_w().
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pf.sv:410 MAME's row-usage test: any nonzero code word in tilemap row ty.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pf.sv:443 extend=0 wraps x at 512, not 1024: MAME's m_width_mask
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pf.sv:466 MAME takes it unmasked (taito_f3_v.cpp get_tile_info: tileinfo.set(3, tilep[1], ...)), and a 15-bit code here drew tile code-0x8000 instead for the four sets with a 6 MB tilemap -- Twin Cobra II's title emblem (codes to 0x9F64), its fade tr
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_smp_bus.sv:11 THREE bank bits since Puzzle Bobble 3/4: their ensoniq region is 16 MB in MAME, so the otisbank mask is 7 rather than Ray Force's 3, and the sample space is 8 MB rather than 4.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:10 Phase 2 needs the program actually running, so this is the real map from taito_f3.cpp f3_map, plus the two interrupts and the control port:
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:31 Interrupts, from taito_f3.cpp: level 2 vblank, HOLD_LINE level 3 10000 68020 cycles (625 us at 16 MHz) after the vblank IRQ.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:43 The write-stream capture from the spike is kept verbatim -- same ring, same rotl1+add fold -- because it is still the regression oracle against MAME's rf_acc.tr.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:140 Neither MAME (which reads sprite RAM atomically) nor the bench (which feeds it a static snapshot) can ever produce that, which is why the picture is right in both and wrong on the board.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:170 Ray Force's new-game init (ROM 0x004810) stores the constant 1 into the zone word at 0x402312 and the stage loader consumes it in the SAME frame, so nothing that writes RAM once a frame can change it -- proved in MAME: holding the byte ever
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:201 C80100 asserts the sound CPU's reset, C80000 releases it; held from boot (taito_f3.cpp machine_reset asserts it)
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:207 The ring is circular, so it always holds the last 2048 writes -- but the UART needs ~2.5 s to read 2048 entries out and this CPU refills the ring far faster than that, so a live read-out is TORN: the head of the dump and its tail come from
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:466 KIRAMEKI STAR ROAD ONLY: it is the only F3 game that banks its sound ROM, and MAME's handler is guarded by `if (m_game == KIRAMEKI)` with every other game logging "Sound bankswitch in unsupported game".
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:515 ---- watchdog (TC0640FIO) ------------------------------------------- The F3 has one, MAME configures it (WATCHDOG_TIMER in taito_f3.cpp) and the games USE it: Elevator Action Returns' boot deliberately runs into a `BRA.S *` with interrupts
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:519 Traced in MAME: it sits at PC 0x01016E for about two seconds, resets, re-runs POST and then reaches its main loop.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:908 ---- write-stream capture (unchanged -- the MAME oracle) ------------- The main write ring used to FREEZE at the 4096th write, which was right for Phase 0/1 (capture the boot stream, compare with MAME) and is now actively misleading: the WR
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:917 ...but the write COUNT and HASH must still stop at 4096: that pair is the Phase 1 proof, compared against a fixed number from MAME, and a hash that keeps folding is just a moving target.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:956 Comparing it against MAME's stream from reset needs an alignment search, and that search saturates: Riding Fight (silent on the board) scored 58 and Grid Seeker (working) scored 59, so the comparison could not tell a broken game from a work
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:959 Freezing at 512 makes the ring hold writes 0..511 -- the same entries MAME's stream opens with, comparable head-to-head with no alignment at all, which is what finding the FIRST divergence actually requires.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:1021 Halving it frees 12 and still holds a 2048-write comparison against MAME and a 69 ms audio capture, both far more than any check has needed.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:1084 MEASURED IN MAME: 764 reads, min 761 max 765, identical in attract and in game.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:1130 ---- KIRAMEKI sound-ROM bank ----------------------------------------- taito_f3.cpp sound_bankswitch_w, verbatim:
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:1149 MAME sets the three sound-CPU windows with set_entry(i % max) for i = 0,1,2, so cpubank2 -- the C20000 window this index drives -- starts on ENTRY 1.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_sound_main.sv:5 A second TG68K.C, in 68000 mode, running the sound program from SDRAM through its own rf_prog_bus line cache (SDRAM ch5), with the map from taito_en.cpp:
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_sound_main.sv:16 Three windows in MAME (cpubank1/2/3 at C00000, C20000, C40000), fixed at reset to a LINEAR mapping, which is what this maps by default.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_sound_main.sv:18 Only Kirameki Star Road ever moves one: taito_f3.cpp's sound_bankswitch_w calls set_bank(1, idx) -- cpubank2, the C20000 window -- and no other game reaches that code at all.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_sound_main.sv:33 The proof for this stage is the ring against MAME's stream (tools/rf_snd_ring_check.py, from tools/oracle_en_dump.lua): if the FPGA's 68000 runs the sound program correctly it writes the same things in the same order.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_selftest.sv:111 Phase 0/1 established every one of these against MAME or against tools/rf_stream_sum.py; they are constants here so the board says PASS or FAIL by itself instead of handing back a number to compare.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:6 sim/mix_tb.cpp runs this end to end -- real line decode, real playfield build, real SDRAM tile fetch, this mixer -- and diffs the output against the MAME-identical frame (make -C sim mix).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:36 This equals MAME's calc_clip for any single plane and for combinations of normal planes.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:37 MAME's handling of several INVERTED planes at once produces duplicate ranges that re-run the layer over the same pixels (which changes destination-tie results); that is not reproduced.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:95 and MAME scales each nibble by 16 (taito_f3_v.cpp palette_24bit_w), which is exactly {nibble, 4'd0}.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:96 MAME selects this by GAME rather than by register -- its own comment there wonders whether the real chip picks it per line through 0x6400, but it does not implement that, so following the per-game flag matches the reference exactly.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:125 The COORDINATE is the point: an earlier packing reported the output green/blue instead, and a reading could not be pinned to a pixel, so it could not be compared against MAME.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:127 With (x,y) the board's own screenshot supplies the output colour and a MAME dump supplies the correct index and colour for the same pixel.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:132 The two flag bits compress the weights to the only question that matters here, since MAME renders this scene 100 % opaque.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:179 layer_enable: bit 13, and the blend mode that means "off" differs -- 3 for tilemaps and the pivot, 0 for sprites -- then MAME's row-usage test on top
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:206 3'b1xx = no source yet (MAME's 0xff)
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_pivot_bus.sv:4 The F3 pivot RAM is 64 KB (MAME: map(0x630000,0x63ffff) backed by memory_share_creator<u16> m_pivot_ram(0x10000) = 32768 words).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_spr_list.sv:14 All of that is the F3 sprite chip, reproduced from MAME via the model.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_spr_list.sv:46 MAME's pen mask is (extra_planes << 4) | 0x0F with extra_planes 0..3, so it reaches 0x3F -- and F3 sprite graphics are 6bpp, 64 pens.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_spr_fb.sv:2 The sprite framebuffer in DDR3 -- what the arcade board and MAME do.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_spr_fb.sv:16 The real F3 board knows this, which is why it draws sprites into a framebuffer and displays it a frame later, and why MAME's config table carries a sprite_lag of 2 for this game.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_spr_fb.sv:26 - the glitching is gone structurally, not mitigated - sprite lag becomes 2 frames, which is what MAME uses for this game (README Known problem #3, fixed as a side effect) - the on-chip line-buffer ring drops from 16 banks to 2 + 2, freeing
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_eeprom_93c46.sv:4 The F3 board wires one of these to the control port at 0x4a0010: the CPU drives CS/CLK/DI through the low byte there and reads DO back in bit 0 of every control-port longword (taito_f3.cpp EEPROMOUT / EEPROMIN).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_eeprom_93c46.sv:88 A READ answers with a dummy 0 on the clock after the last address bit, THEN the 16 data bits MSB first (93C46 datasheet, and eepromser.cpp).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5510_host.sv:7 If those reads do not answer as MAME's es5510.cpp does, the driver loops forever on the presence check (build 27230527 did exactly that, on a stub that aliased the select commands onto latch 0).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5510_host.sv:12 So this is es5510.cpp's host_r/host_w, read_reg/write_reg, with real storage for the GPR file (0xC0 x 24 bits), the instruction memory (0xA0 x 48 bits) and the special registers 0xEA-0xFF -- and NO execution: the DSP program never runs, the
- upstream/Arcade-taitoF3_MiSTer/rtl/rayforce_video.sv:4 Timing is the real machine's, from MAME taito_f3.cpp: set_raw(26.686 MHz / 4, 432, 46, 320+46, 262, 24, 232+24) pixel clock 6.6715 MHz = clk_sys / 8 (clk_sys = 53.372 MHz) => 58.94 Hz, which the OSD reporting that number is part of the test
- upstream/Arcade-taitoF3_MiSTer/rtl/rayforce_video.sv:11 Line RAM is indexed by the raw raster line (MAME's scanline_draw walks screen_y 0..255 and indexes line ram with it), so vcnt IS the line-RAM index and the visible window is a crop of it.
- upstream/Arcade-taitoF3_MiSTer/rtl/rayforce_video.sv:18 vbl_rise is the main CPU's vblank interrupt: MAME schedules it at visarea.max_y + 1, so line 255.
- upstream/Arcade-taitoF3_MiSTer/rtl/rayforce_video.sv:28 This is the first thing the game generates that can be compared against MAME directly: same screenshot, same colours, or the palette write path is wrong.
- upstream/Arcade-taitoF3_MiSTer/rtl/rayforce_video.sv:64 Native is 262 lines = 58.94 Hz (MAME: 58.97); 60Hz trims the vertical blank to 257 lines = 60.08 Hz, H rate unchanged, so the game runs 1.9% fast in exchange for a picture every 60 Hz display holds without judder.
- upstream/Arcade-taitoF3_MiSTer/rtl/rayforce_video.sv:93 The crop is the ONE thing that differs between the four Taito F3 machine configurations in MAME, and every F3 game uses one of them (taito_f3.cpp: the base f3 set_raw is 432x262 for all of them, and f3_224a/b/c only override set_visarea):
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_spr.sv:47 So sprites lag the playfields by one frame here; MAME's sprite_lag for gunlock is 2 -- close, tuned on hardware if it reads wrong, the same way the raster timing was.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_spr.sv:135 The flipscreen bit, straight from the sprite command word (word 5 bit 13) -- the same place MAME takes m_flipscreen from.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_spr.sv:253 rf_video_spr_list already produces all seventeen ({w[5][0], w[0]}, the same field MAME reads) and this stored only fifteen, which reaches 2^15 * 128 = 4 MB of sprite ROM.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_spr.sv:338 The heavy MAME frame added the same night (dump/rf_heavy, 344 sprite rows) still only reaches 2190 records -- a fifth of what the boss needs.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_spr_gfx_bus.sv:6 Two differences, both from the sprite gfx layouts in taito_f3.cpp: - the regions: sprites at byte 0x180000, sprites_hi at 0x380000.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_spr_gfx_bus.sv:18 MAME merges them at load time (tile_decode: pixel = (low & 0x0f) | (hi & 0x30)); the real board has no merge pass, it simply reads both planes in parallel.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5505.sv:2 ES5505 -- the Ensoniq 32-voice sampler, as MAME computes it.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5505.sv:4 This is the RTL of tools/es5505_model.py (itself an exact port of es5506.cpp's ES5505 paths), and it is checked against that model sample for sample (sim/es5505_tb.cpp, make -C sim es5505).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5505.sv:6 Every arithmetic step keeps MAME's integer semantics, including C's truncating division in the filters, so the diff is exact, not "close".
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5505.sv:31 MAME keeps the accumulator in 20.11 with the 5505's 20.9 registers shifted up 2; the low 2 bits are always 0 (every quantity is a multiple of 4), so this works in 20.9 directly: accum, start, end are 29 bits, the step is the FC register's b
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5505.sv:39 THREE bank bits, not two: the Taito EN board's otisbank register is masked by MAME with (ensoniq_region_bytes / 0x200000) - 1, which is 3 for Ray Force's 8 MB region but 7 for Puzzle Bobble 3/4's 16 MB one.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5505.sv:63 per-game otisbank mask, MAME's m_bankmask (3 = 8 MB region, 7 = 16 MB)
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5505.sv:97 ---- control bits (es5506.cpp, 5505 placements) ----------------------
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_es5505.sv:336 ---- loop end handling (V_END), MAME's check_for_end_* for the 5505 -----
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_mb87078.sv:2 MB87078 -- the volume control on the EN board, as taito_en.cpp uses it.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_mb87078.sv:6 mb87077.cpp: gain index = 65 (mute) if EN=0, 64 (-32 dB) if C32, 0 (0 dB) if C0, else ~data & 0x3f, in 0.5 dB steps.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pipe.sv:55 The live value comes from the sprite command word via the sprite engine (`flip_eff` below) -- MAME takes m_flipscreen from exactly that bit, and it must follow the game: Ray Force sets it permanently, Elevator Action Returns does not, and t
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pipe.sv:302 "extend" (1024x512 playfields) comes from MAME's per-game config table, not from control word 15, and so it comes from the MRA's game config byte here rather than from anything the game writes.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_line.sv:6 All of that lives in 64 KB of line RAM, reached through two levels of indirection, and it is most of what taito_f3_v.cpp does.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_line.sv:10 This is a direct port of read_line_ram() from tools/f3_render.py, which reproduces MAME's own frames pixel-exact and is therefore the spec.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_line.sv:83 FIX_Y: the y zooms of playfields 2 and 4 are stored where you would expect the other's to be (taito_f3_v.cpp says so, and the model agrees).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_gfx_bus.sv:5 MAME merges them at load time (tile_decode: pixel = (low & 0x0f) | (hi & 0x30)); the real board has no merge pass, it simply reads both planes in parallel.
Says it matches, follows or was checked against MAME — 11
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:566 Measured on frame 2930, the frame the board was caught getting wrong: the picture stays identical to MAME up to a sprite-fetch round trip of 135 ram clocks instead of 70, and at a modelled 90-clock round trip the longest line falls from 660
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:931 Verified on both sets with tools/mame/ports.lua, 2026-09-11.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1652 Every block in it is verified pixel-exact against MAME in Verilator (sim/), sprites included; the ch4 sharing runs inside the pipe bench (sim/pipe_top.sv) so the arbitration meets the regression too.
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1718 extend=0 is implemented and verified end to end -- the model against MAME (Puzzle Bobble 2 frame 1800 pixel-identical) and the RTL against the model (all seven bench suites at baseline pixel counts) -- but it costs ~1158 ALMs / ~116 LABs an
- upstream/Arcade-taitoF3_MiSTer/Rayforce.sv:1892 Tapped PRE-BOOST, deliberately: this ring exists to prove the board plays what the model computes, and tools/rf_audio_match.py reports the amplitude ratio against MAME's own mix.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:610 The 6-button fighters' extra three, active low, at the bit positions MAME's port map gives them (verified with tools/mame/ports.lua on both sets, 2026-09-11): IN.4 P2 button 4/5/6 = mask 0x100/0x200/0x400, so low-word bits 10:8; IN.5 P1 but
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_main.sv:623 Arkanoid Returns is a paddle game and reads a 12-bit dial per player at index 5 and 7 (VERIFIED in MAME 2026-09-11: reads at 0x4A0008 and 0x4A000C, mask 0000FFFF, which big-endian is 0x4A000A / 0x4A000E).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:4 Port of scanline_draw / calc_clip / mix_line / render_line from tools/f3_render.py (which is MAME's taito_f3_v.cpp, verified pixel-exact against MAME's own frames).
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_mix.sv:129 One reading then splits three ways: src_pal matches MAME's and the pixel is opaque but wrong -> the palette read; src_pal differs -> the pen/graphics upstream; not opaque -> the blend weights from the line-RAM decode.
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_spr_gfx_bus.sv:24 Layout, taken from the gfx_layouts in taito_f3.cpp and cross-checked against tools/f3_gfx.py (which renders MAME's own frames pixel-exact, so it is the authority on this byte order, not a guess):
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_gfx_bus.sv:11 Layout, taken from the gfx_layouts in taito_f3.cpp and cross-checked against tools/f3_gfx.py (which renders MAME's own frames pixel-exact, so it is the authority on this byte order, not a guess):
Keeps a MAME approximation — 1
- upstream/Arcade-taitoF3_MiSTer/rtl/rf_video_pivot.sv:12 It has no tile words of its own: palette and flips are borrowed from the text RAM tile at [row (+32 when the scroll puts the cell in the lower half), col] -- MAME's get_tile_info_pixel hack, reproduced so the two agree even where both are o
Shares text with the MAME driver without saying so — 5