← All cores
Gondomania (Eggsecutioner528)
Cites hardware documentation that MAME's driver does not — 4
- rtl/gondo_main.v:11 Memory map (MAME ghostb.cpp gondo_state): 0000-17FF RAM, 1800-1FFF fix tile RAM, 2000-27FF background tile RAM, 2800-2BFF palette low, 2C00-2FFF palette extension, 3000-37FF sprite RAM, 3800-383B I/O, 4000-7FFF banked ROM, 8000-FFFF ROM.
- rtl/gondo_sound.v:8 0000-05FF RAM 2000-2001 YM2203 (write) 4000-4001 YM3526 (write) 6000 sound latch (read) 8000-FFFF ROM (32 KB)
- Readme.md:123 The hardware was worked out from MAME's driver source, the ROM code itself (read and traced, for example to find where each version keeps its high score table),
- Readme.md:140 | <img src="docs/readme/icons/jotego.png" height="72"> | **Jose Tejada (jotego)** | The JTCORES chip cores used here: `jt65c02`, `jt03`, `jtopl`, `jt49` and the
Says it was checked on “real hardware” — 1
- Readme.md:133 The rotary control and two player play need more testing on real hardware.
Cites MAME source — 28
- Gondomania.sv:124 DIP switches as in MAME's gondo: with every option on its first entry they read the factory defaults (FF and EF).
- Gondomania.sv:354 DIP switches as MAME's gondo reads them (see the menu above for how each option maps).
- Gondomania.sv:360 player 1: arrows, Ctrl, Alt, Z, X (as MAME)
- rtl/gondo_gfxrom.v:9 download: single bytes arrive in MAME region order and are written (one byte write each, scattered) to their place in the row format, 2.
- rtl/gondo_inputs.v:7 Gondomania player inputs as the main CPU and the i8751 read them (MAME ghostb.cpp gondo_state, local MAME 0.266 port list): 380A / 380C : ~(one-hot of the rotary position)[7:0] (player 1 / player 2) 380B / 380D : {~(one-hot)[11:8], r
- rtl/gondo_inputs.v:14 Turn Left steps the position up and Turn Right down (MAME defines this control with reverse="yes"; on the real hardware test the two directions were found swapped with the other assignment).
- rtl/gondo_loader.v:8 Layout of the stream (plain MAME region order, no interleave, written by tools/make_mra.py): 000000-05FFFF background tile ROM, MAME region (shared by all versions) -> SDRAM, reordered into 64 bit row words (gondo_gfxrom) then one block of
- rtl/gondo_loader.v:20 The 16 x 16 tile and sprite regions hold four bit planes in quarters of 0x18000 bytes (plane 3 first, plane 0 last, as MAME's gfx layout reads them); within a plane every tile takes 32 bytes, bytes 0-15 are the right half (x 8-15) of rows 0
- rtl/gondo_main.v:9 Behaviour calibrated against MAME with sim/tb_cpu.v (same glue written for simulation): see docs/PROJECT_NOTES.md.
- rtl/gondo_main.v:11 Memory map (MAME ghostb.cpp gondo_state): 0000-17FF RAM, 1800-1FFF fix tile RAM, 2000-27FF background tile RAM, 2800-2BFF palette low, 2C00-2FFF palette extension, 3000-37FF sprite RAM, 3800-383B I/O, 4000-7FFF banked ROM, 8000-FFFF ROM.
- rtl/gondo_main.v:26 character ROM download: the 32 KB region as in MAME (quarter 3 = plane 0, quarter 2 = plane 1, quarter 1 = plane 2)
- rtl/gondo_main.v:39 inputs as the CPU reads them (active level as MAME reads them: 1 = released)
- rtl/gondo_main.v:236 ------------------------------------------------------------------ NMI (vblank AND enable; MAME applies a new enable one opcode late)
- rtl/gondo_main.v:239 opcode starts: the cycle that just ended was an opcode fetch (LIC is high during it) (the enable written to 3830 bit 1 takes effect after the next two opcode fetches, as measured against MAME) -----------------------------------------------
- rtl/gondo_sound.v:7 Gondomania sound board: R65C02 (1.5 MHz), YM2203 (1.5 MHz), YM3526 (3 MHz), after MAME's garyoret_state::gondo_sound_map:
- rtl/gondo_sound.v:9 The main CPU's write to 3810 stores the command in the latch and gives the sound CPU an NMI that is released after 4 CPU cycles (MAME sound_w).
- rtl/gondo_sound.v:154 Mix after MAME's routing: YM2203 FM 0.40, each SSG channel 0.20, YM3526 0.50.
- rtl/gondo_sound.v:154 The gains (in 1/64) come from a fit against a MAME recording of the attract mode (tools/fit_audio_gains.py, per band energies): FM 54, YM3526 29 (this core's YM3526 output is about 2.3 times louder than MAME's for the same register writes).
- rtl/gondo_sound.v:156 The attract mode has no SSG sound, so its gain follows from jt03's own chip level balance (its mix is fm + 32 * ssg sum) with MAME's SSG : FM route ratio of 1 : 2, scaled like the FM gain: 54 * 32 / 2 / 64 = 13.5.
- rtl/gondo_sound.v:158 A replay of a MAME gameplay run (tools/mame_sndlog.lua, sim_core tb_snd) showed: the music is the YM3526, the sound effects are the YM2203 FM voices (the SSG is never used by this game), and 54 / 29 reproduce MAME's balance.
- rtl/gondo_sound.v:186 DC blocker (the SSG output is unsigned and its own DC removal needs seconds to settle after power on; MAME's output is centred): one pole high pass of about 4 Hz, updated at the 1.5 MHz enable
- rtl/video/gondo_video.v:18 raster position at reset release (the CPU simulation uses it to line the first NMI up with MAME)
- rtl/video/gondo_video.v:218 decide, two clocks after the issue, when the line buffer value has arrived: hidden pixels still mark the priority (MAME)
- Readme.md:127 The video, the CPU and the MCU were compared with MAME frame by frame and instruction by instruction in simulation.
- Readme.md:131 Then it makes one different random choice: the game reads its idle loop counter as a random number, and MAME and the core's CPU take an interrupt one cycle apar
- Readme.md:132 The exact positions of the sync pulses come from MAME's raster figures; the schematics keep them inside custom chips, so they were not measured on a real board.
- Readme.md:139 | <img src="docs/readme/icons/person.png" height="72"> | **MeatHax** | Author of the DEC8 (DECO 8 bit) core for MiSTer, which brought Gondomania to the platform
- Readme.md:143 | <img src="docs/readme/icons/doc.png" height="72"> | **The MAME project** | The driver source for the hardware and the reference used throughout |
Says it matches, follows or was checked against MAME — 4
- rtl/jt65c02/jt65c02_regs.v:99 to start up the same as MAME.
- rtl/video/gondo_video.v:8 Written from MAME's gondo video and verified against tools/render_frame.py, which matches MAME pixel for pixel.
- Readme.md:127 The video matches MAME's screenshots exactly through the first 1,700 frames of the attract mode, and the sound level and balance were fitted to a MAME recording
- Readme.md:131 In simulation the core's attract demo matches MAME write for write for the first 1,740 frames (about 30 seconds).