← コア一覧
Blasteroids
MAMEのドライバにない実基板の資料を引用 — 161
- Arcade-Blasteroids.sv:46 The Whirly-Gig counter is the Atari LETA custom at 8A, inside blstroid_main.
- Arcade-Blasteroids.sv:153 Button 4 is sheet 12's D3 "spare", which is unwired in a cabinet but IS displayed by the self test, so it is mapped rather than tied off - that is what lets a user confirm the whole input path from the Switch Test.
- Arcade-Blasteroids.sv:281 The counter itself is the Atari LETA custom at 8A, inside blstroid_main where sheet 4 puts it; this module only synthesises the CLK/DIR pin pair that reaches it.
- Arcade-Blasteroids.sv:426 DW = 24: the colour RAM is xRGB 5:5:5 (SP-316 sheet 12) and the core expands it through the R/2R DAC transfer, so it hands over 8 bits per channel.
- rtl/blstroid_core.sv:12 blstroid_rom_loader / _prog_rom / _ram8 / _sdram_loader / _gfx_mem / _sdram the ioctl download, the 256 KB program ROM and the 64 KB sound ROM in BRAM, and the graphics SDRAM blstroid_main SP-316 sheets 2-5 and 12: fx68k, the addre
- rtl/blstroid_core.sv:45 `blstroid_vram` still drives `vram_a` and still latches VD15 into the 4K LS174B on 4H, so `PFM2` — the row-interrupt condition — still comes from the sheet-6 latch regardless of who owns the array.
- rtl/blstroid_core.sv:104 The SOS-2 counts V internally and the schematics do not settle 262 against the 263 the same Atari sync-generator family produces, so this is a build-time parameter; rebuild with 263 to try it.
- rtl/blstroid_core.sv:143 `blstroid_whirly` in Arcade-Blasteroids.sv synthesises them from the MiSTer spinner / paddle / mouse / d-pad; the COUNTER is the LETA custom at 8A, inside blstroid_main where sheet 4 puts it.
- rtl/blstroid_core.sv:153 D3 is sheet 12's "spare" and it is not a Start button.
- rtl/blstroid_core.sv:167 ---- video out (single clk_sys domain, qualified by ce_pix) ---- 8 bits per channel: colour RAM is xRGB 5:5:5 (sheet 12) and the DAC transfer widens it to 8, so the core's output bus is 8-bit and arcade_video is instantiated with DW = 24.
- rtl/blstroid_core.sv:376 Video board — SP-316 sheets 4 to 11
- rtl/blstroid_core.sv:473 Main board — SP-316 sheets 2, 3, 4, 5 and 12
- rtl/blstroid_core.sv:536 JSA I audio PCB — SP-316 sheets 14 to 17
- rtl/blstroid_core.sv:561 The board's own self-clearing periodic divider (sheet 17), not MAME's free-running model of it; the sheet-16 low-pass is real hardware and stays in circuit.
- rtl/main/blstroid_addr_decode.sv:3 Blasteroids 68000 address decode — SP-316 sheet 3, gate for gate.
- rtl/main/blstroid_addr_decode.sv:6 Structure from the Xybots MiSTer core's rtl/main/xybots_addr_decode.sv (GPL-3.0, same author); every equation below is read off SP-316 sheet 3 rather than taken from MAME's main_map.
- rtl/main/blstroid_addr_decode.sv:61 ---- the SLAPSTIC socket ------------------------------------------------- Decoded and exported because sheet 3 draws it; it reaches nothing.
- rtl/main/blstroid_addr_decode.sv:62 The 2A socket is empty ("The SLAPSTIC chip is not installed", sheet 3) and the 4A LS157 that would substitute its bank bits is strapped to its B inputs by R77, so 038000-03FFFF is plain program ROM.
- rtl/main/blstroid_addr_decode.sv:160 A22..A18, A17 (the ROM-pair /CE, consumed inside blstroid_prog_rom) and A8..A1 (consumed by the RAMs, the priority RAM, the LETA's A2 and the button mux's A1) reach no decoder on sheet 3.
- rtl/main/blstroid_cpu.sv:3 Blasteroids main CPU — fx68k (cycle-exact 68000) wired as SP-316 sheet 2 draws the 2C U68000.
- rtl/main/blstroid_cpu.sv:19 ---- clock enables ------------------------------------------------------ fx68k is fully synchronous on `clk` (= clk_sys, 57.272724 MHz) and takes TWO enables per CPU clock, one per phase of the nominal 7.15909 MHz /7M: enPhi1 -> the CPU cl
- rtl/main/blstroid_cpu.sv:29 ---- pins as sheet 2 wires them ----------------------------------------
- rtl/main/blstroid_cpu.sv:52 `oHALTEDn` (fx68k's double-bus-fault output) has no load on sheet 2 and is left open.
- rtl/main/blstroid_cpu.sv:57 BERRn is tied inactive: sheet 2 has no bus-error source at all.
- rtl/main/blstroid_cpu.sv:59 ---- /VPA and autovectoring -------------------------------------------- Sheet 2 makes /VPA = ~(AS & FC0 & FC1 & FC2) (1D LS20) and wires it both to the 68000's VPA pin and to the 12C LS163A's ENT, so an FC = 7 cycle deliberately gets no /D
- rtl/main/blstroid_cpu.sv:128 double bus fault; no load on sheet 2
- rtl/main/blstroid_dpram_be.sv:13 Byte writes on either lane must be honoured independently (SP-316 sheet 12); * the colour RAM at FFA000-FFA3FE, 512 x 16 (AW = 9): 0x000-0x0FF are the motion-object palettes, 0x100-0x1FF the playfield palettes, xRGB 5:5:5.
- rtl/main/blstroid_dtack.sv:3 Blasteroids /DTACK generator — SP-316 sheet 2 (12C LS163A + 11C LS11 + 11D LS74 + 14/15B LS74 upper + 16A LS260).
- rtl/main/blstroid_dtack.sv:7 Derived from the Xybots MiSTer core's rtl/main/xybots_dtack.sv (GPL-3.0, same author), re-done gate for gate off SP-316 sheet 2.
- rtl/main/blstroid_dtack.sv:15 ---- 12C LS163A, the wait-state counter -------------------------------- CK (2) = /7M (the 68000 clock) CLR (1) = 11C LS11 pin 12 = /WAITHBL & /VIDRAM & AS (sync clear) LD (9) = QD (11) (self-load fee
- rtl/main/blstroid_dtack.sv:37 and the clock chain, all sheet 2: g12B = 12B LS32 (9,10->8) = /1H | 2H g13D = 13D LS10 (1,2,13->12) = ~( /1H & 2H & 4H )
- rtl/main/blstroid_dtack.sv:61 A write to FF8E00 asserts /WAITHBL, which also holds the LS163A cleared (11C LS11), so no acknowledge is produced until the rising edge of HBLANK — the CPU stalls inside the bus cycle for up to a whole scan line (~63.7 us).
- rtl/main/blstroid_dtack.sv:108 ---- 12C LS163A ------------------------------------------------------
- rtl/main/blstroid_eeprom_2804.sv:3 Xicor X2804A (512 x 8) EEPROM at 2A/B, plus the 14/15B LS74 unlock latch — SP-316 sheet 3.
- rtl/main/blstroid_eeprom_2804.sv:18 The socket is wired for a 2816 (2 K x 8) but the fitted X2804A is 512 x 8 (A0..A8 only), so the device repeats four times over FFB001-FFBFFF — which is what sheet 12's "a = ADDRESS BITS ON 2816 ONLY" note means and what MAME's `.mirror(0x03
- rtl/main/blstroid_inputs.sv:3 Blasteroids status and button ports, FF9C01 / FF9C03 — SP-316 sheet 4 (12L F244, 10A LS257).
- rtl/main/blstroid_inputs.sv:14 BD7 A17 -> Y3 SELFTEST active LOW (R1 1 K pull-up on sheet 3; the
- rtl/main/blstroid_inputs.sv:20 Sheet 12 prints "XXXX XX01" on the HBLANK row and "XXXX XXX1" on the three above it; the hardware makes all four A1-independent, so that is a drafting slip — D7:D4 read identically at both addresses.
- rtl/main/blstroid_inputs.sv:29 An LS257 selects its A inputs when SELECT is low, so FF9C01 (A1 = 0) is player 1 and FF9C03 (A1 = 1) is player 2, matching sheet 12.
- rtl/main/blstroid_inputs.sv:33 SPARE1/SPARE2 land on CTRA-9/CTRA-10, which sheet 13's cabinet harness leaves unconnected — they read 1 on a real machine.
- rtl/main/blstroid_irq.sv:3 Blasteroids interrupt latches and priority encoder — SP-316 sheet 2 (11C LS11, 1D LS20, 13C LS74, 13D LS10, 11B F00).
- rtl/main/blstroid_irq.sv:7 Structure from the Xybots MiSTer core's rtl/main/xybots_irq.sv (GPL-3.0, same author); the equations are read off SP-316 sheets 2 and 6.
- rtl/main/blstroid_irq.sv:19 and PFM2 is SP-316 sheet 6, 4K LS174B: D (3) = VD15, Q (2) = PFM2, CK = 4H — bit 15 of the last playfield word the video side fetched, which for the non-displayed column-40 word of a row is sheet 12's ROW PROGRAMMABLE INTERRUPT flag.
- rtl/main/blstroid_irq.sv:31 /IRQACK is still implemented, because sheet 3 decodes it.
- rtl/main/blstroid_irq.sv:75 sheet 6, 4K LS174B pin 2 (latched VD15)
- rtl/main/blstroid_leta.sv:3 Atari LETA at 8A — the Whirly-Gig counters, FF9801 / FF9805.
- rtl/main/blstroid_leta.sv:4 SP-316 sheet 4; the operator manual's parts list calls the part 137434-1001.
- rtl/main/blstroid_leta.sv:15 ---- wiring, off sheet 4 ------------------------------------------------ 24 VCC 12 GND
- rtl/main/blstroid_leta.sv:19 9 TEST = GND 14 RESOL = PR4 = 1 (R50 1 K to +5 V, sheet 1)
- rtl/main/blstroid_main.sv:3 Blasteroids main board — SP-316 sheets 2, 3, 4, 5 and 12 as one block.
- rtl/main/blstroid_main.sv:6 Structure from the Xybots MiSTer core's rtl/main/xybots_main_bus.sv (GPL-3.0, same author); the board-specific parts are read off SP-316.
- rtl/main/blstroid_main.sv:20 * The video RAM, the colour RAM and the priority RAM live inside this module, because their CPU-side arbitration is sheet 2/5 logic.
- rtl/main/blstroid_main.sv:24 `pfm2` is sheet 6's 4K LS174B pin 2 — bit 15 of the last playfield word fetched, latched at 4H — and it is what arms the row interrupt; see blstroid_irq.
- rtl/main/blstroid_main.sv:47 ---- the /RESET net ----------------------------------------------------- The watchdog's /RESET drives the 68000's RESET+HALT pins (one net) and, leaving sheet 2 for sheet 3 only, the EEPROM unlock flip-flop's /CLR and the 14B LS08 that gat
- rtl/main/blstroid_main.sv:79 sheet 6, 4K LS174B pin 2 (latched VD15)
- rtl/main/blstroid_main.sv:160 Decode (sheet 3)
- rtl/main/blstroid_main.sv:182 /SLAPSTIK is decoded because sheet 3 draws it and reaches nothing (the 2A socket is empty); FF9000 is an unused LS139 output.
- rtl/main/blstroid_main.sv:281 Sheet 12: XX0P PPPC CCC0 = 256 motion-object entries (16 palettes x 16) at FFA000-FFA1FE, XX10 PPPC CCC0 = 128 playfield entries (8 x 16) at FFA200-FFA2FE, and FFA300-FFA3FE is addressable RAM nothing uses.
- rtl/main/blstroid_main.sv:283 The colour RAM is arbitrated by the 14C F74 pair on sheet 10 and does not gate /DTACK: it takes the normal one-/7M-edge acknowledgement.
- rtl/main/blstroid_main.sv:298 Priority RAM — 256 x 1, write only (sheet 10, 17E 27LS00A)
- rtl/main/blstroid_main.sv:300 Sheet 12: FF8800-FF89FE, address `H PPP MMMM` = BA8..BA1 (H = playfield pen bit 3, P = playfield palette, M = motion-object palette), data D0, 1 = motion object on top.
- rtl/main/blstroid_main.sv:338 Interrupts (sheet 2)
- rtl/main/blstroid_main.sv:439 DTACK (12C LS163A + 11D LS74 pair + 16A LS260)
- rtl/main/blstroid_watchdog.sv:3 Blasteroids watchdog — SP-316 sheet 2 (14D LS00, 1B LS90, Q4 2N3904).
- rtl/main/blstroid_watchdog.sv:53 power-on reset, active high (sheet 2, 8C LS14)
- rtl/main/blstroid_whirly.sv:3 Blasteroids Whirly-Gig encoder — a MiSTer spinner, paddle, mouse or d-pad turned into the CLK+DIR pin pair the LETA at 8A actually sees.
- rtl/main/blstroid_whirly.sv:11 ---- what this stands in for ------------------------------------------- SP-316 sheet 13: LET-5/6 = P1-CLK / P1-DIR, LET-7/8 = P2-CLK / P2-DIR, each with a 3.3 K pull-down, a 0.01 uF cap and a 1 K series resistor into the LETA (sheet 4).
- rtl/main/blstroid_whirly.sv:18 The pin pattern is the 4-state Gray code the LETA counts at RESOL = 1, the way sheet 4 straps it (see blstroid_leta.sv), ONE phase step per count:
- rtl/mem/blstroid_prog_rom.sv:12 ---- the four sockets ---------------------------------------------------- SP-316 sheet 12 labels the region "256K BYTES PROGRAM ROM": four 27512s in two even/odd pairs,
- rtl/mem/blstroid_prog_rom.sv:21 Sheet 12 reserves 0x038000-0x03FFFF as "32K BYTES SLAPSTIC PROGRAM ROM SPACE", but no slapstic is fitted on a Blasteroids board and MAME's driver has none either, so this is a plain ROM.
- rtl/mem/blstroid_rom_loader.sv:26 ---- the sprite region is TWO 512 KB halves ------------------------------ `sprites` is 1 MB: bytes 0x00000-0x7FFFF are the board's M row MO stamp ROMs (sheet 8) and 0x80000-0xFFFFF the N row (sheet 7).
- rtl/video/blstroid_cram.sv:3 Blasteroids — SP-316 sheet 10: the PF/MO decision register (14C F74), the two colour-address drivers (17D F374 for the motion object, 16D F374A for the playfield), the CRA8 multiplexer, the 512 x 16 colour RAM (15/16B + 15/16C) with its 680
- rtl/video/blstroid_cram.sv:21 which is sheet 12's `XX0P PPPC CCC0` (MO) and `XX10 PPPC CCC0` (PF).
- rtl/video/blstroid_cram.sv:157 The colour word is xRGB 5:5:5 (sheet 12; MAME's xRGB_555):
- rtl/video/blstroid_dac.sv:3 Blasteroids video DACs — SP-316 sheet 11: three identical packaged R/2R ladders (RN3 red, RN2 green, RN1 blue) driven from the HC273 output registers, plus the LS260 + 15A U06 code-0 pedestal sink.
- rtl/video/blstroid_dac.sv:22 ---- the one non-linearity, and why it is not emulated ------------------- A 74LS260 5-input NOR per channel detects "all five bits zero" and drives a 15A U06 open-collector inverter that sinks the ladder node through 1 K, cancelling the pu
- rtl/video/blstroid_mo.sv:3 Blasteroids — the motion-object engine: SP-316 sheets 7, 8 and 9 tied together.
- rtl/video/blstroid_mo.sv:11 This module carries three of the four blocks that are one pipeline on the board — the fourth, the LINK WALK (13E LS74 + 7D LS273A + 7E LS374, sheet 5), lives in `blstroid_vram.sv` with the address multiplexers it drives:
- rtl/video/blstroid_mo.sv:15 VMATCH 8K the vertical match / size compare and the stamp ROM address (sheet 7, Atari 137552-001) the ROM read sixteen 27512s (sheets 7 + 8) as ONE burst-8-byte read through the blstroid_gfx_mem MO client SOS-1 10K
- rtl/video/blstroid_mo.sv:21 `blstroid_mo_linebuf` (sheet 9) is instantiated at the bottom.
- rtl/video/blstroid_mo.sv:51 Link 56 (the 57th) is fetched over 448..455 and drawn over 454..461, i.e. counts 454, 455 of this line and 0..5 of the next — finishing EXACTLY at the 5->6 boundary where `1VD6H` (4E LS174C, clocked by 4HD2H) flips the buffers over.
- rtl/video/blstroid_mo.sv:142 ---- SOS-2 3F (sheet 4), via blstroid_sos2_sync ----
- rtl/video/blstroid_mo.sv:148 4E LS174C Q10 — 1V retimed on 4HD2H
- rtl/video/blstroid_mo.sv:369 The two line buffers (sheet 9)
- rtl/video/blstroid_mo.sv:371 The F163 chains on sheet 9 are clocked at 14M with a synchronous /LD, so a strobe two 14M periods wide would load the counter twice — and the second load would land on the 16th pixel of the object being drawn, writing it at the next object'
- rtl/video/blstroid_mo_linebuf.sv:3 Blasteroids — SP-316 sheet 9: the two motion-object line buffers (14K and 14F, 2K x 8 35 ns), their F163 address counter chains (14L/15L/13L and 14J/15J/13J), the transparency write gate and the read-and-clear cycle.
- rtl/video/blstroid_mo_linebuf.sv:18 | free-runs at 14M = the | X by /MOHLD1 = the WRITE | DISPLAY address | address pixel bus D3:0 | undriven -> R65/66/69/70 | MOPIX3:0 from SOS-1 | pull-ups -> 0xF | /OE | enabled while 14M is high | dis
- rtl/video/blstroid_mo_linebuf.sv:66 The /OE and pixel-bus selection uses 1VD6H, which is 1V retimed by 4E LS174C on 4HD2H — it flips at the h%8 5->6 boundary, exactly where the 57th link's sixteen pixels finish.
- rtl/video/blstroid_mo_linebuf.sv:87 ---- SOS-2 strobes (sheet 4 pins 26/27) and the retimed 1V ----
- rtl/video/blstroid_mo_linebuf.sv:91 4E LS174C Q10
- rtl/video/blstroid_pf.sv:3 Blasteroids — SP-316 sheet 6: the playfield picture latches (4K LS174B, 4L LS374C, 6F F174A), the four PF graphics ROMs (1L, 1M, 3L, 3M), the 2J/1J LS194A shifters and the 4E LS174C re-timing latch.
- rtl/video/blstroid_pf.sv:8 Structurally derived from the Xybots MiSTer core's rtl/video/xybots_pf.sv (GPL-3.0, same author); every number below is re-derived for Blasteroids from sheet 6.
- rtl/video/blstroid_pf.sv:29 Sheet 5's slot schedule gives the playfield exactly one video-RAM slot per 8 counts, at `H[2:0]` = 3, and sheet 6 latches the word on the `4H` rising edge at the 3->4 boundary.
- rtl/video/blstroid_pf.sv:34 4K/4L/6F latch it on the board; here the 13-bit code goes straight out as ONE `blstroid_gfx_mem` PF request for the whole 4-byte stamp row, and the previously completed row moves down the prefetch pipe (`row_new` -> `row_mid`).
- rtl/video/blstroid_pf.sv:66 The 2J / 1J LS194A shifters and the horizontal doubling
- rtl/video/blstroid_pf.sv:79 The board recovers the same alignment downstream (sheet 10's 14C F74 on `/14M` and the two F374s on `14M`); doing it here keeps `pf_pix` exactly on the `hpos` grid the compositor uses:
- rtl/video/blstroid_pf.sv:90 `4E LS174C` (CK = `4HD2H`, rising at the 5->6 boundary) re-times three unrelated signals two counts after the map latch: D3 = PFM2 -> Q2 = PFPAL2 D13 = PMLNK8 -> Q12 = MOLNK8
- rtl/video/blstroid_pf.sv:94 D6 = PFM0 -> Q7 = PFPAL0 `MOLNK8` goes back to sheet 5 as `VRAM10` in the four motion-object slots (`blstroid_vram.molnk8`) and `1VD6H` is the sheet-9 line-buffer ping-pong select, so this module exports both even though neither is a pixel.
- rtl/video/blstroid_pf.sv:98 `PFM2:0` themselves are the 4K LS174B latch, modelled in `blstroid_vram` so that the IRQ1 path does not have to depend on the playfield module.
- rtl/video/blstroid_pf.sv:120 4K LS174B Q2/Q5/Q7 = PFM2, PFM1, PFM0
- rtl/video/blstroid_pf.sv:133 ---- 4E LS174C, the two non-playfield signals it re-times ------------
- rtl/video/blstroid_pf.sv:135 Q10 -> sheet 9 line-buffer ping-pong
- rtl/video/blstroid_pf.sv:146 4HD2H rising — 4E LS174C
- rtl/video/blstroid_pf.sv:152 4E LS174C — PFPAL2:0, MOLNK8, 1VD6H (CK = 4HD2H)
- rtl/video/blstroid_pf.sv:212 4K / 4L / 6F latch the new map word; the fetch starts here
- rtl/video/blstroid_pf.sv:227 2J / 1J LS194A — parallel load, then one shift, per ROM byte
- rtl/video/blstroid_prio.sv:3 Blasteroids — SP-316 sheet 10: the priority RAM 17E (27LS00A, 256 x 1), its two inverting 74F158 address multiplexers (15E, 16E) and the /CS3 gate that makes a transparent motion-object pixel mean "playfield".
- rtl/video/blstroid_prio.sv:8 Module shape from the Xybots MiSTer core's rtl/video/xybots_prio.sv (GPL-3.0, same author); Blasteroids' network is a one-bit lookup rather than Xybots' 74S85 comparator, so nothing else is shared.
- rtl/video/blstroid_prio.sv:13 ---- the address ------------------------------------------------------- 15E/16E F158 are inverting 2:1 muxes, but they invert the CPU write address and the video lookup address identically, so the inversion cancels and software sees sheet
- rtl/video/blstroid_prio.sv:33 i.e. a stored 1 means "MO on top", which is what sheet 12 says and what MAME's `if (mo[x] != 0xffff)` guard does.
- rtl/video/blstroid_prio.sv:65 sheet 12's address uses PFPIX3
- rtl/video/blstroid_sos2_sync.sv:3 Blasteroids — SP-316 sheet 4: the SOS-2 sync generator (3F, Atari 137550-001) and every discrete gate on that sheet that shapes its outputs into the nets the other video sheets consume.
- rtl/video/blstroid_sos2_sync.sv:13 ---- what the sheet gives, and what it does not ------------------------- 3F is a 40-pin Atari custom and SP-316 draws only its pinout, so the counters are derived rather than read:
- rtl/video/blstroid_sos2_sync.sv:19 It cannot be clocked at 14M (912 does not fit in 9 bits), so it runs at 7M, and the only value in 257..512 that yields a standard 15.7 kHz line is 456: 7 159 090 / 456 = 15 700.6 Hz, 63.709 us.
- rtl/video/blstroid_sos2_sync.sv:93 263 is what the Atari System 1 / Xybots sync-generator family produces from its dumped sync PROM (240 visible + 22 blanked + one extra line made by /VRES loading 0xFF), and the SOS-2 exposes the same /VRES net.
- rtl/video/blstroid_sos2_sync.sv:96 The SOS-2 counts V internally and the schematics do not settle it, so this stays a build-time parameter: 59.9227 Hz at 262, 59.6949 Hz at 263.
- rtl/video/blstroid_sos2_sync.sv:165 pin 25 -> 13E LS74 /CLR, 7D LS273A /CLR
- rtl/video/blstroid_sos2_sync.sv:169 ---- the video-RAM slot schedule (sheet 5) --------------------------
- rtl/video/blstroid_sos2_sync.sv:191 ---- the two HBLANK edges, one clk_sys cycle wide, aligned to ce_7m -- `hblank_rise` is the edge sheet 2 uses twice: it clocks 13C LS74 (the row-programmable IRQ1) and 11D LS74 upper (halt-until-HBLANK).
- rtl/video/blstroid_sos2_sync.sv:280 That is unobservable: every one of those lines is inside VBLANK, the playfield row address only matters while `vde`, and the IRQ1 gate is qualified by /VBLANK (sheet 2).
- rtl/video/blstroid_sos2_sync.sv:357 SELCPU = ~(/4H & 1H) = 4H | /1H (14D LS00, sheet 5); RAMFREE = ~((1H & /4H) | /2H) = 2H & SELCPU (11J LS02 + 14B LS08, sheet 2):
- rtl/video/blstroid_testpat.sv:40 The blanking split below (front porch, sync width, back porch, and the VSYNC line) is this module's own and is not taken from the SP-316 sheets: it is Xybots' measured SP-313 split (456 total: 32 front, 32 sync, 56 back) scaled x2 to this l
- rtl/video/blstroid_video.sv:3 Blasteroids — the whole video board (SP-316 sheets 4 to 11) as one module: the SOS-2 sync generator, the video/work RAM and its 8-count slot schedule, the playfield pipeline, the motion-object engine, the priority RAM, the colour RAM and th
- rtl/video/blstroid_video.sv:56 Sheet 2 clocks the IRQ1 latch on the rising edge of HBLANK and samples `PFM2`, and `PFM2` is the 4K LS174B's latched VD15 of the last playfield word fetched — a value that changes once every 8 H counts all the way across the line, because t
- rtl/video/blstroid_video.sv:60 Sheet 12 puts the row-interrupt flag in column 40 only.
- rtl/video/blstroid_video.sv:89 /MOL loads the line-buffer write counter from VD15:6 while MOHPOS is on the video bus, and sheet 5 puts MOHPOS at H[2:0] = 5.
- rtl/video/blstroid_video.sv:186 4K LS174B Q2 — the IRQ1 row condition
- rtl/video/blstroid_video.sv:226 SOS-2 at 3F — sheet 4
- rtl/video/blstroid_video.sv:240 /MOL must land on the count that carries MOHPOS (sheet 5, H[2:0] = 5) — see the header.
- rtl/video/blstroid_video.sv:276 Video / work RAM — sheet 5
- rtl/video/blstroid_video.sv:298 ---- 4K LS174B (sheet 6): PFM2:0 = the map word's D15:13, on 4H ------- The latch itself lives in blstroid_vram, so the IRQ1 path does not depend on whether the playfield module is drawing; both consumers read it here.
- rtl/video/blstroid_video.sv:304 Playfield — sheet 6
- rtl/video/blstroid_video.sv:334 Priority RAM — sheet 10
- rtl/video/blstroid_video.sv:348 Colour RAM and the output registers — sheet 10
- rtl/video/blstroid_video.sv:368 The DACs — sheet 11
- rtl/video/blstroid_vram.sv:3 Blasteroids — SP-316 sheet 5: the 16 KB video / work RAM (5L, 6/7L), its address multiplexers, the eight-count slot arbiter, the CPU data path and the motion-object link registers.
- rtl/video/blstroid_vram.sv:8 Structurally derived from the Xybots MiSTer core's video-RAM arbiter (GPL-3.0, same author), with every gate re-derived from sheet 5.
- rtl/video/blstroid_vram.sv:12 The crux of sheet 5: /OE is tied low
- rtl/video/blstroid_vram.sv:17 This module reproduces that: `vd` is the registered read of whatever address the multiplexers select, valid from the second clk_sys cycle of each `1H` count and therefore stable at that count's `ce_7m` — the edge on which sheet 6's 4K/4L/6F
- rtl/video/blstroid_vram.sv:58 cpu_we_hi LEVEL = ~/WH -> writes vd[15:8] (6/7L, the high byte lane) cpu_we_lo LEVEL = ~/WL -> writes vd[7:0] (5L, the low byte lane) A write reaches the RAM only when RAMFREE & cpu_sel & the lane & 7M is high (sheet 2: /VWRH = /VM
- rtl/video/blstroid_vram.sv:93 The 4K LS174B / 4L LS374C / 6F F174A map-word latches and the 4E LS174C re-timing latch (PFPAL2:0, MOLNK8, 1VD6H) are on sheet 6 and live in `blstroid_pf.sv`, with the rest of the playfield pipeline they belong to.
- rtl/video/blstroid_vram.sv:96 This module therefore EXPORTS `pmlnk8` (13E LS74 Q, sheet 5) and IMPORTS `molnk8` (4E LS174C Q12, sheet 6) — exactly the two wires that cross between the sheets.
- rtl/video/blstroid_vram.sv:117 ---- from blstroid_pf (sheet 6, 4E LS174C Q12) ----------------------
- rtl/video/blstroid_vram.sv:134 ---- 4K LS174B, the playfield map word's palette field --------------- Q2, Q5, Q7 = PFM2, PFM1, PFM0 = the latched VD15, VD14, VD13, captured on the `4H` rising edge once per stamp column.
- rtl/video/blstroid_vram.sv:136 `pfm[2]` (PFM2) is BOTH the playfield palette MSB and the row-programmable-interrupt condition that sheet 2's 11C LS11 / 1D LS20 / 13C LS74 chain turns into IRQ1, which is why it leaves this module rather than `blstroid_pf`: the interrupt p
- rtl/video/blstroid_vram.sv:144 ---- motion-object link walk (13E LS74 / 7D LS273A / 7E LS374) ------
- rtl/video/blstroid_vram.sv:145 13E LS74 Q5 -> sheet 6 4E LS174C D13
- rtl/video/blstroid_vram.sv:161 The motion-object link registers — 13E LS74, 7D LS273A, 7E LS374
- rtl/video/blstroid_vram.sv:172 7D LS273A — the link just latched off VD
- rtl/video/blstroid_vram.sv:192 4K LS174B — CK 9 = `4H`, /C 1 = PR2.
- rtl/video/blstroid_vram.sv:208 Address multiplexers — 5F LS253, 4F LS253A, 6E/5E LS257, 11C LS11
- rtl/video/blstroid_vram.sv:234 Write strobes — sheet 2, 11E LS32 chain
- rtl/video/blstroid_vram.sv:296 `v[2:0]` is the line inside the stamp — sheet 6's PF ROM address, formed in blstroid_pf, not part of the map address.
- README.md:7 The core reconstructs the original PCB set — the 68000 game board plus an Atari JSA I sound board — from Atari's SP-316 schematic package, with MAME used as a f
- README.md:164 | Protection | None — SP-316 sheet 3 notes *"The SLAPSTIC chip is not installed"* |
- README.md:223 It applies where the SP-316 schematics document something MAME's model does not.
- README.md:228 | Row-programmable interrupt (IRQ1) | Stubbed out; MAME takes zero level-1 interrupts | Real and fully wired: sheet 6 latches VD15 as PFM2 and sheet 2's LS74 is
- README.md:230 | Video DAC | Linear `xRGB_555` | The three R/2R ladders on sheet 11, including their code-0 pedestal |
- README.md:233 | Watchdog | Generic timer with default timing | Sheet 2's LS90: reset after 8 frames without a write, held for two frames, parked at 9 on power-up |
- README.md:256 **Which YM2151 channel is left.** SP-316 does not label them, so the core follows MAME.
- README.md:306 Thanks to the MAME team, whose `blstroid.cpp`, `atarijsa` and `atarimo` code served as the functional oracle throughout, and to whoever preserved the Atari SP-3
MAMEのドライバにもある実基板の情報・測定値を引用 — 1
MAMEとの相違点を記載 — 5
- rtl/main/blstroid_irq.sv:10 ---- IRQ1, the row-programmable playfield interrupt -------------------- Real hardware, fully wired, and the one thing MAME stubs out:
- README.md:10 Where a schematic and MAME disagree, the schematic wins and the disagreement is recorded — see [Where this core differs from MAME](#where-this-core-differs-from
- README.md:202 All three interrupt levels are taken, including the row-programmable playfield interrupt that MAME does not implement, and the sound mailbox closes between the
- README.md:220 Where this core differs from MAME
- README.md:223 It applies where the SP-316 schematics document something MAME's model does not.
MAMEのソースを引用 — 57
- Arcade-Blasteroids.sv:15 Blasteroids runs on a horizontal monitor (MAME ROT0), so there is no rotation: the raster goes straight through arcade_video.
- Arcade-Blasteroids.sv:120 MAME's INPUT_PORTS_START(blstroid) has only the two dial ports and the two button/status words, and every operator setting lives in the X2804 EEPROM at 0xFFB000, changed from the game's own self test.
- Arcade-Blasteroids.sv:150 TM-316's Switch Test lists exactly four inputs per player (Spare, Xform, Thrust, Fire), the control-panel figure and the CTRA connector carry three buttons per player, and MAME's blstroid.cpp defines no IPT_START1/2.
- rtl/blstroid_core.sv:104 The SOS-2's vertical total: 262 lines, MAME's figure.
- rtl/blstroid_core.sv:111 1 = MAME's xRGB_555 transfer, 0 = the sheet-11 R/2R ladder value.
- rtl/blstroid_core.sv:153 The operator manual lists exactly four inputs per player in the Switch Test (Spare, Xform, Thrust, Fire), the control-panel figure and the CTRA connector carry three buttons per player, and MAME defines no IPT_START1/2 either.
- rtl/main/blstroid_addr_decode.sv:8 The two descriptions agree over the whole 24-bit space: the mirrors MAME documents are simply the address bits the drawn decoders never look at.
- rtl/main/blstroid_addr_decode.sv:47 ---- what the mirrors are ------------------------------------------------ A22-A15 reach no decoder at all, so the whole FF8000-FFFFFF register/RAM map repeats every 32 KB over 800000-FFFFFF (MAME: `global_mask(0x83ffff)` plus per-entry `.m
- rtl/main/blstroid_addr_decode.sv:50 Inside FF8000-FF8FFF only A11-A9 are decoded, so each write strobe answers over a whole 512-byte page (MAME: `.mirror(0x0381fe)`) — except /PRIRAM, whose A8-A1 are the priority RAM's own address.
- rtl/main/blstroid_dtack.sv:64 MAME spins the CPU instead, which is observationally equivalent but is not what the board does.
- rtl/main/blstroid_eeprom_2804.sv:18 The socket is wired for a 2816 (2 K x 8) but the fitted X2804A is 512 x 8 (A0..A8 only), so the device repeats four times over FFB001-FFBFFF — which is what sheet 12's "a = ADDRESS BITS ON 2816 ONLY" note means and what MAME's `.mirror(0x03
- rtl/main/blstroid_eeprom_2804.sv:36 * the first following low-byte write clocks D = 0 on the /WL rising edge, so the part re-locks after exactly one write — MAME's `lock_after_write(true)`.
- rtl/main/blstroid_eeprom_2804.sv:56 ---- programming time --------------------------------------------------- The X2804A data sheet gives a self-timed byte write of typically 5 ms and at most 10 ms with the I/O pins high-Z throughout; MAME models no write time at all.
- rtl/main/blstroid_eeprom_2804.sv:207 There are no pull-ups on BD0-BD7, so the modelled float value is the 0xFF an unmapped MAME read gives.
- rtl/main/blstroid_inputs.sv:35 MAME maps them as BUTTON4 and the self test displays them, so they are exposed here.
- rtl/main/blstroid_main.sv:55 ---- reads of write-only strobes --------------------------------------- Nothing drives the board bus for them, so they read 0xFFFF, which is also MAME's `unmap_value_high()`.
- rtl/main/blstroid_main.sv:304 A CPU read returns the undriven bus (0xFFFF); MAME keeps a readable shadow instead, so the two disagree there.
- rtl/main/blstroid_watchdog.sv:36 MAME instantiates `WATCHDOG_TIMER(config, "watchdog")` with default timing: neither the 8-frame period, nor the 2-frame pulse, nor the park-at-9 power-up is modelled there.
- rtl/main/blstroid_whirly.sv:76 d-pad Left/Right stepped at a fixed rate, the same idea as MAME's PORT_KEYDELTA, so a gamepad or keyboard can play at all.
- rtl/main/blstroid_whirly.sv:84 MAME uses PORT_SENSITIVITY(60) PORT_KEYDELTA(10).
- rtl/mem/blstroid_prog_rom.sv:21 Sheet 12 reserves 0x038000-0x03FFFF as "32K BYTES SLAPSTIC PROGRAM ROM SPACE", but no slapstic is fitted on a Blasteroids board and MAME's driver has none either, so this is a plain ROM.
- rtl/mem/blstroid_rom_loader.sv:11 ---- the index-0 stream map ---------------------------------------------- The MRA concatenates MAME's ROM regions in this order, and the offsets below must match it byte for byte:
- rtl/mem/blstroid_rom_loader.sv:15 stream base size MAME region destination
- rtl/mem/blstroid_rom_loader.sv:36 ---- byte order (the one thing that must not be guessed) ----------------- maincpu is emitted as BIG-ENDIAN INTERLEAVED WORDS — the even-offset MAME ROM (6C / 4C) is `map="01"`, the FIRST byte of each output word, i.e. D15:8.
- rtl/mem/blstroid_sdram_loader.sv:16 tiles (MAME gfx_8x8x4_packed_msb): 32 bytes per 8x8 stamp, byte = code[12:0]*32 + row[2:0]*4 + (A1,A0); one PF stamp row = 4 CONSECUTIVE bytes = 2 words = ONE burst-2.
- rtl/mem/blstroid_sdram_loader.sv:20 A Blasteroids MO stamp is 16 x 8 and its pixels come alternately from the two 512 KB halves of the `sprites` region — the board's M row and N row banks of MO stamp ROMs (sheets 8 and 7), addressed with the SAME within-half address (MAME `mo
- rtl/mem/blstroid_sdram_loader.sv:25 sprites (MAME molayout): 32 bytes per 16x8 stamp PER HALF, within-half byte = code[13:0]*32 + row[2:0]*4 + (A1,A0); one MO stamp row = 4 bytes from M AND 4 bytes from N, both at the SAME within-half offset -> 8 bytes, 4 words.
- rtl/video/blstroid_cram.sv:23 MAME's `GFXDECODE_SCALE("tiles", 0, ..., 256, 16, 2, 1)` uses the same base 256 with 8 of the 16 groups.
- rtl/video/blstroid_cram.sv:55 MAME behaves the same way.
- rtl/video/blstroid_cram.sv:157 The colour word is xRGB 5:5:5 (sheet 12; MAME's xRGB_555):
- rtl/video/blstroid_dac.sv:30 ---- the two transfers --------------------------------------------------- DAC_MAME_COMPAT = 1 (default) MAME's `pal5bit(x) = (x << 3) | (x >> 2)` — bit replication, what `xRGB_555` does.
- rtl/video/blstroid_dac.sv:36 The default is the MAME curve so that a frame captured from this core can be compared bit for bit with one captured from MAME; the ladder's own answer is 0.
- rtl/video/blstroid_mo.sv:82 That is MAME's `molayout` x-offset list {RGN_FRAC(1,2)+0, RGN_FRAC(1,2)+4, 0, 4, ...} read back out.
- rtl/video/blstroid_mo.sv:109 and the first VISIBLE pixel is (h, pix) = (HB_END, 0), so making the line-buffer address equal the screen column — which is MAME's `xpos` exactly, atarimo.cpp folding xpos >= 640 by -1024 where the 10-bit counter wraps — needs
- rtl/video/blstroid_mo.sv:123 1 = walk the full 14-bit code when a tall object crosses a 1024-stamp boundary (MAME's `code++`).
- rtl/video/blstroid_mo.sv:226 which is atarimo.cpp's `ypos = -(Y + 8*height)` covering 8*height lines, re-derived: the object covers D iff U >= 512 - 8*height.
- rtl/video/blstroid_mo.sv:238 MAME draws the stamp rows bottom-up and flips inside the stamp; the shipping ROM never sets the bit, so this path is unexercised by the game and is here only because the sheet wires the pin.
- rtl/video/blstroid_mo.sv:247 MO_CODE_CARRY = 1 restores MAME's full 14-bit add for comparison.
- rtl/video/blstroid_mo_linebuf.sv:38 So an untouched location reads pen 0, and pen 0 is transparent — MAME's "transparent pen index = 0" exactly.
- rtl/video/blstroid_mo_linebuf.sv:61 The counters are TEN bits and the RAMs' A10 is grounded, so a column starting near 1023 wraps into the left edge — which is exactly atarimo.cpp's `xpos &= 0x3ff` followed by its `xpos >= width ?
- rtl/video/blstroid_pf.sv:58 chip = {PFPIC12, PFPIC11} -> MAME `tiles` offset * 0x10000 so the linear byte address is `code * 32 + line * 4 + byte_in_row` and the `blstroid_gfx_mem` request address (bits 17:2 of it) is simply `{code[12:0], line[2:0]}` — no multiply
- rtl/video/blstroid_prio.sv:23 which is byte-for-byte MAME's `priaddr = ((pf & 8) << 4) | (pf & 0x70) | ((mo & 0xf0) >> 4)`.
- rtl/video/blstroid_prio.sv:33 i.e. a stored 1 means "MO on top", which is what sheet 12 says and what MAME's `if (mo[x] != 0xffff)` guard does.
- rtl/video/blstroid_prio.sv:41 The sheet has no CPU read path to 17E: the 68000's `clr.w` over this region is a read-modify-write whose read only has to terminate, and MAME maps the region write-only as well.
- rtl/video/blstroid_sos2_sync.sv:22 That is MAME's 456*2, arrived at independently.
- rtl/video/blstroid_sos2_sync.sv:27 * The visible window is 40 stamps x 16 px = 640 = 320 counts, and 30 stamp rows x 8 lines = 240 — MAME's 640 x 240 exactly.
- rtl/video/blstroid_sos2_sync.sv:91 ---- vertical ------------------------------------------------------- 262 is MAME's figure, whose own comment says it comes from published specs rather than measurement.
- README.md:7 The core reconstructs the original PCB set — the 68000 game board plus an Atari JSA I sound board — from Atari's SP-316 schematic package, with MAME used as a f
- README.md:20 Five MAME sets run on identical RTL — they differ only in the main CPU ROMs.
- README.md:43 | ROMs | Supplied by you from a MAME archive; none are included here |
- README.md:82 The operator manual lists exactly four switches per player, and the MAME driver defines no Start input.
- README.md:222 MAME 0.288 was this project's functional oracle and every gate above measures the core *against* it, so this is a narrow claim.
- README.md:226 | Behaviour | MAME | This core |
- README.md:228 | Row-programmable interrupt (IRQ1) | Stubbed out; MAME takes zero level-1 interrupts | Real and fully wired: sheet 6 latches VD15 as PFM2 and sheet 2's LS74 is
- README.md:249 The core uses 262 (MAME's published figure) as a compile-time parameter; rebuild with `V_TOTAL = 263` to try the other.
- README.md:256 **Which YM2151 channel is left.** SP-316 does not label them, so the core follows MAME.
- README.md:306 Thanks to the MAME team, whose `blstroid.cpp`, `atarijsa` and `atarimo` code served as the functional oracle throughout, and to whoever preserved the Atari SP-3
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 2
- README.md:206 **Pixel-exact compositor gate** — MAME is instrumented to capture complete video state at chosen frames; that state is replayed through the real core RTL and th
- README.md:235 On every captured frame they are observationally identical to MAME, because the per-band chains the game installs are short and no captured scanline exceeds 57
MAMEの近似をそのまま採用 — 1
- rtl/video/blstroid_mo.sv:130 /VRES's phase is inside the SOS-2 and cannot be probed, but this is the only reading under which line 0 of the picture is correct, and it is what MAME's `ypos` arithmetic assumes.
MAMEドライバと同じ文言を含む(出典の明記なし) — 2