← コア一覧
SuperSlams (yaguboo)
実基板での測定値を記載 — 1
「実機」で確認したと記載 — 1
MAMEのソースを引用 — 112
- third_party/video/jt053936/jt053936.v:10 MAME only seems to implement the 16-bit interface, so it might have been the only one used on commercial games.
- projects/vsystem/super_slams/rtl/ss_main.sv:4 Memory map, suprslam.cpp:267-284.
- projects/vsystem/super_slams/rtl/ss_main.sv:34 MAME calls this "sprite buffer trigger?" and ignores it, drawing from live sprite RAM after vblank -- which for a whole-frame renderer is the same as drawing the end-of-frame state.
- projects/vsystem/super_slams/rtl/ss_main.sv:129 Fetch cycles only (FC = x10 is program space), latched between vblanks: a narrow range -> a loop, and its address says which one a wide range -> the program is running and the fault is elsewhere MAME's PC over 600 frames of boot spans
- projects/vsystem/super_slams/rtl/ss_main.sv:153 A frame is 801,000 clocks = 50,063 units dbg_cpu_miss cache misses served from SDRAM MAME's own trace through a driven match says the CPU wants 39,373 ROM words a frame and that an 8192-entry cache should leave 3,333 of them.
- projects/vsystem/super_slams/rtl/ss_main.sv:169 MAME's own figures over a driven workload (tools/ss_headroom.lua, 5,100 frames), banded by the same frame's worst-line sprite tiles: 0-15 tiles mean 3147 min 2299 32-47 mean 2467 min 885 64-79 mean 1845 min 453
- projects/vsystem/super_slams/rtl/ss_main.sv:189 suprslam.cpp:412 -- irq1_line_hold, and the driver's own notes mark levels 2..7 as unused stubs.
- projects/vsystem/super_slams/rtl/ss_main.sv:250 MAME 1.349 game-seconds per wall-second
- projects/vsystem/super_slams/rtl/ss_main.sv:251 board 0.78 -> 58 % of MAME's speed
- projects/vsystem/super_slams/rtl/ss_main.sv:258 Sized by simulating a direct-mapped cache over MAME's own access trace through a DRIVEN MATCH, before building anything (tools/ss_cpucache.lua):
- projects/vsystem/super_slams/rtl/ss_main.sv:320 ---- the sprite tile LUT is read LIVE, like MAME ------------------------
- projects/vsystem/super_slams/rtl/ss_main.sv:328 vsystem_spr.cpp reads m_sp_videoram[code] AT DRAW TIME, so live is what the reference does, and a snapshot taken at vblank is a different frame's mapping for anything animating fast.
- projects/vsystem/super_slams/rtl/ss_main.sv:403 What it is NOT is "draw from live RAM": that is what MAME does, and a scanline renderer cannot do it without tearing.
- projects/vsystem/super_slams/rtl/ss_main.sv:428 18 words are written every frame and MAME reads exactly one of them, the scroll at 0x04.
- projects/vsystem/super_slams/rtl/ss_main.sv:429 0x08 = 0x0100, 0x0A = 0xFFB3 (-77) and 0x0C = 0xFFE6 (-26) are written every frame and are UNKNOWN -- they smell like layer offsets, which is exactly what MAME's "sprite offset control?" TODO is missing, so two of them are wired to the debu
- projects/vsystem/super_slams/rtl/ss_main.sv:492 Three bits: the fourth is the wrap MAME's gfx_element does modulo the 32768 tiles the 4 MB BG ROM holds.
- projects/vsystem/super_slams/rtl/ss_main.sv:528 The game drives priority on PORT G, not H as suprslam.cpp assumes.
- projects/vsystem/super_slams/rtl/ss_top.sv:130 MAME never enables the SSG NOISE generator on this game (0 of 6,000 frames, all three channels) and its tone channels are on in 3 % of frames at volumes 0..4 of 31 -- 2.4 % of output RMS.
- projects/vsystem/super_slams/rtl/memory/ss_memarb.sv:132 5,610 misses on a busy frame makes that ~39,000 of 801,000 clocks, and MAME says the game has zero headroom above 80 on-screen sprite tiles.
- projects/vsystem/super_slams/rtl/memory/ss_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/super_slams/rtl/memory/ss_romcache.sv:97 Why bigger at all, measured (tools/ss_cpucache.lua over MAME's own access trace through a driven match, and the board's own cpu_miss counter):
- projects/vsystem/super_slams/rtl/memory/ss_romcache.sv:105 MAME says the game has ZERO headroom above 80 on-screen sprite tiles (dist/headroom_mame.txt), so that 9 % is the difference between a frame that fits and one that does not.
- projects/vsystem/super_slams/rtl/cpu/ss_m68k.sv:25 suprslam.cpp:417 says "divider not verified" -- 32 MHz / 2 is upstream guessing, and ours is the same guess.
- projects/vsystem/super_slams/rtl/cpu/ss_m68k.sv:31 ALWAYS OVERRIDDEN: ss_main.sv passes 3, for 48 / 3 = 16.000 MHz (suprslam.cpp:417, 32 MHz XTAL / 2).
- projects/vsystem/super_slams/rtl/cpu/ss_m68k.sv:88 MAME: irq1_line_hold, and its comment says "all irq vectors are the same", so the board has no vector generator.
- projects/vsystem/super_slams/rtl/video/ss_video.sv:4 Layer order, from suprslam.cpp:236-249:
- projects/vsystem/super_slams/rtl/video/ss_video.sv:13 MAME connects H instead and never sees the swap.
- projects/vsystem/super_slams/rtl/video/ss_video.sv:18 suprslam.cpp:456.
- projects/vsystem/super_slams/rtl/video/ss_video.sv:25 TODO(HARDWAREIZE): H_TOTAL 456 / V_TOTAL 262 and the 38-line vblank are accuracy = EMULATION_DERIVED, leaning on values MAME itself does not claim.
- projects/vsystem/super_slams/rtl/video/ss_video.sv:27 suprslam.cpp asks for set_refresh_hz(60) and set_vblank_time(2300 us) with a `hand-tuned` comment (UPSTREAM_TODO_AUDIT U7), and set_size is 512x512 -- a bitmap, not a raster.
- projects/vsystem/super_slams/rtl/video/ss_video.sv:172 The FG layer's hole is pen 15 and NOT pen 0 (suprslam.cpp:200), the BG layer has no hole at all, and the sprite layer carries its own opaque bit because it is sparse.
- projects/vsystem/super_slams/rtl/video/ss_video.sv:202 A third stage would put the flags a pixel behind the picture, which shows up as one wrong column at each edge of the active area and as an image offset by one against MAME -- small enough to be blamed on the CRTC totals, which are themselve
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:55 The -45 / -21 that MAME applies (suprslam.cpp:460 set_offsets) are the same 45 pixel clocks and 21 lines that the game itself programs into ctrl[00] / ctrl[01] at rest (FE98 / FF58, HARDWARE 6.1); on this core they are WHERE ss_crtc's syncs
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:63 TODO(HARDWAREIZE): the sync positions are the ones that make the game's registers land where MAME does.
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:69 MAME k053936.cpp builds 16.16 values: start = (256*v) << 5 = v << 13, step = s << 5 (s*256 << 5 with an x256 flag).
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:70 jt053936_counter keeps a 24-bit accumulator with start = {v, 8'd0} = v << 8 and step = s (s << 8 with the flag): EXACTLY MAME's value >> 5.
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:72 The source pixel is MAME (v >> 16) & 0x3FF = jt cnt[20:11] = x[9:0].
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:82 ---- known differences from MAME, none reached by measured frames ---------
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:86 MAME always stores them.
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:87 * The chip reads its registers in real time, a line ahead of the display; MAME draws the frame from the values at the end of it.
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:90 suprslam.cpp set_wrap(1) never clips, and the game holds ctrl[07][5] = 0, which jt053936_window reads as "layer disabled" -> ob = 1 on every pixel, while MAME and the board both show the layer.
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:148 Byte lanes on port A because MAME's linectrl_w uses COMBINE_DATA and the 68000 can reach it with LDS or UDS alone.
- projects/vsystem/super_slams/rtl/video/ss_psac.sv:220 Wrap is ON (suprslam.cpp:459 set_wrap(1)) over a 1024 x 1024 source: the low ten bits are the coordinate.
- projects/vsystem/super_slams/rtl/video/ss_roz.sv:8 Bottom of the stack and FULLY OPAQUE -- suprslam.cpp never calls set_transparent_pen on this tilemap, so colour 0 is a colour.
- projects/vsystem/super_slams/rtl/video/ss_roz.sv:83 MAME forms a 16-bit tile number as (data & 0xFFF) + (bank_reg[11:8] << 12) and then gfx_element wraps it modulo the 32768 tiles this 4 MB ROM holds -- so bank bit 3 is exactly that wrap.
- projects/vsystem/super_slams/rtl/video/ss_roz.sv:168 Wrap is ON (suprslam.cpp:459 set_wrap(1)) and the source is 1024x1024, so out-of-range simply wraps -- there is no "not drawn" case here, unlike NA-2 whose ROZ has wrap off.
- projects/vsystem/super_slams/rtl/video/ss_fgmap.sv:10 suprslam.cpp:200 calls set_transparent_pen(15) on this tilemap and nothing else on this board does.
- projects/vsystem/super_slams/rtl/video/ss_fgmap.sv:16 emu/video/generic.cpp:108 gives this layout an x order of {1,0,3,2,5,4,7,6}*4, so within each byte the LOW nibble is the LEFT pixel -- the opposite of the ROZ and sprite layers.
- projects/vsystem/super_slams/rtl/video/ss_fgmap.sv:87 The direction was traced through tilemap.cpp by the sibling lane rather than guessed -- two negations cancel and the obvious reading comes out backwards.
- projects/vsystem/super_slams/rtl/video/ss_fgmap.sv:94 Flip screen is applied to the FETCH coordinate, which is where MAME applies it for a tilemap.
- projects/vsystem/super_slams/rtl/video/ss_fgmap.sv:95 The sprite engine gets raw counters instead, because MAME does sprite flip inside the sprite maths.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:2 Super Slams -- Fujitsu CG10103 sprites (MAME's VSYSTEM_SPR)
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:4 pspikes.cpp includes vsystem_spr2.h and suprslam.cpp includes vsystem_spr.h; MAME keeps them in separate files because they are separate parts, and the attribute layout differs in five fields.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:30 There is NO per-sprite priority: suprslam.cpp never calls set_pri_cb.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:36 MAME transforms the field as `zoom = 32 - raw` and passes `zoom << 11` as a 16.16 scale to gfx_element::zoom_transpen, which is emu/drawgfxt.ipp:750-756 and 796:
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:47 Away from 1:1 the two disagree, and they disagree by INVERSION: at zoom 17 MAME reads source columns 0,1,3,5,7,9,11,13,14 across 9 destination pixels, and (c*zoom)>>5 reads 0,0,1,2,3,4,5,6 across 8 -- the left half of the tile stretched, in
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:58 Both are drawn, in order, which is what MAME does; this is not an off-by-one to be tidied away.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:208 vsystem_spr.cpp:53 -- "Zoom factor is not correct, the scale is probably non-linear" -- is upstream saying its OWN zoom is wrong.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:209 The table below reproduces MAME exactly and is therefore wrong in the same way, on purpose: matching a known reference beats improvising against none, and the sibling lane improvised and inverted the reciprocal (LESSONS L1).
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:221 Written out rather than divided, so the values can be checked against emu/drawgfxt.ipp by hand and so no divider appears in a per-pixel path.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:246 attr w2 bit 0 is map bit 16 and w3 is bits 15:0, but the LUT RAM this indexes holds 32768 words -- MAME would read past the end of its array.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:300 visit index -> tile index; a flipped block is visited in reverse while the map index still advances forwards, which is how MAME's loop is written.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:305 MAME: oy + ycnt * zoomy / 2, and C parses that as (ycnt * zoomy) / 2 -- accumulate THEN halve, so the spacing is not a uniform zoomy>>1.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:314 vsystem_spr.cpp:54 calls this wrap "just a hack" and guesses the chip decides per sprite.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:333 MAME clips inside drawgfx and pays for the tile regardless; we can decline it before the lookup.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:387 The block flip is folded in the way drawgfxt.ipp:796 does it -- the source accumulator starts at the far end and steps backwards, which forwards is (dstsize - 1 - index).
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:471 MAME would read out of bounds; the game does not go there (the largest index measured in 1200 frames is 0x3F80).
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:707 sim/tb_ss_sprite.sv compares every pixel against a model written from vsystem_spr.cpp, so a mistake here is caught before a bitstream rather than after a board session.
- projects/vsystem/super_slams/rtl/video/ss_sprite.sv:817 transparent pen is 15 -- vsystem_spr.cpp's m_transpen default
- projects/vsystem/super_slams/rtl/video/ss_io.sv:8 From references/upstream/mame/src/mame/vsystem/vs9209.cpp, which is BSD-3-Clause.
- projects/vsystem/super_slams/rtl/video/ss_io.sv:25 MAME connects no callback.
- projects/vsystem/super_slams/rtl/video/ss_io.sv:27 NEVER WRITTEN in 900 frames, and MAME could not act on it if it were, because the output callback only fires when the direction register is non-zero and the one write to offset F happens while the latch is still 0.
- projects/vsystem/super_slams/rtl/video/ss_io.sv:37 Writing a direction register also drives the port from its latch, if the direction changed towards output -- vs9209.cpp:127.
- projects/vsystem/super_slams/rtl/video/ss_io.sv:85 vs9209.cpp returns 0xFF from an unset input callback, and an undefined port reads as input-high because it is pulled up.
- projects/vsystem/super_slams/rtl/video/ss_io.sv:92 vs9209.cpp:78-92: live inputs on the bits configured as input, latched data on the bits configured as output.
- projects/vsystem/super_slams/rtl/video/ss_crtc.sv:10 visible 320 x 224 MAME visarea EMULATION-DERIVED
- projects/vsystem/super_slams/rtl/video/ss_crtc.sv:11 refresh 59.93 Hz vs MAME's 60 EMULATION-DERIVED
- projects/vsystem/super_slams/rtl/video/ss_crtc.sv:13 MAME uses set_size/set_visarea and NOT set_raw, so there is no hardware-derived raster in MAME at all -- the totals below are arithmetic that lands on 60 Hz and on the standard 15.70 kHz line rate using the PCB's own 14.31818 MHz crystal, w
- projects/vsystem/super_slams/rtl/video/ss_crtc.sv:17 Three numbers that were not fitted to each other agree to 5 %: 262 - 224 = 38 blank lines is 2417 us of vblank against the 2300 us MAME calls "hand-tuned".
- projects/vsystem/super_slams/rtl/video/ss_crtc.sv:44 MAME reaches the same picture with set_offsets(-45, -21); here the raster does it and the chip runs with offsets 0.
- projects/vsystem/super_slams/integration/ss_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:24 이 코어의 모든 회로는 MAME 드라이버(`suprslam.cpp`)와 그것이 부르는 장치 소스를 사양서로 삼아 HDL 로 새로 작성하거나, 검증된 오픈소스 CPU·사운드 코어를 연결해 만들었습니다.
- README.md:31 | MAME set | 공식 명칭 | 상태 |
- README.md:35 MAME 드라이버에는 이 세트 하나만 있습니다.
- README.md:50 직접 마련한 MAME ROM 세트 zip 을 SD 카드의 `/games/mame/` 에 넣습니다.
- README.md:52 zip 은 MAME 세트 이름 그대로 두고, 압축을 풀지 않습니다.
- README.md:121 MAME 드라이버와 스프라이트·053936·VS9209 장치 소스를 줄 번호와 함께 하드웨어 사양으로 옮겨 적고, MAME 를 실행해 레지스터 접근·메모리 대역폭을 실제로 측정한 뒤 설계를 시작했습니다.
- README.md:132 053936 은 처음에는 MAME 의 계산식으로 직접 만들었고, 2026-10-06 에 jotego 의 jt053936 으로 바꿨습니다(아래).
- README.md:143 어트랙트 전체 사이클이 나오고, **4 프레임이 MAME 와 픽셀 단위로 일치** (71,680 픽셀 중 불일치 0)했습니다.
- README.md:160 게임 자체의 I/O TEST 화면이 MAME 와 픽셀 단위로 일치하는 것을 확인했고, COIN3 와 SERVICE 입력 비트를 바로잡았습니다.
- README.md:185 게임이 쓰는 레지스터 값(라인 RAM 시작 위치 포함)을 그대로 쓰고, MAME 정렬 상수(-45/-21)와 값 덮어쓰기는 모두 없앴습니다.
- README.md:188 골든 대조: MAME 어트랙트에서 잡은 레지스터·라인 RAM 상태 36 프레임과 경계 조건·무작위 상태를 합친 104 프레임, 871 만 픽셀에서 이전 구현·새 구현·MAME 계산식의 좌표와 최종 BG 픽셀이 **모두 일치(불일치 0)**했습니다.
- README.md:205 먼저 **MAME 팀**에 깊이 감사드립니다.
- README.md:205 이 코어는 처음부터 끝까지 MAME 의 드라이버와 장치 소스를 사양서로 삼아 만들어졌습니다.
- README.md:206 메모리 맵, 레지스터 의미, 클럭, 스프라이트·타일·회전 레이어의 비트 배치까지, MAME 개발자들이 수십 년에 걸쳐 기록하고 다듬어 온 지식이 없었다면 시작조차 할 수 없었습니다.
- README.md:208 또한 MAME 를 실행해 얻은 덤프는 픽셀 대조와 대역폭 측정의 기준이 되었습니다.
- README.md:212 소스: https://github.com/mamedev/mame
- README.md:231 참고한 MAME 소스
- README.md:237 | MAME 파일 | 라이선스 | copyright-holders | 참고한 내용 |
- README.md:239 | `src/mame/vsystem/suprslam.cpp` | BSD-3-Clause | David Haywood | 드라이버 전체: 메모리 맵, 클럭, 인터럽트, 화면 타이밍, ROM 배치, 입력·DIP, 사운드 라우팅, 스프라이트 버퍼 처리 |
- README.md:240 | `src/mame/vsystem/vsystem_spr.cpp` / `vsystem_spr.h` | BSD-3-Clause | Nicola Salmoria, David Haywood | CG10103 스프라이트 속성, 체인, 확대·축소 |
- README.md:241 | `src/mame/vsystem/vsystem_spr2.h` | BSD-3-Clause | Nicola Salmoria, David Haywood | Power Spikes 의 스프라이트 칩과 다른 칩임을 확인하는 대조 |
- README.md:242 | `src/mame/vsystem/pspikes.cpp` | BSD-3-Clause | Nicola Salmoria | 같은 제조사 기판과의 차이 대조 |
- README.md:243 | `src/mame/vsystem/vs9209.cpp` | BSD-3-Clause | AJR | VS9209 입출력 포트 |
- README.md:244 | `src/devices/video/k053936.cpp` | BSD-3-Clause | David Haywood | 053936 레지스터 표와 회전·확대 계산. jt053936 교체 때 골든 대조 기준 |
- README.md:245 | `src/emu/drawgfxt.ipp` | BSD-3-Clause | Nicola Salmoria, Aaron Giles | 확대·축소 스케일러의 좌표 계산 |
- README.md:246 | `src/emu/tilemap.cpp` | BSD-3-Clause | Aaron Giles | 타일맵 플립 규칙, ROZ 그리기 |
- README.md:247 | `src/emu/video/generic.cpp` | BSD-3-Clause | Nicola Salmoria | 그래픽 레이아웃 |
- README.md:249 MAME 실행 파일은 계측 도구로도 사용했습니다(Lua 스크립트로 레지스터 접근과 화면을 덤프).
- README.md:265 **1차 완성 단계입니다.** MAME 가 쓰는 값을 그대로 옮기는 것이 목표였고, 실제 기판과의 직접 대조는 아직 하지 않았습니다.
- README.md:266 68000 / Z80 / YM2610 클럭과 전체 래스터 크기(456 x 262)는 MAME 값이며, MAME 자신도 이 클럭들에 "not verified" 라고 적어 두었습니다.
- README.md:273 MAME 도 이 칩을 장치로 모델링하지 않습니다.
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 2
MAMEドライバと同じ文言を含む(出典の明記なし) — 3