← All cores
Batman
Cites hardware documentation that MAME's driver does not — 72
- Arcade-Batman.sv:129 (index 2) 0x000800 eeprom 28C16 at 12R, NVRAM save/restore BRAM
- rtl/batman_core.sv:34 The 6502's /RESET from the game board's LS273 1S latch (sndres_n) is a separate net.
- rtl/batman_core.sv:43 R80 * C115 = 10 ms of power-on reset (from the schematic).
- rtl/batman_core.sv:205 Driven by batman_main, used by batman_sound: /SNDRES from the LS273 1S, the two /SCOM strobes with the 68000's odd byte, and /AUDIRQ, /AUDFULL and the mailbox byte coming back.
- rtl/batman_core.sv:214 the LS273 1S output latch bits that leave the main board
- rtl/batman_core.sv:300 the rest of the LS273 1S
- rtl/main/batman_cpu.sv:4 Batman main CPU: fx68k (cycle-exact 68000) wired as the MC68000 at 6L/M.
- rtl/main/batman_decode.sv:3 Batman main-board address decode: GAL 136085-1002 at 9L, the 74F138 device decoder at 5/6K and the 74LS138 I/O-strobe decoder at 1P/R (from the schematic, pages 42 and 44).
- rtl/main/batman_decode.sv:26 ---- GAL 9L outputs (not qualified by /AS) ----
- rtl/main/batman_decode.sv:38 Y1 28C16 at 12R +0x20000
- rtl/main/batman_decode.sv:46 ---- LS138 1P/R, the I/O strobes (MA6:MA4 inside /CIO) ----
- rtl/main/batman_decode.sv:52 Y5 +0x50 LS273 1S clock
- rtl/main/batman_decode.sv:58 9L: GAL16V8A 136085-1002, in its own pin numbers
- rtl/main/batman_decode.sv:83 5/6K: 74F138, the device block
- rtl/main/batman_decode.sv:105 1P/R: 74LS138, the I/O strobes
- rtl/main/batman_dtack.sv:3 Batman /DTACK: the 74F163 wait counter at 8K and the LS04 at 12M that inverts its RCO into the 68000's /DTACK (from the schematic, page 44).
- rtl/main/batman_dtack.sv:45 ---------------- 74F163 8K -------------------------------------------
- rtl/main/batman_eeprom_28c16.sv:4 Batman 28C16 (2K x 8) EEPROM at 12R and the 74LS74 unlock flop at 11N/P that drives its /OE (from the schematic, page 44).
- rtl/main/batman_eeprom_28c16.sv:148 ---- LS74 11N/P half A ----------------------------------------------- /CLR = /SYSRES; /PRE (unlock) is a level and wins over its own /WL edge.
- rtl/main/batman_gal_9l.sv:3 Batman GAL16V8A 136085-1002 at 9L (label B_MAIN): the 68000 address decoder.
- rtl/main/batman_gal_9l.sv:4 Equations from the GAL fuse map; pin names from the schematic, page 44.
- rtl/main/batman_gal_9l.sv:16 It uses both BAS and /AS, which stretches the enable slightly past /AS rising and gives the LS273 at 1S its clock edge inside the data-hold window.
- rtl/main/batman_inputs.sv:3 Batman controls, status word and output latch: the 74LS257 muxes at 1P, 2P and 2S, the empty 1R/S expansion socket and the 74LS273 output latch at 1S (from the schematic, page 42).
- rtl/main/batman_inputs.sv:17 LS273 at 1S: clocked on the rising (releasing) edge of /LATCH, cleared by /SYSRES.
- rtl/main/batman_inputs.sv:54 ---- the LS273 1S ----
- rtl/main/batman_inputs.sv:93 1S: the 74LS273 output latch
- rtl/main/batman_irq.sv:3 Batman interrupts: the LS08 IPL encoder at 10K and the LS20 /VPA gate at 7D (from the schematic, page 44).
- rtl/main/batman_main.sv:3 Batman game PCB A048987-01, 68000 side: the CPU at 6L/M, the address decode, the wait counter, 64 KB work RAM, the 28C16 EEPROM, the watchdog, the input muxes, the LS273 output latch and the interrupt encoder, plus the MiSTer ROM loader and
- rtl/main/batman_main.sv:61 -> GAL 9L pin 9
- rtl/main/batman_main.sv:69 pin 1, latch 3Q, a level
- rtl/main/batman_main.sv:79 ================= the rest of the LS273 1S ==========================
- rtl/main/batman_main.sv:161 the whole LS273 1S
- rtl/main/batman_main.sv:173 the 68000 at 6L/M
- rtl/main/batman_main.sv:211 the decode: GAL 9L + F138 5/6K + LS138 1P/R
- rtl/main/batman_main.sv:311 inputs, the status word and the LS273 1S output latch
- rtl/main/batman_main.sv:405 the EEPROM at 12R and the 11N/P unlock flop
- rtl/main/batman_nvram_io.sv:4 MiSTer load/save controller for the Batman 28C16 EEPROM at 12R.
- rtl/main/batman_watchdog.sv:3 Batman power-on reset and watchdog: the R80/C115/Q7 POWER-ON node (schematic page 41) and the 74LS197 counter at 12N/P (page 44).
- rtl/main/batman_watchdog.sv:14 /SYSRES reaches the 68000, the EEPROM unlock flop and the LS273 at 1S; it does not reset the VAD.
- rtl/main/batman_watchdog.sv:60 ---------------- 74LS197 12N/P --------------------------------------- /VBLANK falls at the start of blanking = rising edge of active-high vblank.
- rtl/video/batman_alpha.sv:11 Cell word (as MAME decodes it; the video sheets are not in the manual): bits 9-0 character code bit 10 bank enable: 1 -> code + ALBK * 0x400 bits 14-11 colour (ALC3:0) bit 15 opaque (ALBG): pen 0 is drawn too ALBK2:0 is LS273 outp
- rtl/video/batman_alpha.sv:41 LS273 1S bits 14:12
- rtl/video/batman_cram.sv:3 Batman colour RAM at 6A/6B: 2048 x 16 at 0x2E0000-0x2E0FFF, shared by the video scan and the 68000.
- rtl/video/batman_dac.sv:3 Batman video DAC: the three R2R 1K/2K ladders R11/R12/R13, the 74LS260 pen-zero NORs at 3A/B and 3B/C and the 7406 black clamp at 3C/D (schematic page 43).
- rtl/video/batman_dac.sv:14 A 74LS260 NOR over the five upper bits of each gun drives a 7406 that pulls the gun to black when they are all zero; I is not in the NOR, so {0, I=1} is black on the board.
- rtl/video/batman_gal_11d.sv:3 Batman GAL16V8A 136085-1005 at 11D: motion-object line-buffer phase control and the "stain" (shadow run) latch.
- rtl/video/batman_gal_9b.sv:3 Batman GAL20V8A 136085-1004 at 9B: colour-RAM address bits CRA1..CRA4 and the layer-select pair CS0 / CS1.
- rtl/video/batman_gal_9b.sv:19 The MO pixel bits arrive active low (the stamp ROM is stored inverted), unlike the MO colour bits at 9C; this is the board's wiring, not an error.
- rtl/video/batman_gal_9c.sv:3 Batman GAL20V8A 136085-1003 at 9C: colour-RAM address bits CRA5..CRA10.
- rtl/video/batman_gal_9d.sv:3 Batman GAL16V8A 136085-1006 at 9D: PF/M (playfield-over-motion-object priority), its complement, and an "MO byte == 0x01" decode.
- rtl/video/batman_lb.sv:3 Batman motion-object line buffers: the two 137536-001 customs at 11B and 11C.
- rtl/video/batman_mixer.sv:3 Batman colour-RAM address generator: GALs 136085-1006 (9D), 1004 (9B), 1003 (9C) and 1005 (11D) wired together, plus the stain run latch.
- rtl/video/batman_mixer.sv:82 9D (136085-1006): PF/M
- rtl/video/batman_mixer.sv:108 9B (136085-1004): CS0, CS1 and CRA4:1
- rtl/video/batman_mixer.sv:126 9C (136085-1003): CRA10:5
- rtl/video/batman_mixer.sv:146 11D (136085-1005): line-buffer phase and the stain markers
- rtl/video/batman_mob.sv:3 Batman motion-object engine: the MOB 137593-001 custom at 10F.
- rtl/video/batman_pf.sv:26 MAME stores the region inverted, and the MRA ships raw bytes, so ROM_INVERT applies the board's inversion here (the playfield pen reaches GAL 9B active high).
- rtl/video/batman_vad_regs.sv:3 Batman VAD 137656-002 at 6F: the 32-word register file at 0x2EFFC0, the end-of-frame (EOF) reload and the parameter-word (scroll) decoder.
- rtl/video/batman_vad_sync.sv:3 Batman VAD 137656-002 at 6F: the raster counters, sync, blanking and the scanline interrupt, all generated from the register file (no timing constants in the data path).
- rtl/video/batman_vad_sync.sv:29 The counters free-run from power-up whatever reg 00 says: the main board's LS197 at 12N/P holds the 68000 in reset until it has counted eight /VBLANK edges, so the raster must run before the CPU can program the VAD.
- rtl/video/batman_video.sv:3 Batman video block: the Atari VAD 137656-002 at 6F, the MOB 137593-001 at 10F, the two 137536-001 line buffers, the four priority GALs, the colour RAM and the DACs, all behind the board's single /VRAM strobe.
- rtl/video/batman_video.sv:21 The 0x2Exxxx and 0x3Exxxx aliases reach the same hardware (GAL 9L decides whether the 68000 waits).
- rtl/video/batman_video.sv:70 -> GAL 9L pin 9
- rtl/video/batman_video.sv:73 ---- the LS273 1S output latch ----------------------------------------
- README.md:9 The address decoding, the sound board and the video mixer come from Atari's schematics and from the dumped GAL chips.
- README.md:11 Where the schematics and MAME disagree, the core follows the schematics, so a few things deliberately differ from MAME.
- README.md:113 **Address decoding from the actual chips.** The 68000's memory map is the dumped GAL 136085-1002 at 9L, together with the 74-series decoders drawn on the schema
- README.md:118 **Bus timing.** Wait states come from the board's F163 counter, and interrupts use the schematic's priority encoding: level 4 for the video scanline interrupt,
- README.md:126 **Analog audio.** The board's filter and mixer stages are modelled from the component values on the schematics, which were cross-checked against Atari's parts l
- README.md:156 **FM : ADPCM balance.** The filter shapes come from the schematic, but the overall level ratio between the two sound chips depends on their output levels, which
- README.md:238 **Reading the source.** Comments name chips by their position on the Atari board, such as "GAL at 9L" or "LS273 at 1S", and the GAL modules name their ports by
Cites hardware references or measurements that MAME's driver also gives — 8
- Arcade-Batman.sv:122 0x000000 0x0C0000 maincpu 6 x 27C010 at 10R 7R 9/10R 6R 9R 5R SDRAM — also in MAME: 10R atari/batman.cpp:502, 7R atari/batman.cpp:503, 10R atari/batman.cpp:502, 6R atari/batman.cpp:505, 9R atari/batman.cpp:506, 5R atari/batman.cpp:507
- Arcade-Batman.sv:123 0x0C0000 0x020000 chars 1 x 1 Mbit at 10M BRAM — also in MAME: 10M atari/batman.cpp:513
- Arcade-Batman.sv:126 0x2E0000 0x010000 jsa:cpu 1 x 27C512 at 12C BRAM — also in MAME: 12C atari/batman.cpp:510
- Arcade-Batman.sv:127 0x2F0000 0x080000 jsa:oki1 4 x 1 Mbit at 19E 17E 15E 12E SDRAM — also in MAME: 19E atari/batman.cpp:536, 17E atari/batman.cpp:537, 15E atari/batman.cpp:538, 12E atari/batman.cpp:539
- rtl/mem/batman_prog_rom.sv:4 Batman 68000 program ROM: the six 27C010s at 10R/7R, 9-10R/6R and 9R/5R (schematic page 45), served from SDRAM through a direct-mapped cache with 4-word lines and next-line prefetch. — also in MAME: 10R atari/batman.cpp:502, 7R atari/batman.cpp:503, 10R atari/batman.cpp:502, 6R atari/batman.cpp:505, 9R atari/batman.cpp:506, 5R atari/batman.cpp:507
- rtl/mem/batman_rom_loader.sv:45 ---- JSA 6502 program (64 KB ROM at 12C) -> block RAM ---- — also in MAME: 12C atari/batman.cpp:510
- README.md:122 **The whole JSA III sound board.** Its two GALs (136085-1038 and -1039) come from their fuse maps. — also in MAME: 136085-1038 atari/batman.cpp:551
- README.md:137 **Video mixing and colour.** The four priority GALs (136085-1003, -1004, -1005 and -1006) come from their fuse maps. — also in MAME: 136085-1003 atari/batman.cpp:547
Notes where it differs from MAME — 6
- rtl/main/batman_dtack.sv:18 then /DTACK two CPU clocks later interrupt acknowledge P = 2 frozen: /DTACK never asserts (autovector) Wait states come from the GAL fuse map; MAME models none.
- rtl/main/batman_inputs.sv:16 MAME ignores A1 on the status read.
- rtl/video/batman_vad_dma.sv:11 The game sets bit 14 around every edit of these tables; MAME ignores reg 00, but those critical sections only make sense if bit 14 suspends the DMA.
- rtl/video/batman_vad_regs.sv:9 The manual lacks the VAD sheet; this follows MAME's atarivad, corrected where the game's own behaviour shows MAME is incomplete: * Reg 00: bit 15 master enable, bit 14 suspends the VAD's DMA channel (the game sets it around every edit of th
- README.md:11 Where the schematics and MAME disagree, the core follows the schematics, so a few things deliberately differ from MAME.
- README.md:138 The colour DACs follow the resistor ladder on the schematic, including the black-level clamp, which MAME does not model.
Cites MAME source — 58
- Arcade-Batman.sv:24 The MRA also carries MAME's batman-eeprom.bin as a seed so a first boot without a save file gets the factory settings.
- Arcade-Batman.sv:131 MAME inverts `tiles` and `sprites` after loading; this core applies the board's own active-low sense in the video RTL.
- rtl/batman_core.sv:40 1 = 14.318181 MHz (as MAME), 0 = 7.159 MHz.
- rtl/main/batman_cpu.sv:11 MAME runs the CPU at 14.318 MHz; sibling Atari boards use 7.16 MHz.
- rtl/main/batman_cpu.sv:11 This core follows MAME (CPU_14M = 1); batman_dtack must get the same value because its wait counter is clocked from the same node.
- rtl/main/batman_cpu.sv:25 1 = 14.318 MHz (ce_14m, as MAME), 0 = 7.159 MHz (ce_7m).
- rtl/main/batman_eeprom_28c16.sv:17 WRITE_CYCLES models the byte programming time (MAME treats writes as instant).
- rtl/main/batman_inputs.sv:36 JAMMA 17 STRT1 ("JAMMA START 1"; MAME calls it unused)
- rtl/main/batman_main.sv:13 The data bus has no buffers or pull-ups, so any lane nothing drives reads as UNDRIVEN_DATA (0xFFFF, as MAME).
- rtl/main/batman_main.sv:23 1 = 68000 at 14.318 MHz (as MAME), 0 = 7.159 MHz.
- rtl/main/batman_main.sv:395 Block RAM powers up at 0x00, as MAME's work RAM does.
- rtl/main/batman_watchdog.sv:12 MAME uses its 3-frame default instead.
- rtl/mem/batman_rom_loader.sv:77 In MAME's order the four bit planes of one stamp row are 0x40000 bytes apart, i.e. in four SDRAM rows.
- rtl/video/batman_alpha.sv:11 Cell word (as MAME decodes it; the video sheets are not in the manual): bits 9-0 character code bit 10 bank enable: 1 -> code + ALBK * 0x400 bits 14-11 colour (ALC3:0) bit 15 opaque (ALBG): pen 0 is drawn too ALBK2:0 is LS273 outp
- rtl/video/batman_dac.sv:12 Each gun is a 6-bit ladder whose LSB is the shared intensity bit I (colour-RAM bit 15): gun = {channel[4:0], I}, expanded to 8 bits the way MAME does.
- rtl/video/batman_dac.sv:16 MAME has no clamp and shows that code as 4/255; BLACK_CLAMP = 0 reproduces MAME.
- rtl/video/batman_dac.sv:41 MAME's pal6bit: (v << 2) | (v >> 4), equal to round(255 * v / 63).
- rtl/video/batman_gal_11d.sv:14 The manual lacks the video sheets, so the pin names below are inferred from sibling boards and MAME.
- rtl/video/batman_gal_9d.sv:13 The manual lacks the video sheets, so pin names are inferred from ThunderJaws' GAL and MAME.
- rtl/video/batman_gal_9d.sv:14 PF/M reproduces MAME's rule for the selected playfield's priority PFX9:8 against MO priority MPR1:0: 3: playfield always wins 2: wins if MPR < 2 and not upper pen 1: wins if MPR == 0 and not upper pen 0: never Pins 15/16 are tak
- rtl/video/batman_gal_9d.sv:20 ThunderJaws ORs it into PF/M; Batman does not, and MAME has no such rule, so the mixer leaves pin 19 unconnected.
- rtl/video/batman_lb.sv:21 FIRST_WINS: MAME draws Batman's object list in reverse, so the first entry ends up on top.
- rtl/video/batman_mixer.sv:17 Stain (MAME's name for it): a motion object with priority bit MPR2 set is not drawn.
- rtl/video/batman_mixer.sv:34 ---- what 9D pins 15 and 16 are wired to (the sheet is missing) ------ 0 = PFX3 of the selected playfield and PFXS; reproduces MAME.
- rtl/video/batman_mixer.sv:51 An MPR2 object draws no visible pixel (as in MAME), but 11D still needs its pen to run the stain.
- rtl/video/batman_mixer.sv:171 Behaviour follows MAME's atarimo apply_stain: * a start pixel stains itself and opens the run; * every pixel inside the run is stained; * an end pixel arms `offnext`, and the run closes after the next pixel unless that pixel is itself a sta
- rtl/video/batman_mixer.sv:176 MAME runs it to the bitmap edge instead; that makes no visible difference.
- rtl/video/batman_mob.sv:9 The manual lacks the video sheets, so Batman's settings follow MAME's atarimo configuration: 10-bit links, 4-word entries at MOBASE + 4 * link, 8 x 8 stamps, a 64-word SLIP table of 8-line bands, no vertical flip.
- rtl/video/batman_mob.sv:25 X offset; MAME uses -1.
- rtl/video/batman_mob.sv:31 MAME's bitmap geometry, used by the coordinate folds.
- rtl/video/batman_mob.sv:98 MAME masks 0x0007
- rtl/video/batman_pf.sv:3 Batman playfield layer, instantiated twice: PF1 (P1BASE 0x2F0000, the transparent foreground, MAME's `playfield2`) and PF2 (P2BASE 0x2F2000, the opaque background, MAME's `playfield`).
- rtl/video/batman_pf.sv:26 MAME stores the region inverted, and the MRA ships raw bytes, so ROM_INVERT applies the board's inversion here (the playfield pen reaches GAL 9B active high).
- rtl/video/batman_vad_dma.sv:17 It runs during vertical blanking, the only time the video RAM has DMA slots (MAME does it at line 0).
- rtl/video/batman_vad_dma.sv:31 1 = take the autostore byte when the write reaches the RAM; 0 = at the CPU write, as MAME does.
- rtl/video/batman_vad_regs.sv:28 last EOF index replayed (as MAME)
- rtl/video/batman_vad_regs.sv:29 skip zero words (as MAME)
- rtl/video/batman_vad_regs.sv:30 Regs 01-1F read back their last value, as in MAME; the game never reads them, so this is unobservable.
- rtl/video/batman_vad_regs.sv:84 tag A (MAME m_pf1_xscroll_raw)
- rtl/video/batman_vad_regs.sv:85 tag B (MAME m_pf0_xscroll_raw),
- rtl/video/batman_vad_regs.sv:224 The two playfields share one horizontal fetch pipeline, so PF2's scroll includes the low three bits of PF1's (confirmed against MAME's frames).
- rtl/video/batman_vad_sync.sv:12 Register fields (register layout as in MAME; the VAD sheet is not in the manual) and Batman's values: reg 01 V_SY_S [11:3] V_SY_E [2:0] 0795
- rtl/video/batman_vad_sync.sv:43 ---- scanline interrupt ------------------------------------------------- 0 = a comparator on the V counter (fires every frame); 1 = MAME's one-shot timer, re-armed by each reg 03 write.
- rtl/video/batman_video.sv:459 An MPR2 object is hidden from 9B/9C/9D (as in MAME) but still seen by 11D.
- rtl/video/batman_vram.sv:14 (The VAD sheet is not in the manual; this schedule is inferred from MAME, the VAD registers and frame matching.) clk_sys gives eight clocks per pixel, so here each pixel is split into eight phases: ph 0-4 the layers, ph 5 MO, ph 6 CPU, ph 7
- README.md:10 MAME is used as a cross-reference for what the schematics do not cover.
- README.md:25 MAME has one Batman set, with no clones.
- README.md:52 **First boot.** Before a save file exists, the core fills the EEPROM from the factory image in the MAME set (`batman-eeprom.bin`).
- README.md:123 The 6502's 4 ms interrupt timer only restarts after the 6502 acknowledges it, as on the board; MAME runs it freely.
- README.md:128 MAME applies no filtering, so this core sounds darker than MAME, as the real board does.
- README.md:129 The ADPCM and FM chips are mixed 33 : 15, as the mixer resistors set it; MAME uses 0.75 : 0.60.
- README.md:132 MAME uses a flat ×2.
- README.md:134 **ADPCM ROM banking from the GAL.** In one bank, the GAL on the sound board selects a different sample ROM than MAME's hard-coded mapping.
- README.md:153 The core uses 14.318 MHz, as MAME does.
- README.md:177 | Boot | 338,939 bus cycles of the 68000 from power-on (every write, and every access outside the program ROM), compared one by one with MAME | Same cycles in t
- README.md:178 | Video | 44 frames (attract, gameplay, the staircase scene, all four self-test screens, synthetic states) compared pixel by pixel with MAME, with graphics fetc
- README.md:183 The test benches, MAME captures and development notes behind these results are not part of this repository.
- README.md:279 **The MAME team**: `batman.cpp`, `atarivad`, `atarimo` and `atarijsa` (Aaron Giles and contributors) were the cross-reference for everything the schematics do n
Says it matches, follows or was checked against MAME — 11
- rtl/video/batman_lb.sv:12 The manual lacks the video sheets, so this follows MAME's atarimo.
- rtl/video/batman_mixer.sv:30 1 = joined after the 9B/9C mux, so alpha pixels are stained too; the core uses this, and it matched MAME's frames.
- rtl/video/batman_mob.sv:94 Vertical match, in MAME's arithmetic so the wrap-around folds agree
- rtl/video/batman_pf.sv:30 XOFF defaults to 0; batman_video sets the offsets that match MAME's frames.
- rtl/video/batman_vad_dma.sv:9 The manual lacks the VAD sheets; this follows MAME's atarivad plus what the game program does.
- rtl/video/batman_vad_regs.sv:9 The manual lacks the VAD sheet; this follows MAME's atarivad, corrected where the game's own behaviour shows MAME is incomplete: * Reg 00: bit 15 master enable, bit 14 suspends the VAD's DMA channel (the game sets it around every edit of th
- rtl/video/batman_video.sv:12 The kit manual does not include the video schematic sheets (VAD, MOB, video RAM, line buffers), so this block follows MAME's atarivad / atarimo, the GAL fuse maps and sibling Atari cores, checked against MAME's frames.
- rtl/video/batman_video.sv:34 ---- tuning; the defaults match MAME's frames pixel for pixel --------
- README.md:149 That part of the core follows MAME's behaviour, the fuse maps of the GALs around it and sibling Atari cores, and it was checked frame by frame against MAME and
- README.md:179 | Sound | 3 s of attract and 22 s of gameplay replayed against MAME recordings | Every sound-chip write made in answer to a game command matches MAME in order a
- README.md:181 | Whole core | Built with Quartus 17.0.2 and run on DE10-Nano boards by the author and by other testers | Boots and plays with no problems reported. Screenshots