← All cores
PowerSpikes (yaguboo)
Cites hardware documentation that MAME's driver does not — 1
Cites MAME source — 92
- projects/vsystem/power_spikes/rtl/ps_top.sv:103 docs/HARDWARE.md section 3 says Power Spikes writes 0x57 and 0x77 there; reading them back off real hardware turns that from a MAME comment into a measurement.
- projects/vsystem/power_spikes/rtl/ps_top.sv:280 Sprite RAM is write-only from the CPU (MAME maps it .writeonly()), so its A-port read is unused; the sprite engine reads it on the B port.
- projects/vsystem/power_spikes/rtl/ps_top.sv:344 MAME uses `irq1_line_hold`, and HOLD_LINE means held until the CPU ACKNOWLEDGES it -- MAME clears it in its IRQ callback.
- projects/vsystem/power_spikes/rtl/ps_top.sv:768 MAME cannot answer this: it renders a whole frame from one snapshot at screen_update time and never sees the race.
- projects/vsystem/power_spikes/rtl/ps_top.sv:778 The first version ORed sprite, tilemap, raster and palette writes and remembered the last of them -- and the same mistake, made first in the MAME lua, is what produced a "burst width" of p99 33.9 lines that turned out to be a sparse VRAM tr
- projects/vsystem/power_spikes/rtl/ps_top.sv:782 Asked per region, MAME says raster and palette always finish inside blanking and only sprite and tilemap ever run past it.
- projects/vsystem/power_spikes/rtl/ps_top.sv:786 MAME measured the same quantity on the same game, with an unobstructed 68000: sprite median 7.6 lines, p99 34.2, max 89.0, and tilemap present on only 24 frames of 539 and past line 16 on every one of them.
- projects/vsystem/power_spikes/rtl/ps_top.sv:803 ...and where the burst STARTS, which is what separates the two explanations for it ending at line 23-25 where MAME's ends at 7.6.
- projects/vsystem/power_spikes/rtl/ps_top.sv:806 starts near line 0 -> the burst is ~23 lines wide against MAME's ~7, so this core's 68000 really is that much slower starts near line 16 -> the burst is the SAME width as MAME's and simply begins 16 lines late, which is an interrupt-phas
- projects/vsystem/power_spikes/rtl/ps_top.sv:812 Worth measuring rather than reasoning about, because the ROM-throughput counters say this CPU is only 1.33x slower than MAME's, and 1.33 does not produce 3.1.
- projects/vsystem/power_spikes/rtl/ps_top.sv:815 ...and HOW MANY sprite words the frame writes, because "the burst is wider than MAME's" is only a statement about speed if the work is the same.
- projects/vsystem/power_spikes/rtl/ps_top.sv:817 MAME, over the whole 57-second attract loop, writes 65+ words on 2268 of 3479 frames and finishes those by line 10.2 (p90 16.4, max 18.2); this board finishes at 24.
- projects/vsystem/power_spikes/rtl/ps_top.sv:819 If the board is writing far more words than any MAME frame, the difference is the scene, not the core.
- projects/vsystem/power_spikes/rtl/ps_main.sv:113 irq1_line_hold in MAME: asserted at vblank, released when the CPU acknowledges.
- projects/vsystem/power_spikes/rtl/ps_main.sv:145 Decoded exactly as MAME lists the ranges.
- projects/vsystem/power_spikes/rtl/memory/ps_romcache.sv:20 Its whole per-frame video update runs in one burst inside vertical blanking, and MAME -- the same game, an unobstructed 68000 -- finishes that burst at line 16.1 where this core's blanking ends at 16.
- projects/vsystem/power_spikes/rtl/memory/ps_memarb.sv:34 MAME's own sprite load makes the same prediction: 14 tile-rows on the busiest line of the demo match is about 756 clocks, and 756 clocks is 135 pixels of a 352-pixel line.
- projects/vsystem/power_spikes/rtl/memory/ps_memarb.sv:50 MAME's YM2610 was dumped and read its ADPCM-A ROM ~9 300 times a second against this board's 655 000, which was written up as a seventyfold over-fetch.
- projects/vsystem/power_spikes/rtl/memory/ps_memarb.sv:52 It is not: MAME's device model counts the bytes its decoder consumed, while jt10 -- like the real chip -- reads its ROM pins once per 666 kHz slot across six interleaved channels.
- projects/vsystem/power_spikes/rtl/memory/ps_memarb.sv:87 A byte that arrives after the slot has moved on is a WRONG NIBBLE, and jt10_acc amplifies ADPCM-A by 7.25x on its way into the mix, so one wrong nibble becomes an output step that correct audio never makes: measured at 15 jumps over 2048 in
- projects/vsystem/power_spikes/rtl/cpu/ps_m68k.sv:79 MAME: irq1_line_hold, and its comment says "all irq vectors are the same", so the board has no vector generator.
- projects/vsystem/power_spikes/rtl/video/ps_tilemap.sv:18 tile_x = (bitmap_x + rasterram[screen_y]) & 0x1FF tile_y = (bitmap_y + scrolly) & 0x0FF bitmap_x = screen_x + 4 (MAME visarea starts at x = 4)
- projects/vsystem/power_spikes/rtl/video/ps_tilemap.sv:25 ---- pixel order -------------------------------------------------------- gfx_8x8x4_packed_lsb, from src/emu/video/generic.cpp: x order { 1*4, 0*4, 3*4, 2*4, ...
- projects/vsystem/power_spikes/rtl/video/ps_tilemap.sv:101 MAME's own raster RAM holds 0x1FE7 (mod 512 = 487) for EVERY line from 0 to 183, so the message row and the court share one scroll value there -- yet on the board the message row lands 2 character cells (16 px) right of MAME's while the cou
- projects/vsystem/power_spikes/rtl/video/ps_tilemap.sv:131 MAME has no pipeline -- it draws each row with that row's own scrollx -- so the two disagree in exactly the leftmost tile, which is what a board-vs-MAME comparison measured: the leftmost 8 columns differ on every frame, 1010-1225 pixels of
- projects/vsystem/power_spikes/rtl/video/ps_tilemap.sv:160 H_FETCH_LEAD = MAME's visarea offset (4) plus the pipeline lead, and the TOTAL was calibrated against MAME rather than reasoned about.
- projects/vsystem/power_spikes/rtl/video/ps_tilemap.sv:161 Sweeping the background band of a board screenshot against MAME's own frame gave
- projects/vsystem/power_spikes/rtl/video/ps_tilemap.sv:182 Measured: with the early scroll alone the leftmost 8 columns still differed from MAME on 805-1054 of 1920 pixels, and the colours were another tile's, not a shifted version of the right one.
- projects/vsystem/power_spikes/rtl/video/ps_tilemap.sv:229 Using vcnt alone left exactly eight pixels wrong in the whole frame: row 0, columns 0-7, black where MAME had tile colour.
- projects/vsystem/power_spikes/rtl/video/ps_dbg.sv:43 Reading them back off real hardware turns a MAME comment into a measurement, and is the first step towards decoding the GGA's timing registers.
- projects/vsystem/power_spikes/rtl/video/ps_dbg.sv:112 Row 36 full 16-bit max-held peak |snd_l| MAME reaches 1350-4059 Row 37 full 16-bit max-held peak |snd_r| in its own attract, so a working chip must show four figures here.
- projects/vsystem/power_spikes/rtl/video/ps_dbg.sv:117 Row 38 ADPCM-A key-on writes (bank 1 register 00) MAME: 230 in 8 s Row 39 FM key-on writes (bank 0 register 28) MAME: 76 in 8 s These shadow jt12's own address latch, so they count writes that reached a REGISTER, not writes that r
- projects/vsystem/power_spikes/rtl/video/ps_dbg.sv:125 MAME does 10-18 k/s of these against 500 writes, so a board that does far fewer is not polling the chip the way the real driver does.
- projects/vsystem/power_spikes/rtl/video/ps_dbg.sv:128 Row 42 last {register, data} written to bank 1 -- a spot check that the values arriving are the values MAME writes.
- projects/vsystem/power_spikes/rtl/video/ps_dbg.sv:133 MAME writes it 932 times in 8 s = 116/s, once per timer service, and each service is what advances the music.
- projects/vsystem/power_spikes/rtl/video/ps_video.sv:4 Layer order on this board (MAME screen_update_pspikes): tilemap -> sprites priority 1 -> sprites priority 0 The tilemap is the bottom layer, it is OPAQUE (no transparent pen), and there is nothing under it -- so palette entry 0 is never
- projects/vsystem/power_spikes/rtl/video/ps_video.sv:13 Palette: 2048 entries of xRGB555 = xRRRRRGGGGGBBBBB (MAME emupal.h).
- projects/vsystem/power_spikes/rtl/video/ps_video.sv:136 Power Spikes is a cocktail-capable board and MAME marks its cocktail support "preliminary", so this is the least-trustworthy part of the file.
- projects/vsystem/power_spikes/rtl/video/ps_video.sv:166 The sprite engine runs on RAW hcnt/vcnt, not the flipped coordinates: it renders into a line buffer indexed by the sprite's own X, and MAME applies flip_screen inside the sprite maths (ox -> 308-ox, and the flip bits invert).
- projects/vsystem/power_spikes/rtl/video/ps_crtc.sv:11 The game writes twelve GGA registers once, in the first ~100 us after reset, and never again (MAME tap, tools/mame/ps_gga.lua; all four sets write the identical values).
- projects/vsystem/power_spikes/rtl/video/ps_crtc.sv:21 the written values land exactly on three numbers that were established independently of them: MAME's visarea width 352, the 240 visible lines the game itself declares through raster RAM (HARDWARE.md section 2), and the 456 x 256 totals that
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:22 MAME advances the index once per tile and then applies a correction per row (handle_xsize_map_inc): +1 for xsize 2, +3 for 4, +2 for 5, +1 for 6.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:29 The hardware lays sprite tiles out in power-of-2 blocks; MAME's four special cases are that one fact written as a table.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:41 MAME's own header says the zoom is "probably not 100% accurate" and that pspikes' zooming attract-mode text "is horrible", so this is the first place a pixel comparison should be expected to disagree.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:45 ---- layering ----------------------------------------------------------- MAME draws pri==1 sprites, then pri==0, both over the tilemap, each pass walking the list from `first` UP to the end, and later writes winning -- which is the same pi
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:119 The arithmetic for the screen that flickers -- 29 list entries, six 1x1 unzoomed hits -- comes to about 476 clocks of non-ROM work against a 2549-clock line, so either the time went into S_ROM waiting on SDRAM, or the list the FPGA walks is
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:142 --- The board's attract is never at the same instant as MAME's, so absolute positions cannot be compared.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:144 map_base and the tile_no it resolves to CAN be: the sprite lookup RAM is a character table and is largely static, so `does lut[map_base] here equal lut[map_base] in MAME` is a fair question at any moment.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:157 tile_no is known, so these four words can be compared against roms/pspikes.bin directly with no board-vs-MAME timing question.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:302 MAME mirrors the sprite's ORIGIN and negates the per-tile offsets, on top of inverting the flip bits:
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:308 (vsystem_spr2.cpp).
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:379 Computed signed and masked afterwards, the way MAME's int arithmetic does it.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:585 MAME walks 0x1f8 DOWN to `first`, twice, pri==1 then pri==0 -- and it is FIRST-WRITE-WINS, not last.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:586 `prio_zoom_transpen` adds priority bit 31 to its mask, writes a non-transparent pixel only where the existing priority is unmasked, and then stamps that pixel 31, so no later sprite can replace it (drawgfx.cpp:1225, drawgfxt.ipp:216).
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:605 MAME: for (attr = 0x1F8; attr != first-4; attr -= 4).
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:681 Every text line on that screen measures 16 px right of MAME's while the background measures 0, the same offset the message line shows.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:692 sx is MAME's ox + zoomx*cx/2, wrapped; this module then blits at sx-4.
- projects/vsystem/power_spikes/rtl/video/ps_sprite.sv:697 ox, sx and blit_x now all land on overlay page 2, so one screenshot carries the whole chain: ox -> sx (MAME's formula) -> blit_x (sx-4) -> tile_w pixels
- projects/vsystem/power_spikes/integration/ps_download.sv:14 tools/build_rom.py has already byteswapped the 68000 region relative to the file on disk (MAME's ROM_LOAD16_WORD_SWAP), so the two conventions meet exactly here.
- README.md:27 어트랙트 화면은 MAME 가 그린 프레임과 픽셀 단위로 비교했고, 일치하는 장면 14 장 중 5 장은 84,480 픽셀 전부가 MAME 와 같았습니다.
- README.md:34 | MAME 세트 | 공식 명칭 | 상태 |
- README.md:36 | `pspikes` | Power Spikes (World) | **실기에서 플레이 확인.** 1인·2인 플레이, 사운드, 화면 반전, MAME 픽셀 대조까지 확인 |
- README.md:37 | `pspikesk` | Power Spikes (Korea) | ROM 구성이 MAME 의 CRC 와 일치함을 확인. 부모 세트와 68000 프로그램 ROM 만 다르며, 실기 플레이는 별도로 기록되지 않음 |
- README.md:56 직접 마련한 MAME ROM 세트 zip 을 SD 카드의 `/games/mame/` 에 넣습니다.
- README.md:58 zip 은 MAME 세트 이름 그대로 두고, 압축을 풀지 않습니다.
- README.md:116 주소 디코드와 메모리 맵은 MAME 의 `pspikes_map` 을 그대로 옮기고 FBNeo 로 교차확인했습니다.
- README.md:117 수직 귀선 인터럽트는 MAME 의 `irq1_line_hold` 와 같이 **CPU 가 응답(IACK)할 때까지 유지**되며, 응답은 fx68k 의 FC=111 버스 사이클에서 직접 끌어냅니다.
- README.md:120 128 KB 프로그램 ROM 은 블록 RAM 에 두어 대기 없이 읽히게 했고, 사운드 래치는 MAME 처럼 응답을 분리한 양방향 래치 + NMI 입니다.
- README.md:122 포트 맵은 같은 드라이버 안의 비슷한 맵이 아니라 `spinlbrk_sound_portmap` 이 맞다는 것을 MAME 와 FBNeo 양쪽에서 확인했습니다.
- README.md:126 다음 줄을 미리 그리는 블리터를 페치와 분리해 한 줄 안에 일을 끝내고, 확대·축소와 화면 반전 시의 원점 미러링, 겹침 순서는 MAME 의 `vsystem_spr2` 와 `drawgfx` 규칙을 따릅니다.
- README.md:129 라인 단위 스크롤의 부호 규칙은 MAME 의 `tilemap.cpp` 에서 확인했습니다.
- README.md:140 DIP 표 12 항목은 MAME 와 자동으로 대조하는 검사기로 확인했습니다.
- README.md:167 각 줄의 첫 타일을 가져오지 않던 문제와, 줄 왼쪽 끝이 이전 줄의 스크롤 값을 쓰던 문제를 고쳐 MAME 와의 차이를 3,333 픽셀에서 0 으로 줄였습니다.
- README.md:182 보드 프레임 20 장을 MAME 와 대조해 14 장이 같은 장면으로 매칭됐고 그 중 5 장은 픽셀 차이 0 이었습니다.
- README.md:196 무엇보다 **MAME 팀**에 깊이 감사드립니다.
- README.md:196 수십 년에 걸쳐 아케이드 기판을 분석하고 기록해 온 MAME 가 없었다면 이 기판의 메모리 맵, 클럭, ROM 구성, 그래픽 형식, 스프라이트 규칙을 알아낼 방법이 없었을 것입니다.
- README.md:198 이 코어의 동작이 맞는지 판단하는 기준도 언제나 MAME 였습니다.
- README.md:199 — https://www.mamedev.org/ , https://github.com/mamedev/mame
- README.md:216 참고한 MAME 소스
- README.md:218 MAME 소스는 하드웨어 사실(메모리 맵, 클럭, ROM 구성, 비트 배치, 동작 규칙)을 확인하는 데 읽었으며, MAME 의 C++ 코드를 RTL 로 옮겨 적지는 않았습니다.
- README.md:219 MAME 는 프레임 단위로 그리는 구조라 이 코어의 스캔라인 페치·라인 버퍼·중재기 구조는 MAME 에 대응하는 부분이 없습니다.
- README.md:221 참고한 MAME 커밋: `446356f29ee59b4f2dad4f93408b1aaa33fae926`.
- README.md:223 | MAME 파일 | 라이선스 | copyright-holders | 참고한 내용 |
- README.md:225 | `src/mame/vsystem/pspikes.cpp` | BSD-3-Clause | Nicola Salmoria | 드라이버 전체: 68000·Z80 메모리 맵(`pspikes_map`, `spinlbrk_sound_portmap`), 클럭, `irq1_line_hold` 인터럽트
- README.md:226 | `src/mame/vsystem/vsystem_spr2.cpp` | BSD-3-Clause | Nicola Salmoria, David Haywood | 스프라이트 속성 디코드, 순회 순서, 확대·축소, 화면 반전 시 원점 미러링 |
- README.md:227 | `src/emu/drawgfx.cpp`, `src/emu/drawgfxt.ipp` | BSD-3-Clause | Nicola Salmoria, Aaron Giles | 스프라이트 확대·축소 시 픽셀 샘플링 규칙과 겹침 처리 |
- README.md:228 | `src/emu/tilemap.cpp` | BSD-3-Clause | Aaron Giles | 타일맵 스크롤 값의 부호 규칙 |
- README.md:229 | `src/emu/video/generic.cpp` | BSD-3-Clause | Nicola Salmoria | `gfx_8x8x4_packed_lsb` 타일 그래픽 비트 배치 |
- README.md:232 **FBNeo** (`src/burn/drv/pst90s/d_aerofgt.cpp`, 커밋 `da70e8799370ad64a44f9e79e0c5114b4f6dda92`) 는 MAME 에서 확인한 사실을 독립적으로 교차확인하는 용도로만 읽었습니다 (예: Z80 포트 맵).
- README.md:255 사운드는 귀와 출력 레벨(MAME 대비 약 94 %)로 확인했으며, YM2610 레지스터 쓰기를 MAME 와 하나하나 대조하지는 않았습니다.
- README.md:261 MAME 자체도 어트랙트의 확대 글자 표현이 완벽하지 않다고 적고 있어, 그 장면은 MAME 와 정확히 일치하지 않을 수 있습니다.
- README.md:263 수직 귀선 중 게임의 비디오 갱신이 MAME 보다 약 한 줄 늦게 끝나는 경우가 있습니다(16 줄 귀선 대비 최대 17 번째 줄).
Says it matches, follows or was checked against MAME — 5
Says it was translated, ported or taken from MAME — 2
Keeps a MAME approximation — 1
Shares text with the MAME driver without saying so — 3