← コア一覧
SegaXBoard
MAMEのドライバにない実基板の資料を引用 — 1
「実機」で確認したと記載 — 6
- README.md:21 | M7 | After Burner and Thunder Blade | done: aburner (1.32/1.31), thndrbld1, thndrbldd confirmed on hardware; Thunder Blade pixel-exact vs MAME; FD1094 parent
- README.md:22 | M8 | Super Monaco GP | done: smgpd (decrypted bootleg) with the second sound board and driving inputs, pixel-exact vs MAME, confirmed on hardware; official FD
- README.md:24 | M10 | Racing Hero and A.B. Cop | done: six sets (bootlegs pixel-exact vs MAME, FD1094 parents), confirmed on hardware |
- README.md:25 | M11 | GP Rider | done: three single-board FD1094 sets, confirmed on hardware |
- README.md:26 | M12 | Last Survivor | done: input multiplexer, two players, bootleg and FD1094 sets, confirmed on hardware |
- README.md:27 | M13 | Line of Fire | done: six sets, lightgun/gamepad gun control with cursor speed and crosshair, confirmed on hardware |
MAMEとの相違点を記載 — 1
- README.md:165 `docs/DESIGN.md` records the results per milestone, and where the RTL deliberately differs from MAME.
MAMEのソースを引用 — 63
- rtl/audio/xb_segapcm_5218.sv:2 Sega 315-5218 PCM (SegaPCM), MAME segapcm.cpp with BANK_512 (bankshift 12, bankmask 0x70).
- rtl/audio/xb_segapcm_5218.sv:9 The sums are in MAME's 1/32768 units, i.e. directly 16-bit samples.
- rtl/audio/xb_segapcm_5218.sv:11 ROM bytes come from SDRAM port p6 (16-bit words, byte selected by A0); the stream pads the PCM slot with 0xFF like MAME's ERASEFF region.
- rtl/audio/xb_segapcm_5218.sv:42 MAME m_low: addr[7:0] per channel
- rtl/audio/xb_soundsys.sv:7 Mix: MAME routes PCM at 0.35 and the YM2151 at 0.15 of full scale.
- rtl/cpu/fd1094/jts16_fd1094_dec.v:146 decoding, pretty much copy-paste from MAME's fd1094.cpp I trust the synthesizer to simplify the equations
- rtl/cpu/xb_cmptimer_5250.sv:2 Sega 315-5250 compare / timer / 68000-Z80 interface Word offsets (address bits 4:1), reference MAME segaic16_m.cpp: 0,1 bounds (write executes compare) 3 flags: 0x8000 below min,
- rtl/cpu/xb_cmptimer_5250.sv:37 MAME's m_bit keeps counting; bits >= 16 fall off the u16
- rtl/cpu/xb_math_5248.sv:4 Reference: MAME segaic16_m.cpp.
- rtl/cpu/xb_math_5249.sv:10 Reference: MAME segaic16_m.cpp sega_315_5249_divider_device::execute.
- rtl/cpu/xb_math_5249.sv:74 operands as they are after this same write (MAME updates the register first, then executes)
- rtl/cpu/xb_math_5249.sv:151 MAME: remainder = dividend - clamped_q * divisor
- rtl/io/xb_adc0804.sv:6 Channel select = I/O chip #1 port C bits 4:2 (MAME, from the schematic).
- rtl/io/xb_adc0804.sv:7 Reference MAME adc0804.cpp + segaxbd.cpp analog_r.
- rtl/io/xb_adc0804.sv:49 sampled at end of conversion (MAME)
- rtl/io/xb_cxd1095.sv:6 Reference MAME cxd1095.cpp.
- rtl/io/xb_cxd1095.sv:22 latch & ~dir (as MAME's dataout)
- rtl/io/xb_cxd1095.sv:28 1 = input, per MAME m_data_dir
- rtl/io/xb_stick.sv:5 Three opt-ins: ramp the D-pad drives a virtual stick 5 counts a frame (full lock in 26 frames, near MAME's PORT_KEYDELTA(4) over 0x20..0xE0) instead of snapping ~recenter releasing the D-pad leaves the virtual stick where it is; the op
- rtl/mem/xb_fb_if.sv:5 Empty framebuffer pixel = 0xFFFF (MAME's transparent value).
- rtl/mem/xb_fb_if.sv:6 Services (per DESIGN.md): - erase_line(y): fill line with 0xFFFF - write_run(...): pixel run writes from the sprite renderer; wr_shadow runs RMW dest &= 0x7fff instead (MAME shadow sprites clear framebuffer bit 15) - read_line(y):
- rtl/video/xb_palette_5242.sv:4 Palette word: bit 15 = effects select (1 hilight / 0 shadow), 14:12 = LSB of B/G/R, 11:8 B, 7:4 G, 3:0 R (MAME paletteram_w).
- rtl/video/xb_road_5275.sv:2 Sega 315-5275 road generator (X Board), MAME segaic16_road.cpp segaic16_road_outrun_draw with the X Board parameters (colorbase 0x1700 / 0x1720 / 0x1780, xoffs -166, control mask 7).
- rtl/video/xb_road_5275.sv:73 MAME priority_map
- rtl/video/xb_road_5275.sv:141 background colour for this line (MAME ROAD_BACKGROUND pass)
- rtl/video/xb_sprite_5211.sv:4 Algorithm: MAME sega16sp.cpp sega_outrun_sprite_device::draw (xboard): w0: e------- -------- end of list; -h-h---- hide; ----bbb- bank; -------t tttttttt top + 256 w1: ROM offset (16-bit words of 32-bit pixels) w2: ppppppp- pitch (signed,
- rtl/video/xb_sprite_5211.sv:20 At vblank the buffers swap only if a render ran since the previous swap, so a frame without a $110000 write keeps displaying the old image exactly like the real chip (MAME's every-frame redraw of the buffered list is an emulator artefact wi
- rtl/video/xb_sprite_5211.sv:115 data[7] in MAME: the row's working pointer
- rtl/video/xb_sprite_5211.sv:116 `addr` above is the row base, advanced by pitch at each row end (MAME's addr)
- rtl/video/xb_sprite_5211.sv:134 pixel reordering for non-flipped sprites (MAME): reverse the nibble order
- rtl/video/xb_sprite_5211.sv:140 MAME clips to the screen
- rtl/video/xb_sprite_5211.sv:141 framebuffer x window: MAME clips to screen x 0..319 = fb x 190..509 (2x: 380..1019)
- rtl/video/xb_sprite_5211.sv:291 MAME: data[7] = addr at row start
- rtl/video/xb_sprite_5211.sv:306 MAME: second-to-last pixel of the group
- rtl/video/xb_sprite_5211.sv:362 skip an off-screen row but advance the base address exactly like MAME (its own state so row_sum has settled since the last yacc write)
- rtl/video/xb_tilemap_5197.sv:2 Sega 315-5197 tilemap generator, "16B" register layout (MAME segaic16.cpp tilemap_16b_*).
- rtl/video/xb_tilemap_5197.sv:7 Text RAM (word offsets): 0x740..0x743 page select set 0..3 (E80..E87) 0x748..0x74B y scroll set 0..3, bit 15 = column scroll on (E90..E97) 0x74C..0x74F x scroll set 0..3, bit 15 = row scroll on (E98..E9F) 0x7C0 + 0x20*layer + (y>>3)
- rtl/video/xb_tilemap_5197.sv:16 Tile word: 15 priority, 12:6 colour, 12:0 code (they overlap, as in MAME).
- rtl/video/xb_tilerom.sv:5 Plane 2 (third ROM, epr-11113) is pen bit 2 (MAME gfx_8x8x3_planar: RGN_FRAC(2,3) is the MSB plane).
- rtl/video/xb_video_timing.sv:4 MAME: m_screen->set_raw(MASTER_CLOCK/8, 400, 0, 320, 262, 0, 224).
- rtl/video/xb_video_timing.sv:61 Sync widths follow the System 16-family convention used by MAME's screen layout: hsync from 336..367 (32 px), vsync lines 240..243 (4 lines).
- rtl/xb_core.sv:161 ---------------------------------------------------------------- watchdog MB3773: kicked by I/O chip #1 port C bit 6 and by every vblank (MAME update_main_irqs).
- rtl/xb_core.sv:195 main 68000 RESET instruction -> sub CPU reset (MAME m68k_reset_callback)
- rtl/xb_core.sv:306 MAME writes 0xFFFF to word 0 of the bank handed back to the CPU after the swap ("hack for thunderblade"); it is invisible on After Burner II, so it is enabled per game through the descriptor.
- rtl/xb_core.sv:350 MAME: active low unknown -> 1), D6 = ADC /INTR (active high), D7 n/c
- rtl/xb_core.sv:352 MAME aburner2_motor_r / smgp_motor_r
- rtl/xb_core.sv:357 Last Survivor: I/O chip 1 port B reads one of four input groups selected by I/O chip 0 port D bits 6:5 (MAME lastsurv_muxer_w / lastsurv_port_r): 0 = P2 stick + aim, 1 = P1 stick + aim, 2 = attack buttons (P1 bit 4, P2 bit 0), 3 = nothing.
- rtl/xb_core.sv:360 The aim rotary is an 8-position encoder read back as a 4-bit active-low direction pattern (MAME lastsurv_position_table); it follows the right stick and keeps its last direction when released.
- rtl/xb_core.sv:390 Positions are 0..255 like MAME's lightgun ports; the ADC reversal of the Y channels comes from the descriptor (MAME install_loffire).
- rtl/xb_core.sv:438 MAME: set_display_enable(data & 0x20)
- rtl/xb_core.sv:441 After Burner: MAME's ranges X 0x20..0xE0, Y 0x40..0xC0 with PORT_REVERSE (stick up reads high), throttle on channel 2.
- rtl/xb_core.sv:485 driving (Super Monaco GP): steering 0x38..0xC8 on ADC0, gas 0x38..0xB8 on ADC1, brake 0x28..0xA8 on ADC2 (MAME ranges).
- rtl/xb_core.sv:501 GP Rider: steering full range 0x01..0xFF on ADC0, pedals 0x10..0xEF read the other way up from the rest of the driving games (MAME PORT_REVERSE on both pedals): released is 0xEF, floored is 0x10.
- rtl/xb_core.sv:807 crosshair overlay for the gamepad gun mode (P1 white, P2 yellow): the 0..255 positions map to the 320x224 screen as MAME's crosshairs do
- rtl/xb_core.sv:842 Super Monaco GP's second sound board (deluxe cabinet rear speakers): the same Z80 + 315-5218 without the YM2151, fed by the same 315-5250 latch and NMI (MAME appends soundcpu2 to the zint line; either Z80's port 0x40 read clears it).
- rtl/xb_pkg.sv:14 ---- video timing (MAME: MASTER_CLOCK/8, 400, 0, 320, 262, 0, 224) -----
- README.md:15 | M1 | Both 68000s boot, math/timer/IO chips pass unit tests, PC traces track MAME | done in sim (self-test screen check moves to M2) |
- README.md:20 | M6 | Hardware bring-up and timing closure | done: DIPs, NVRAM, MAME analog ranges, pause; zero negative slack all corners, 49% ALMs; ROM cache fill defect fix
- README.md:45 | Game | MAME set | ROM zips (MAME 0.289) | Main CPU |
- README.md:130 Needs Verilator, Icarus Verilog, Python 3.12 and MAME.
- README.md:232 **MAME** (mamedev.org) — the behavioural reference for the whole board: `segaxbd.cpp` and the 16-bit Sega device family (`segaic16`, `sega16sp`, `segaic16_road`
- README.md:236 Every custom chip model in `verif/models/` is a port of the MAME code, and MAME 0.289 produced the golden frames, traces and audio the RTL is checked against.
- README.md:239 **Charles MacDonald** — "Sega X-Board hardware notes" (2004), the real-hardware description of the sprite sequencing, memory map and I/O used where MAME simplif
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 6
- README.md:16 | M2 | Tilemap/text/palette pixel-exact against MAME | done in sim |
- README.md:21 | M7 | After Burner and Thunder Blade | done: aburner (1.32/1.31), thndrbld1, thndrbldd confirmed on hardware; Thunder Blade pixel-exact vs MAME; FD1094 parent
- README.md:22 | M8 | Super Monaco GP | done: smgpd (decrypted bootleg) with the second sound board and driving inputs, pixel-exact vs MAME, confirmed on hardware; official FD
- README.md:23 | M9 | FD1094 | done: decryptor unit-verified against MAME; encrypted Thunder Blade and Super Monaco GP (World, Rev B) pixel-exact vs MAME and confirmed on hard
- README.md:24 | M10 | Racing Hero and A.B. Cop | done: six sets (bootlegs pixel-exact vs MAME, FD1094 parents), confirmed on hardware |
- README.md:157 What the tests show: the custom chips are checked against Python ports of MAME's C++ (the 315-5248/5249/5250 over 10^5 random operations, the FD1094 over 30,000
MAMEから移植・書き写した、または取り入れたと記載 — 1
- rtl/video/xb_mixer.sv:2 X Board video priority mixer (315-5279 PAL + 315-5197 pixel bus), a direct port of MAME segaxbd_state::screen_update: road background -> [road fg if road_priority == 0] -> bg pri0 (mark 1) -> bg pri1 (2) -> fg pri0 (2) -> fg pri1 (4) -> [ro
MAMEの近似をそのまま採用 — 2
- rtl/xb_core.sv:190 GP Rider (MAME m_gprider_hack): with the link board absent the game must not see level 6, so timer+vblank together present level 4 (the timer follows after)
- rtl/xb_pkg.sv:53 ---- per-game descriptor (first 64 bytes of the stream) ---------------- byte 0: game id (0 = aburner2, 1 = aburner, 2 = thndrbld, ...) byte 1: flags: bit0 road_priority (0: road fg under tiles, 1: over) bit1 thndrbld sprite-RAM wipe hack b
MAMEドライバと同じ文言を含む(出典の明記なし) — 4
- rtl/cpu/xb_math_5249.sv:10 Reference: MAME segaic16_m.cpp sega_315_5249_divider_device::execute. — 共通の文言: sega/segaic16_m.cpp:180
- rtl/video/xb_sprite_5211.sv:379 yacc += vzoom; addr += pitch * (yacc >> 9); yacc &= 0x1ff — 共通の文言: sega/sega16sp.cpp:1208
- rtl/video/xb_video_timing.sv:4 MAME: m_screen->set_raw(MASTER_CLOCK/8, 400, 0, 320, 262, 0, 224). — 共通の文言: sega/segaxbd.cpp:1842
- rtl/xb_pkg.sv:14 ---- video timing (MAME: MASTER_CLOCK/8, 400, 0, 320, 262, 0, 224) ----- — 共通の文言: sega/segaxbd.cpp:1842