← コア一覧
gunpey (decoryah)
MAMEのドライバにない実基板の資料を引用 — 3
- rtl/v30/v30u_eu.sv:58 The behaviour is identical either way and the full ladder was re-scored to say so; the NETLIST is not.
- rtl/v30/v30u_eu.sv:969 Both are booked UNLANDABLE-AS-DESIGNED with the block characterised, not the mechanism condemned: `docs/notes/ghost8f_results_2026-08-09.md` §9 measured the FULL family at **15.3 MHz on two draws** with every worst setup path launching from
- rtl/v30/v30u_eu.sv:3050 *Falsifier*: a `v30u_eu` state register with no `ena` in the post-fit netlist, or a ladder cell that moves.
実基板での測定値を記載 — 5
- rtl/v30/v30u_biu.sv:2249 MEASURED: silicon's second acknowledge is `display + 7` at every delay and the model's/ucore's was `T1 + 6`; they part only where a T1 WAITED, which in this whole corpus is the acknowledge after a woken HALT.
- rtl/v30/v30u_biu.sv:2884 MEASURED on silicon, 1,189 HALT pseudo-cycles over the 725 retained fz2 captures, chip leg only: the HALT publishes the value the AD output latch ALREADY HOLDS, on both lanes, 1,189 of 1,189 with no exception.
- rtl/v30/v30u_eu.sv:332 MEASURED against silicon on a directed board cell built for it (§85.2b): the floor is **3 clocks**, 121,890 rows at 0 row-diffs, with no other value in [1,7] within four orders of magnitude.
- rtl/v30/v30u_eu.sv:2226 MEASURED, silicon, FLASH #17, `docs/notes/tf0f_cell_results_2026-08-11.md`: 512 directed cells x 4 waits x 4 alignments, 2,880 scored traps per engine, derivation 16/16 and a DISJOINT validation 14/14.
- rtl/v30/v30u_eu.sv:3670 F` is exactly two ROM rows, 007A (POP PSW) and 01EA (RETI) -- which is the same pair E1 measured on silicon ("mu01EA's flag commit obeys the SAME race table as POP PSW's mu007A", 108/108 H-IDENTICAL).
MAMEのソースを引用 — 73
- Gunpey.sv:5 Written for MiSTer from MAME 0.289's driver (src/mame/misc/gunpey.cpp).
- Gunpey.sv:141 keyboard: 1 / 2 start, 5 / 6 coin, 9 service, F2 the test switch (MAME's defaults)
- Gunpey.sv:159 joystick bits: 0 right, 1 left, 2 down, 3 up, 4 Swap, 5 Raise, 6 start, 7 coin (the J1 line above) MAME's P1 / P2 (active high): bit 0 up, 1 down, 2 left, 3 right, 4-6 buttons 1-3.
- Gunpey.sv:160 What the buttons do was measured in MAME 0.289: button 1 swaps the two panels in the cursor (and confirms in the menus), button 2 raises the field a row; button 3 does nothing in the game (only the test mode's I/O check shows it), so the pa
- Gunpey.sv:165 MAME's SYSTEM: bit 0 service 1, 2 the test switch, 3 / 4 coin 1 / 2, 5 / 6 start 1 / 2
- rtl/gunpey_blitter.sv:2 The AG-1's blitter (MAME 0.289 gunpey.cpp blitter_w / decompress_sprite): a rectangle of the graphics ROM (gp_rom3, 2048 bytes a row) into the 4 MB video RAM (2048 x 2048 bytes), either as it is (register 1 = 0) or from the compressed sprit
- rtl/gunpey_blitter.sv:4 The CPU starts it by writing 2 to register 0; MAME raises the blitter interrupt xsize * ysize CPU clocks later (the copy itself is instantaneous there), and so does this one, or when it is done if that is later.
- rtl/gunpey_blitter.sv:10 The ROM is read through a byte streamer: bursts of a row segment into a byte FIFO, wrapping to the next row at the segment's end as MAME does (the raw copy: the rectangle's width; the compressed format: the width in its first byte).
- rtl/gunpey_blitter.sv:11 The raw copy pairs the bytes into words; the decompressor reads bits from them, least significant first, one code in two clocks (rtl/gunpey_huff.svh, generated from MAME's table), and writes one pixel a clock.
- rtl/gunpey_blitter.sv:13 The format walks the sprite in 12 pixel wide strips, down the even ones and up the odd ones, and its copy codes read the row before in the strip (or the last column of the strip before, for the pixel left of the strip): those two are kept h
- rtl/gunpey_blitter.sv:34 a CPU clock: MAME's busy time counts them
- rtl/gunpey_blitter.sv:36 one clock: MAME's blitter_end
- rtl/gunpey_blitter.sv:60 the engine and the writer are done (the bench measures the time against MAME's)
- rtl/gunpey_blitter.sv:262 a blit is running (its engine, its writes, or MAME's time)
- rtl/gunpey_blitter.sv:265 MAME's busy time left, CPU clocks
- rtl/gunpey_blitter.sv:279 MAME restarts its timer at every start; a start while the engine runs waits for it
- rtl/gunpey_blitter.sv:464 MAME: "unknown compression mode", nothing drawn
- rtl/gunpey_core.sv:2 The Gunpey board (MAME 0.289 gunpey.cpp, Banpresto 2000): the V30 and its work RAM, the Axell AG-1 (the blitter and the display), the YMZ280B and the OKI M6295.
- rtl/gunpey_core.sv:26 the inputs, as MAME's ports (active high)
- rtl/gunpey_loader.sv:5 The image (mra/*.mra): 0x000000 maincpu 1 MB the V30's region as MAME loads it (gp_rom1 the even bytes, gp_rom2 the odd ones) 0x100000 blit_rom 4 MB gp_rom3, the blitter's source
- rtl/gunpey_loader.sv:10 0xB00000 4 MB of 0xFF the video RAM's first contents (MAME fills it with 0xFF) The SDRAM holds the image at byte address = image offset, except the video RAM's fill, which goes to byte 0x1000000.
- rtl/gunpey_main.sv:2 The Gunpey board's CPU side (MAME 0.289 gunpey.cpp mem_map / io_map): the V30 (rtl/gunpey_v30.sv), its clock, its memory and I/O, and the interrupt logic.
- rtl/gunpey_main.sv:11 7FF0 the display control: bits 6-5 the flip (not in MAME's map: the game writes 0x84 a frame, 0xE4 with the Flip Screen DIP on)
- rtl/gunpey_main.sv:14 MAME's irq_check: a cause (0x50 at the start of line 240, 0x04 when a blit ends) is or-ed in, and the line is raised while cause & mask is not zero, else dropped; the CPU's acknowledge drops it too (HOLD_LINE), until the next irq_check (a c
- rtl/gunpey_main.sv:67 the inputs, as MAME's ports (active high)
- rtl/gunpey_main.sv:218 ---------------------------------------------------------- I/O writes and the interrupt (MAME's irq_check)
- rtl/gunpey_main.sv:226 the low byte first (MAME calls an 8-bit handler's lanes in that order)
- rtl/gunpey_main.sv:234 the start takes the registers as they are before this write's high byte (MAME: the low byte's handler first)
- rtl/gunpey_sound.sv:2 The board's sound (MAME 0.289 gunpey.cpp): a YMZ280B (16.9344 MHz; rtl/gunpey_ymz280b.sv) and an OKI M6295 (16.9344 MHz / 8, pin 7 low: a sample every 165 of its clocks; jt6295, Jose Tejada, as the owner's other cores have it), whose 256 KB
- rtl/gunpey_sound.sv:6 MAME's mix: the YMZ280B at 0.25 into each side, the OKI (mono) at 0.125 into both.
- rtl/gunpey_sound.sv:6 In 16-bit units (a full-scale sample 32768) that is ymz / 4 + oki * 2 (jt6295's 14-bit sum is MAME's level * 2048); the output here is twice that, saturated.
- rtl/gunpey_sound.sv:126 ================================================================== the mix (MAME's, twice)
- rtl/gunpey_video.sv:2 The AG-1's display (MAME 0.289 gunpey.cpp screen_update / draw_gfx): the raster, the vblank interrupt, and the sprites.
- rtl/gunpey_video.sv:4 The raster is MAME's: a dot every 12 clocks (7.1553 MHz at 85.86 MHz), 442 dots a line, 264 lines, 320 x 240 visible; MAME starts the machine at the start of vblank (line 240), and so does this one coming out of reset (the first vblank come
- rtl/gunpey_video.sv:7 MAME draws a frame at the start of vblank from the display list in the CPU's work RAM: up to 64 scenes of 8 words from vreg_addr, each pointing (with vram_bank) to up to 256 sprites of 8 words; a sprite reads 4 or 8 bit pixels from the vide
- rtl/gunpey_video.sv:9 Here the list is copied at the start of line 240 (the CPU is held meanwhile, so the copy is MAME's instant: the game's vblank handler switches vram_bank a few lines later), with each drawable sprite's geometry worked out (the zoom steps by
- rtl/gunpey_video.sv:17 The flip (the AG-1's "built-in flip", which MAME does not have): the game writes 7FF0 every frame, 0x84, or 0xE4 with the Flip Screen DIP on, and changes nothing else.
- rtl/gunpey_video.sv:75 the first line (240) after reset has passed: MAME's first vblank is a frame later
- rtl/gunpey_video.sv:110 the sprite list's word index (MAME's int count against its u16 end)
- rtl/gunpey_video.sv:137 MAME: start_offs = (vram_bank + (s5 << 8)) / 2 and end_offs = (vram_bank + (s5 << 8) + 0x1000) / 2, ints kept as u16
- rtl/gunpey_video.sv:216 ================================================================== the palette mirror and the row buffer MAME's video RAM starts as 0xFF bytes: every colour transparent until the game writes it (Quartus: a memory initialisation file, its 65
- rtl/gunpey_video.sv:440 stage 2 -> 3: the darkening (MAME's draw_pixel), the line buffer's dot and the alpha level kept
- rtl/gunpey_ymz280b.sv:1 Yamaha YMZ280B (8-voice ADPCM / PCM8 / PCM16 player): the Jackie Chan core's jchan_ymz280b.sv (decoryah/Arcade-JackieChan_MiSTer), written from MAME 0.289 devices/sound/ymz280b.cpp, which is its reference: every register, the three decoders
- rtl/gunpey_ymz280b.sv:3 For Gunpey one change: the sample clock is a fraction of the system clock (TICK_NUM / TICK_DEN samples a clock; MAME's stream rate is 16.9344 MHz / 384 * 2 = 88.2 kHz, 85.8636 MHz * 49 / 47702).
- rtl/gunpey_ymz280b.sv:4 Output: one stereo sample a tick, as the 27-bit sum of the voices' `interp * level / 2` terms (`dbg_l` / `dbg_r`, exactly what MAME's `add_int(..., 32768 * 256)` accumulates) and as saturated 16-bit samples.
- rtl/gunpey_ymz280b.sv:8 What is and is not modelled (Gunpey's board, like jchan's, uses only the write side of the chip: 7F80 = register select, 7F81 = data): modelled voice registers 00-7f, global register ff (key-on enable, the "stop everything" side effect),
- rtl/gunpey_ymz280b.sv:14 How MAME's chunked stream is mapped onto a sample-by-sample machine (the argument is in docs/sound.md): * MAME generates samples in chunks that end at every data-port write and every 1/50 s (sound manager update); a write at stream index N
- rtl/gunpey_ymz280b.sv:18 * at a chunk start MAME parks idle voices (not playing, last two samples zero) at output_pos = 1.0 and skips them; the "ramp to zero" that fills the rest of a chunk after the end of a sample (t = t * 15 / 16 per decoded sample) ends at the
- rtl/gunpey_ymz280b.sv:21 * the interpolation position is advanced eagerly (right after an output that wrapped it) as MAME does, so a chunk always ends with output_pos < 1.0.
- rtl/gunpey_ymz280b.sv:30 the stream rate MAME uses (16.9344 MHz / 192); 50 Hz timer events derive from it
- rtl/gunpey_ymz280b.sv:84 MAME's sound manager updates every stream at k / 50 s (k >= 1); a stream index N = floor(k * TIMER_RATE / 50).
- rtl/gunpey_ymz280b.sv:225 the first sample starts a chunk (MAME's first stream update parks the idle voices)
- rtl/v30/v30u_eu.sv:304 --- the interrupt recognition (U2 pass 5; docs/facts/interrupt_model.md) --- The pins reach the decision through flops, and THAT is the whole mechanism: the ucore does NOT render `timed_runner.cpp`'s `D = max(B, A + pipe)`, which the third
- rtl/v30/v30u_eu.sv:2561 `timed_runner.cpp` states the geometry and it falls straight out of `B = D + 1`, `entry = B + 2`:
- README.md:4 Written from MAME 0.289's driver (`src/mame/misc/gunpey.cpp`), with MAME as the reference for everything; the platform layer follows the owner's Rabbit core ([d
- README.md:25 The buttons are named for what they do, measured in MAME: **Swap** (button 1: swaps the two panels in the cursor; it also confirms in the menus) and **Raise** (
- README.md:36 | Volume | Normal (twice MAME's level), -6 dB, -12 dB, +6 dB |
- README.md:38 | DIP switches | MAME's: difficulty (single and vs. mode), matches in vs. mode, demo sounds, flip screen, coin A / B, free play, continue |
- README.md:48 With the flip bits set (`FLIPX=1` / `FLIPY=1`, each alone and both), the play session's frames are MAME's mirrored the same way, dot for dot, in the same time.
- README.md:53 **The V30**, against MAME's I/O trace: with the board's memory and I/O modelled around it (`sim/run_v30.sh`), its first 627 I/O accesses are MAME's, value for v
- README.md:74 Where the core is not MAME
- README.md:76 **The CPU's speed.** The core's V30 is the Irem M72 core's, which runs every instruction in the real chip's clocks; MAME's V30 is faster on some, notably the st
- README.md:77 The core reaches the game's first I/O write at CPU clock 1109343, MAME at 718072, and runs about a frame and a half behind MAME from there.
- README.md:79 **The blitter's interrupt** comes at MAME's time (width x height CPU clocks after the start) or when the blit is done, if that is later; narrow raw blits (a wor
- README.md:81 **Drawing during the frame.** MAME draws a frame at once at the start of vblank; the core copies the display list then (the CPU held meanwhile, so the list is M
- README.md:86 MAME has no 7FF0 and shows the picture unflipped; the core turns it 180 degrees.
- README.md:93 MAME's own open points stay open: where the board's two frame buffers are in the video RAM, and whether the board shows the game at 60 or 30 frames a second (th
- README.md:94 MAME's raster (442 x 264 dots, 61.32 Hz) is used; the PCB's notes give 60 Hz / 15.79 kHz.
- README.md:98 The sound is MAME's chips (the YMZ280B from MAME's code, the OKI by jt6295) at twice MAME's mix level; compared with MAME's recording by correlation, not sample
- README.md:112 | `docs/` | `hardware.md`: the board as MAME describes it, what the game does with it, and the core's design |
- README.md:123 tools/mame_dump.sh ../work/dump "1000,2000" play # MAME's states, snapshots and blit log (Git Bash) W=$PWD/../work
- README.md:132 MAME's captures, the images and the benches' pictures go to a scratch folder `work/` next to the repository (never committed).
- README.md:136 **MAME**: the gunpey driver (Angelo Salese, Tomasz Slanina, David Haywood, Luca Elia, Morten Shearman Kirkegaard, who decoded the sprite compression), the YMZ28
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 7
- rtl/gunpey_blitter.sv:59 sticky: a compressed sprite had a bit string no code matches (MAME logs and abandons it)
- rtl/gunpey_video.sv:14 The game never writes the video RAM the shown frame reads after the frame's start (checked over 70000 frames of MAME), so drawing during the frame gives MAME's picture.
- README.md:42 **The blitter**, against MAME's video RAM: MAME's dumps (`tools/lua/dump_state.lua`: the work RAM, the video RAM and the registers at a frame, and every blit th
- README.md:46 **The display**, against MAME's snapshots: 23 dumped frames (attract mode, menus, play) drawn by `rtl/gunpey_video.sv` from MAME's state (`sim/run_frames.sh`) a
- README.md:50 **The C++ reference** (`tools/gunpey_ref`, MAME's code ported line for line): the same frames and blits, identical to MAME; it also checked that every compresse
- README.md:60 **The sound**, against MAME's `-wavwrite` recording of the same scripted session: the system bench's 48 kHz capture starts where MAME's does, at twice MAME's le
- README.md:83 The game never blits into what the shown frame reads after its start (checked over 70000 frames of MAME), apart from three blits in boot frames with nothing on