← コア一覧
Badlands
MAMEのドライバにない実基板の資料を引用 — 112
- rtl/badlands_core.sv:11 badlands_main sheets 1 and 2 plus the whole memory path: fx68k 22E, the GAL 26C / LS138 24C decode, the 28R LS163A wait sequencer, the 8 K x 8 22V video/work RAM and its GAL 21R slot schedule, the 22J VBLANK latch and 13J IPL encoder, the
- rtl/badlands_core.sv:38 ce_14m = clk_sys / 4 = 14.318181 MHz 14M: CRAM byte rate, GAL 21R clock ce_7m = clk_sys / 8 = 7.159091 MHz 7M: pixel, H counter, 68000 ce_1h = clk_sys / 16 = 3.579545 MHz 1H: YM2151 phiM, LETA CK ce_2h = clk_sys / 32 = 1.78
- rtl/badlands_core.sv:80 The 2816A's self-timed byte write, in clk_sys cycles: the data-sheet 10 ms at 57.272724 MHz.
- rtl/badlands_core.sv:335 GAL 9N pin 12: /MISC2 and R/W come from the main board, AUDFULL from the 15J flag on sheet 5, and the D8 pair goes back into badlands_main's read mux.
- rtl/badlands_core.sv:350 SOUND — sheet 5 (there is no separate audio PCB)
- rtl/main/badlands_addr_decode.sv:3 Bad Lands address decode -- the GAL 26C (136074-1001), the LS138 24C it enables, and the program-ROM chip/output enables, from schematic sheet 2.
- rtl/main/badlands_addr_decode.sv:11 ---- GAL 26C, a GAL16V8 in 16L8 mode, all outputs combinatorial ---------- pins 1..8 = /AS, R/W, A13, A14, A15, A16, A17, A23 pins 9, 11 = BS0, BS1 from the empty SLAPSTIC socket 28C: in no product term, so there is no SLAPSTIC to implem
- rtl/main/badlands_addr_decode.sv:40 ---- LS138 24C ---------------------------------------------------------- G1 (6) = +5 V, /G2A (4) = GND, /G2B (5) = /MISC, C,B,A (3,2,1) = A15,A14,A13
- rtl/main/badlands_addr_decode.sv:84 ---- LS138 24C outputs, active low -----------------------------------
- rtl/main/badlands_addr_decode.sv:128 ---------------- LS138 24C ------------------------------------------- /G2A = GND, G1 = +5 V, /G2B = /MISC ; C,B,A = A15,A14,A13
- rtl/main/badlands_cpu.sv:3 Bad Lands main CPU -- fx68k (cycle-exact 68000) wired as schematic sheet 2 draws the 22E MC68000.
- rtl/main/badlands_cpu.sv:13 ---- the clock phase, and why it matters -------------------------------- The SOS-2's 7M pin drives one load: 23R 74F74 half 2's D input, clocked by 14M rising.
- rtl/main/badlands_cpu.sv:17 7M -> GAL 26R CLK, GAL 21R input, GAL 9N, LB ACLK, the H counter /7M -> 68000 22E CLK (pin 15), 28R LS163A CLK (pin 2), 7N, 10K
- rtl/main/badlands_cpu.sv:20 The CPU and the /DTACK sequencer run on /7M while GAL 26R and the video side run on 7M; that half-cycle stagger is deliberate.
- rtl/main/badlands_cpu.sv:35 badlands_dtack takes the same (pcnt == 4) tick, which is what sheet 2 wires to its LS163A.
- rtl/main/badlands_cpu.sv:38 ---- pins as sheet 2 wires them -----------------------------------------
- rtl/main/badlands_cpu.sv:55 The same net drives the 28R LS163A's ENT, so an IACK gets no /DTACK and can only end through the CPU's own VPA path -- badlands_dtack's business, not this module's. Here we just publish `fc` and take `vpa_n`.
- rtl/main/badlands_cpu.sv:97 the /7M rising tick, so badlands_dtack's LS163A can use the very same edge sheet 2 wires to its pin 2
- rtl/main/badlands_cpu.sv:137 double bus fault; no load on sheet 2
- rtl/main/badlands_dtack.sv:3 Bad Lands /DTACK -- the 28R 74LS163A wait-state sequencer of schematic sheet 2, plus the 19J LS08 that ORs in the video RAM's /RTIME.
- rtl/main/badlands_dtack.sv:7 Structure ported from `Arcade-Blasteroids_MiSTer/rtl/main/blstroid_dtack.sv` (GPL-3.0, same author, a 12C LS163A doing the same job).
- rtl/main/badlands_dtack.sv:11 ---- the part, as sheet 2 wires it -------------------------------------- 6,5,4,3 D,C,B,A = /RAM , /AUDRESD , /EEROM , /AUDRESD
- rtl/main/badlands_dtack.sv:20 19J LS08: pin 2 = /RTIME (GAL 21R pin 14), pin 1 = /RCO, pin 3 = /DTACK => /DTACK = /RTIME AND /RCO, i.e. asserted when RCO = 1 or /RTIME = 0.
- rtl/main/badlands_dtack.sv:65 GAL 21R pin 14 -> 19J LS08 pin 2
- rtl/main/badlands_dtack.sv:75 On the LS163A the ripple carry is RCO = QA.QB.QC.QD.ENT, so /VPA kills RCO as well as the count.
- rtl/main/badlands_eeprom_2816.sv:3 Xicor 2816A (2 K x 8) EEPROM at 27J plus the 22J F74 unlock flop and the 19J LS08 that gates its /OE -- schematic sheet 2.
- rtl/main/badlands_eeprom_2816.sv:14 ---- wiring ------------------------------------------------------------- 19,22,23,1 A10..A7 = 68000 A11, A10, A9, A8 2-8 A6..A0 = 68000 A7, A6, A5, A4, A3, A2, A1 17..9 D7..D0 = the 68000's D7:0 -- the odd / low byte lane
- rtl/main/badlands_eeprom_2816.sv:27 ---- the unlock / lock protocol ----------------------------------------- 22J F74 half 1: D(2) = GND CLK(3) = /WRL (rising = the end of any 68000 write) /PRE(4)= /UNLOCK (a write to 0xFEE001, LS138 24C Y7) /CLR(1)= /RES Q(5) -> 1
- rtl/main/badlands_inputs.sv:3 Bad Lands inputs -- /SWITCHES (18C LS244), the LETA 20C, the two steering quadrature generators and the LM556 pedal timers of schematic sheet 1.
- rtl/main/badlands_inputs.sv:74 ============ pedals ==================================================== One LM556 at 26A, both halves used.
- rtl/main/badlands_inputs.sv:203 badlands_pedal_556 -- one half of the LM556 at 26A plus its two RC networks.
- rtl/main/badlands_inputs.sv:456 Schematic sheet 1: the 556's raw output reaches the LETA's DIR (R43) and the low-passed copy its CLK (R41 + C39), so DIR leads and both DIR edges count DOWN.
- rtl/main/badlands_irq.sv:3 Bad Lands interrupts -- the 22J 74F74 VBLANK latch and the 13J 74F00 that encodes /IPL0, from schematic sheet 2.
- rtl/main/badlands_irq.sv:44 LS138 24C Y1, level, active low (write 0xFE2001)
- rtl/main/badlands_irq.sv:45 15J sheet 5, active low -> /IPL1 directly
- rtl/main/badlands_irq.sv:51 ---------------- 22J 74F74 half 2 ----------------------------------- Set by the rising edge of VBLANK, cleared while /VIRQACK is low.
- rtl/main/badlands_irq.sv:53 /CLR dominates the clock on a 74F74, so the clear is tested first.
- rtl/main/badlands_irq.sv:64 ---------------- 13J 74F00 pin 8 and the two direct nets -------------
- rtl/main/badlands_main.sv:28 Several reads drive only part of it: /MISC2 read -- GAL 9N drives D8 only /SWITCHES -- 18C LS244 drives D7:0 only /LETA -- the LETA drives D7:0 only /AUDRD -- 13F LS374 drives D15:8 only /CRAM -- 8F LS245 drives D15:
- rtl/main/badlands_main.sv:44 A23 = 0 there, so /RAM, /EEROM and /AUDRESD are all inactive and the 28R LS163A loads V = 15, where RCO asserts /DTACK at once: zero wait states, the cycle completes, the 68000 does not hang and the watchdog is not invoked.
- rtl/main/badlands_main.sv:99 GAL 9N pin 12 sits in the video block on the real board (sheet 4), so the D8 = AUDFULL read at 0xFC0000 comes in here rather than being formed locally; `misc2_n` and `cpu_rw` go out to that same GAL.
- rtl/main/badlands_main.sv:198 /MISC only enables the LS138 24C, whose eight Y outputs are the strobes this module actually uses; a13s/a14s are the empty SLAPSTIC socket's pass-throughs and are already folded into `rom_a`, and rom_oe_lo/hi pick which 27512 pair answers,
- rtl/main/badlands_main.sv:298 the 28R LS163A wait sequencer
- rtl/main/badlands_watchdog.sv:3 Bad Lands power-on reset and watchdog -- the Q1 2N5306 / R30 / C33 POR node and the 28A 74LS197 of schematic sheet 1.
- rtl/main/badlands_watchdog.sv:21 ---- 28A 74LS197 -------------------------------------------------------- D (11) = +5 V ; C (3) = B (10) = A (4) = GND => the preset is 8 CLK1 (8) = VBLANK ; CLK2 (6) = QA (5) (the two stages cascade) /CLR (13) = the POR node
- rtl/main/badlands_watchdog.sv:55 It does not reach the SOS-2, the LETA, the PF bank flop 18S, the MO/priority flops 15V/18R, the PIXCLK flop 14E, the sound IRQ latch 14E or either mailbox flag in 15J; the sound section is reset only by /AUDRES.
- rtl/main/badlands_watchdog.sv:74 LS138 24C Y0, level, active low (write 0xFE0001)
- rtl/main/badlands_watchdog.sv:111 ---------------- 28A 74LS197 ---------------------------------------- Counts on the falling edge of CLK1 = VBLANK, i.e. at the start of vertical blank.
- rtl/mem/badlands_prog_rom.sv:21 SLAPSTIC socket 28C is empty and GAL 26C passes A13/A14 straight through (`o18 = i3`, `o19 = i4`), so 0x008000-0x00FFFF is plain ROM with nothing to bank.
- rtl/mem/badlands_vram.sv:3 Bad Lands video / work RAM -- the one 8 K x 8 SRAM at 22V, its four address multiplexers, GAL 21R (136074-1002), the 1H byte-lane scheme and the 19N / 22K / 28N / 28L / 22N data path.
- rtl/mem/badlands_vram.sv:13 ---- the part ------------------------------------------------------------ One 8 K x 8 100 ns SRAM (137535-004) at 22V.
- rtl/mem/badlands_vram.sv:60 ---- the sampling phase, which is forced --------------------------------- 23R (which makes 7M) and GAL 21R are both clocked by 14M rising, so the GAL samples 7M, 1H, 2H, 4H pre-edge.
- rtl/mem/badlands_vram.sv:83 /RAMWP = 17J F32 OR( GAL 21R pin 15 , MODCLK ) -> 22V /WE and MODCLK (= 7M delayed a quarter period, 50 % duty) is low over pcnt 2..5, so /RAMWP is one clean ~70 ns pulse inside each H count.
- rtl/mem/badlands_vram.sv:240 26T 74F153 -> A12, A6
- rtl/mem/badlands_vram.sv:247 28T 74F153 -> A8, A7
- rtl/mem/badlands_vram.sv:254 23T 74F157 (SEL = 2H, /E = 4H) -> A11, A10, A9, A1
- rtl/mem/badlands_vram.sv:259 21T 74F157 (SEL = /UTIME, /E = GND) -> A5, A4, A3, A2
- rtl/mem/badlands_vram.sv:322 28N is a 74F373 transparent latch, not a register: LE = /2H, so D7:0 follows the RAM bus for the whole of h = 0 and h = 1 and only closes at the start of h = 2.
- rtl/video/badlands_analog_adjust.sv:27 Our numbers (badlands_hstrobes, GAL 26R + 13V; one pixel per H count):
- rtl/video/badlands_cram.sv:3 Bad Lands — the colour-RAM port: the 2 K x 8 SRAM at 8K, the 10K F374 address latch, the 8J A0 mux, the 19K/8F CPU path, the 3K byte-0 holding register, the 1K/5K HC273 output registers and the 14E/4J PIXCLK gate.
- rtl/video/badlands_cram.sv:6 Schematic sheet 4 grids 8K, 10K, 19K, 8F, 8J, 3K, 1K, 5K, 14E, 4J.
- rtl/video/badlands_cram.sv:23 10K latches at 7M falling; then 7M = 0 gives A0 = 0 (byte 0 = colour word D15:8, held by 3K at the next 7M rising edge) and 7M = 1 gives A0 = 1 (byte 1 = D7:0, taken by 5K directly).
- rtl/video/badlands_cram.sv:33 That is the only blanking mechanism on the board; sheet 6 has no /BLANK input.
- rtl/video/badlands_cram.sv:94 10K 74F374 — the video address latch (CK = /7M rising = 7M falling)
- rtl/video/badlands_dac.sv:5 Schematic sheet 6.
- rtl/video/badlands_dac.sv:50 the raw gun codes, for anyone reproducing sheet 6
- rtl/video/badlands_hstrobes.sv:3 Bad Lands — GAL 26R (136074-2000) at 26R, the horizontal strobe generator, plus the 13J F00 inverter that makes `8HD6H` and the 13V LS175 `/HSYNC` delay network (R98/R99/R100).
- rtl/video/badlands_hstrobes.sv:43 The /HSYNC delay: 13V 74LS175 is clocked by PVCLK rising (once per 16 counts, at the n = 5 -> 6 boundary).
- rtl/video/badlands_hstrobes.sv:79 ---- GAL 26R pins (all registered on 7M rising) ----------------------
- rtl/video/badlands_hstrobes.sv:214 13J 74F00 pins 1 = /8HD6H, 2 = +5 V, 3 = 8HD6H (a NAND as an inverter).
- rtl/video/badlands_hstrobes.sv:229 13V 74LS175 — the /HSYNC delay line, clocked by PVCLK rising
- rtl/video/badlands_hstrobes.sv:232 A 74LS175 clocked by PVCLK therefore captures the value /HSYNCDO held during that n = 5 count, i.e. `hsyncdo_n` before this cycle's update.
- rtl/video/badlands_lb.sv:3 Bad Lands — the motion-object LINE BUFFER, Fujitsu MB87316 at 15N.
- rtl/video/badlands_lb.sv:4 Schematic sheet 4 grid 15N.
- rtl/video/badlands_lb.sv:11 WE1/WE0 = /MOW1 //MOW0 DIE1/DIE0 = /MOD1 //MOD0 MOR1/MOL1 = /MOR1 //MOL1 MOR0/MOL0 = /MOR0 //MOL0 DI7:DI4 = 17K /Q = NOT {RAMD3,RAMD2,RAMD1,RAMD0} = /priority, /palette DI3:DI0 = /MO3:0 (7T/7R high nibble) DOE = /MO (the tri-state
- rtl/video/badlands_lb.sv:55 in which GAL 9N evaluates the priority (during the 7M = 0 half of count k) and 10K latches the winner's index (at the next 7M falling edge).
- rtl/video/badlands_lb_ctrl.sv:3 Bad Lands — GAL 16S (136074-1003) at 16S, plus the two 16P F00 gates that turn its o14/o15 into /MOW0 and /MOW1.
- rtl/video/badlands_lb_ctrl.sv:4 Schematic sheet 4 grid 16S / 16P.
- rtl/video/badlands_lb_ctrl.sv:64 ---- GAL 16S / 16P outputs -------------------------------------------
- rtl/video/badlands_mo.sv:3 Bad Lands — the MOTION-OBJECT engine: VMATCH 17U, the 13V/15V chip selects and the three stamp ROMs, 17K's palette/priority latch, 18S/2's VMD flop, 24J's pen-zero test, GAL 16S + 16P, and the MB87316 line buffer at 15N.
- rtl/video/badlands_mo.sv:6 Schematic sheet 4.
- rtl/video/badlands_mo.sv:39 8H, 8HD6H and H mod 16 do not divide 456, so the group beginning at H = 448 is only 8 counts long, and: * /8H produces no rising edge between H = 448 and H = 16, so 17K (palette + priority) and 18S/2 (VMD) hold entry 27's values across the
- rtl/video/badlands_mo.sv:72 1V -> RSEL and GAL 16S pin 9
- rtl/video/badlands_mo.sv:178 GAL 16S + 16P F00
- rtl/video/badlands_mo.sv:198 The MB87316 line buffer at 15N
- rtl/video/badlands_mo_fetch.sv:5 Schematic sheet 4 grids 13V, 15V, 14R/10R/14T.
- rtl/video/badlands_pf.sv:5 Schematic sheet 3.
- rtl/video/badlands_pf.sv:29 The pipeline, inside a group of eight counts c: the PF word is complete on RAMD15:0 at 8c+3, where 9V/7V latch it (4H rising) and PFA17/16 and A15:A5 settle; ROM byte 0 ({/4H,2H} = 00) is read over 8c+4 and 8c+5; at 8c+5 11V latches the pal
- rtl/video/badlands_pf.sv:45 18S 74F74 half 1 has /PRE and /CLR both tied to +5 V, so the bank bit's power-on value is indeterminate; `BANK_POR` parameterises it and 0 matches MAME.
- rtl/video/badlands_pf.sv:59 Only the low three H and V bits reach sheet 3: the stamp arrives through the VRAM word, the row is {4V,2V,1V} and the byte index is {/4H,2H}.
- rtl/video/badlands_pf.sv:87 18S 74F74 half 1 — the playfield bank bit
- rtl/video/badlands_pf.sv:110 Only the ROM-address and chip-select fields are needed here; the palette (D15:13) is taken from the 9V latch by 11V two counts later.
- rtl/video/badlands_prio.sv:3 Bad Lands — GAL 9N (136074-1004) at 9N and the 18R F74 half 2 that registers its decision.
- rtl/video/badlands_prio.sv:4 Schematic sheet 4 grids 9N, 18R.
- rtl/video/badlands_prio.sv:109 ---- 18R 74F74 half 2: D = pin 19, CK = 14M rising, no reset ---------
- rtl/video/badlands_sos2_sync.sv:3 Bad Lands — the SOS-2 sync generator (Atari 137550-001 at 25M, schematic 047194-01 sheet 1 grid 25M).
- rtl/video/badlands_sos2_sync.sv:12 The SOS-2's own HBLANK (pin 21) and /HSYNC (pin 23) outputs are unconnected on this board: horizontal blanking and sync are regenerated in GAL 26R (136074-2000) and the sync is delayed through 13V, so they live in badlands_hstrobes.sv, and
- rtl/video/badlands_sos2_sync.sv:19 ---- horizontal --------------------------------------------------------- H_TOTAL = 456 counts of 7M follows from GAL 26R alone: its /FIRSTH product-term set {453,454,455,0,1,2,3,4} is contiguous only if 455 wraps to 0.
- rtl/video/badlands_sos2_sync.sv:49 Two independent facts fix this: GAL 26R is clocked by 7M rising and its registered /FIRSTH, /BLANK and /8HD6H sets are the solved sums shifted late by exactly one 7M period, which only holds if the SOS-2's H counter also advances on 7M risi
- rtl/video/badlands_sos2_sync.sv:58 Everything downstream — GAL 26R's registers, GAL 21R, 18R's two decisions per pixel, 7N/10K on /7M, 3K on 7M, PIXCLK = NOR(14E./Q, 7M) — is written against this convention.
- rtl/video/badlands_sos2_sync.sv:269 /VRES — the frame reset the SOS-2 shares with the VMATCH custom at 17U, low over the last line of the frame.
- rtl/video/badlands_video.sv:19 count k 7T/7R present /PF3:0 and /MO3:0 for count k; the LB presents DO for count k from ph 4 ph 4..7 of k GAL 9N evaluates the rule (7M = 0) on those pens ph 0..3 of k+1 18R publishes the winner; 7N (latched at ph 4 of k) or the L
- rtl/video/badlands_video.sv:42 It clears 1K/5K, which is the only blanking mechanism — sheet 6 has no /BLANK input of its own.
- rtl/video/badlands_video.sv:164 GAL 26R (26R) + the 13J inverter + the 13V /HSYNC delay
- rtl/video/badlands_video.sv:185 The playfield (sheet 3)
- rtl/video/badlands_video.sv:207 The motion objects (sheet 4)
- rtl/video/badlands_video.sv:242 The shared /CRAMA7:1 bus and GAL 9N (sheet 4)
- rtl/video/badlands_vmatch.sv:4 Schematic sheet 4 grid 17U.
- rtl/video/crt_adjust.sv:29 On the Bad Lands raster HSync FOLLOWS them: active H = 8..343, /HSYNC low H = 374..405 of 456 (GAL 26R + 13V, badlands_hstrobes), and the V counter and VBLANK advance at the 455 -> 0 wrap (SOS-2 VCLK = /256H).
- README.md:158 | GALs | All six GAL16V8s — address decode, video-RAM timing, line-buffer control, priority, sound decode, horizontal strobes — implemented **verbatim** from th
- README.md:185 The six GALs were decoded with MAME's `jedutil` and their equations are implemented verbatim.
- README.md:340 Thanks to the MAME team, whose `badlands.cpp`, `badlands_v.cpp` and `atarimo.cpp` served as the functional oracle throughout — and whose PCB notes record the re
MAMEのドライバにもある実基板の情報・測定値を引用 — 35
- rtl/badlands_core.sv:216 GAL 9N pin 12: the D8 = AUDFULL read at 0xFC0000 lives in the VIDEO block on the real board — MAMEにも記載: 9N atari/badlands.cpp:505
- rtl/main/badlands_addr_decode.sv:7 Structure ported from `Arcade-Blasteroids_MiSTer/rtl/main/blstroid_addr_decode.sv` (GPL-3.0, same author); the equations are out of the 136074-1001 fuse map. — MAMEにも記載: 136074-1001 atari/badlands.cpp:152
- rtl/main/badlands_addr_decode.sv:31 /RAM has no /AS qualifier, so it can be asserted while the bus is idle; GAL 21R takes /AS separately on its pin 3, so do not AND the two here. — MAMEにも記載: 21R atari/badlands.cpp:503
- rtl/main/badlands_addr_decode.sv:75 ---- GAL 26C outputs, active low exactly as the pins are named ------- — MAMEにも記載: 26C atari/badlands.cpp:502
- rtl/main/badlands_addr_decode.sv:109 ---------------- GAL 26C (136074-1001) ------------------------------- Written as the active-low pin: pin = ~(sum of products). — MAMEにも記載: 26C atari/badlands.cpp:502, 136074-1001 atari/badlands.cpp:152
- rtl/main/badlands_main.sv:289 /RAM arrives with no /AS term, exactly as GAL 26C emits it — MAMEにも記載: 26C atari/badlands.cpp:502
- rtl/main/badlands_main.sv:490 Nothing in GAL 26C or the LS138 looks at the lanes, which is why the qualification has to be here: the program loads the palette as pairs of byte writes, an even byte carrying the colour and an odd byte carrying a constant the board throws — MAMEにも記載: 26C atari/badlands.cpp:502
- rtl/main/badlands_main.sv:536 D8 comes from GAL 9N pin 12, which is in the video block; its own enable term is /MISC2 & R/W, i.e. exactly this branch's condition. — MAMEにも記載: 9N atari/badlands.cpp:505
- rtl/mem/badlands_prog_rom.sv:12 20F 136074-1008 /OE = A17 D15:8 0x000000-0x01FFFF even bytes — MAMEにも記載: 20F atari/badlands.cpp:114, 136074-1008 atari/badlands.cpp:137
- rtl/mem/badlands_prog_rom.sv:13 27F 136074-1006 /OE = A17 D7:0 0x000000-0x01FFFF odd bytes — MAMEにも記載: 27F atari/badlands.cpp:116, 136074-1006 atari/badlands.cpp:139
- rtl/mem/badlands_prog_rom.sv:14 17F 136074-1009 /OE = /A17 D15:8 0x020000-0x03FFFF even 24F 136074-1007 /OE = /A17 D7:0 0x020000-0x03FFFF odd /CE = A23 on all four; ROM address = {A16,A15,A14S,A13S,A12..A1}. — MAMEにも記載: 17F atari/badlands.cpp:113, 136074-1009 atari/badlands.cpp:136, 24F atari/badlands.cpp:115, 136074-1007 atari/badlands.cpp:138
- rtl/mem/badlands_sdram_loader.sv:12 Bad Lands' MO stamps come from three ordinary 27512s at 14R / 10R / 14T selected by {MOA17,MOA16}, so the socket index is just the top two bits of a flat byte address and one stamp row is eight consecutive bytes. — MAMEにも記載: 14R atari/badlands.cpp:109, 10R atari/badlands.cpp:108, 14T atari/badlands.cpp:109
- rtl/mem/badlands_vram.sv:32 ---- GAL 21R (136074-1002), verbatim ------------------------------------- GAL16V8 registered. — MAMEにも記載: 21R atari/badlands.cpp:503, 136074-1002 atari/badlands.cpp:156
- rtl/mem/badlands_vram.sv:177 ------------------------------------------------ GAL 21R, registered — MAMEにも記載: 21R atari/badlands.cpp:503
- rtl/mem/badlands_vram.sv:216 ------------------------------------------ GAL 21R, combinatorial pins — MAMEにも記載: 21R atari/badlands.cpp:503
- rtl/video/badlands_cram.sv:71 GAL 9N pin 17 — MAMEにも記載: 9N atari/badlands.cpp:505
- rtl/video/badlands_hstrobes.sv:75 ---- GAL 26R inputs (pins 2-9, 12, 19) ------------------------------- — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_hstrobes.sv:102 GAL 26R — the equations verbatim in net names. — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_lb_ctrl.sv:55 ---- GAL 16S inputs --------------------------------------------------- — MAMEにも記載: 16S atari/badlands.cpp:504
- rtl/video/badlands_mo.sv:73 GAL 26R pin 17 — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_mo.sv:74 GAL 26R pin 18 (wired to 16S, unused) — MAMEにも記載: 26R atari/badlands.cpp:507, 16S atari/badlands.cpp:504
- rtl/video/badlands_mo.sv:78 ---- GAL 26R strobes used as clocks ---------------------------------- — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_mo.sv:96 DO7:0 -> /CRAMA7:1 and GAL 9N — MAMEにも記載: 9N atari/badlands.cpp:505
- rtl/video/badlands_pf.sv:41 A playfield pen of 0 is a normal opaque colour on this board — GAL 9N tests /PF3 only, so the playfield has no transparency. — MAMEにも記載: 9N atari/badlands.cpp:505
- rtl/video/badlands_prio.sv:64 ---- GAL 9N inputs ---------------------------------------------------- — MAMEにも記載: 9N atari/badlands.cpp:505
- rtl/video/badlands_sos2_sync.sv:39 * VBLANK (pin 22) is an active-high output, taken raw to /SWITCHES D6, the watchdog clock, GAL 26R pin 12 and the sound IRQ. — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_sos2_sync.sv:145 GAL 26R pin 12, watchdog CLK) — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_video.sv:3 Bad Lands — the whole raster-time video block: sheets 1 (SOS-2, GAL 26R), 3 (playfield), 4 (motion objects, priority, colour RAM) and 6 (the DACs and composite sync). — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_video.sv:13 DO7 does not reach the bus: it is the stored priority bit and goes only to GAL 9N pin 11. — MAMEにも記載: 9N atari/badlands.cpp:505
- rtl/video/badlands_video.sv:41 The board has one blanking net, /BLANK (GAL 26R pin 13), and it already contains VBLANK. — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_video.sv:43 MiSTer's `arcade_video` wants separate hblank and vblank, so this module exports GAL 26R's own sum with the VBLANK term removed as `hblank`, and the SOS-2's VBLANK as `vblank`. — MAMEにも記載: 26R atari/badlands.cpp:507
- rtl/video/badlands_video.sv:90 ---- GAL 9N pin 12: AUDFULL on D8 at 0xFC0000 ------------------------ — MAMEにも記載: 9N atari/badlands.cpp:505
- rtl/video/badlands_video.sv:299 The DACs settle at PIXCLK (ph 4) and the blanking / sync nets are per-count values out of GAL 26R, so one common ce_7m register keeps them aligned to the count and hands `arcade_video` a clean one-pixel-per-ce_pix stream. — MAMEにも記載: 26R atari/badlands.cpp:507
- README.md:152 | Priority | GAL16V8 9N (`136074-1004`), from the dumped fuse map | — MAMEにも記載: 9N atari/badlands.cpp:505, 136074-1004 atari/badlands.cpp:154
- README.md:273 Two of the six GAL dumps have no second read.** `136074-1004` (priority, 9N) and `136074-2000` (horizontal strobes, 26R) have a single dump each; the other four — MAMEにも記載: 136074-1004 atari/badlands.cpp:154, 9N atari/badlands.cpp:505, 136074-2000 atari/badlands.cpp:157, 26R atari/badlands.cpp:507
MAMEとの相違点を記載 — 4
- README.md:11 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:222 Where this core differs from MAME
- README.md:225 It is where the A047193-01 schematics document something MAME's model does not.
- README.md:253 **The pedal model and the self-test bit** are cases where MAME's model is not a model of this circuit.
MAMEのソースを引用 — 40
- Arcade-Badlands.sv:13 Bad Lands runs on a horizontal monitor (MAME ROT0), so there is no rotation.
- rtl/main/badlands_eeprom_2816.sv:58 ---- programming time --------------------------------------------------- The 2816A 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/badlands_inputs.sv:98 PEDAL_IDLE_SILENT stops the idle oscillator so the LETA reads a flat 0x00, as MAME's does, for simulation only.
- rtl/main/badlands_inputs.sv:108 Why a generator and not "add the delta into the counter", which is what MAME does: making real edges keeps the 3.58 MHz sample rate, the input filter, the decode factor and the direction logic in the path, so a player who spins faster than
- rtl/main/badlands_inputs.sv:376 Simulation only: 1 stops the idle oscillator so the LETA reads the flat 0x00 MAME's does.
- rtl/main/badlands_main.sv:38 `UNDRIVEN_DATA = 0xFFFF` is the default because that is what MAME returns; `UNDRIVEN_LAST_VALUE = 1` models the board instead.
- rtl/main/badlands_watchdog.sv:61 MAME uses a generic WATCHDOG_TIMER with library-default seconds-scale timing, about 20x too long; this module is the schematic's.
- rtl/mem/badlands_rom_loader.sv:13 stream base size MAME region destination
- rtl/video/badlands_cram.sv:43 Touching colour RAM during active display therefore shows on screen; MAME has no equivalent artefact.
- rtl/video/badlands_dac.sv:11 MAME uses `palette_device::IRGB_1555`, in which colour-word bit 15 adds an LSB to all three guns — the board wires that bit to the green ladder alone, so do not implement IRGB_1555.
- rtl/video/badlands_dac.sv:14 Expect a small systematic colour difference from MAME on any entry with bit 15 set.
- rtl/video/badlands_gfx_client.sv:46 MAME's `ROMREGION_INVERT` is MAME's, not the board's: the pen buses `/PF3:0` and `/MO3:0` are active low, which is the polarity the 27512 already holds.
- rtl/video/badlands_lb.sv:19 512 locations per bank (A8:A0 = 9 bits) = MAME's `xposmask = 0xff80`.
- rtl/video/badlands_lb.sv:60 With this phase the MOH X field maps straight to the screen column with no offset, exactly as MAME's atarimo does.
- rtl/video/badlands_mo.sv:29 Objects per line — a hard limit with no MAME counterpart: entries 0..26 fetched at H = 0..431, drawn at H = 16..447, fully drawn
- rtl/video/badlands_mo_fetch.sv:56 0 = the schematic (code[11:10] bypasses the row adder through 13V/15V), 1 = MAME (the whole 12-bit code is incremented).
- rtl/video/badlands_pf.sv:17 D12 bank D11 | device | tiles offset MAME code
- rtl/video/badlands_pf.sv:25 MAME's `code = (data & 0x1fff) + (BIT(data,12) ?
- rtl/video/badlands_prio.sv:51 The rule this produces: the motion object wins when mo_pen != 0 AND ( priority OR NOT pf_pen[3] ), which is what MAME's `screen_update_badlands` does.
- rtl/video/badlands_video.sv:32 8c+7 — the visible window is columns 0..41 exactly, with no scroll and no offset, which is what MAME's un-scrolled 64 x 32 TILEMAP_SCAN_ROWS produces; * the LB read pointer is reset at H = 5 and location L is read during count L+6, so LB lo
- rtl/video/badlands_video.sv:54 0 = schematic, 1 = MAME's row carry
- rtl/video/badlands_vmatch.sv:21 The internals are inferred: this is the only algorithm consistent with the pin widths, the MO RAM layout, the ROM geometry and MAME.
- rtl/video/badlands_vmatch.sv:40 This reproduces MAME's atarimo arithmetic exactly: MAME draws the sprite from `ypos = (-Y - 8*height) mod 512` downwards, and solving `sy = ypos + 8*t + line` for the scanline gives the same D.
- rtl/video/badlands_vmatch.sv:47 MAME increments the full 12-bit code instead; `code_hi_carry` exports MAME's version of the top two bits so `badlands_mo`'s `MO_CODE_CARRY` parameter can select either behaviour.
- rtl/video/badlands_vmatch.sv:73 (code + row)[11:10] — the MAME leg
- rtl/video/badlands_vmatch.sv:130 ...and this is what MAME would produce instead.
- README.md:39 | ROMs | Supplied by you from a MAME archive; none are included here |
- README.md:185 The six GALs were decoded with MAME's `jedutil` and their equations are implemented verbatim.
- README.md:188 **Main CPU boot** — the 68000 bus is co-simulated against MAME: **912,548 consecutive bus cycles agree** (address, R/W, data, size) through reset, the ROM check
- README.md:194 **Video** — MAME is instrumented to capture complete video state (playfield, motion-object and colour RAM) at chosen frames; those states are replayed through t
- README.md:197 **21 frames — 8 attract, 12 gameplay, 1 power-on — are pixel-exact over the 1,122,902 compared pixels.** The pixels left out are the scanlines where the CPU wri
- README.md:202 **Sound** — the sound section is compared to MAME over **12 seconds / 719 frames**: 586 mailbox commands and 584 responses order-exact, the YM2151 register writ
- README.md:204 The one divergence is the inverted self-test bit described below; flipping that single bit reproduces MAME's streams exactly, which shows it is the *only* diffe
- README.md:224 MAME is this project's functional oracle and every gate above measures the core *against* it, so this is a narrow list, not a general claim.
- README.md:229 | Behaviour | MAME | This core |
- README.md:231 | **Motion-object entries** | 64 entries at a 2-byte stride | The video-side address bit `A1` is forced low, so entries are **4 bytes apart and there are 32**.
- README.md:236 | **Sound self-test bit polarity** | D7 = 1 when self-test is *off* | The inverting LS240 and the game ROM both give D7 = 1 when the switch is *on*. MAME's pola
- README.md:243 **The 27-object limit and the 32-entry list** are the two places where a crowded screen could in principle look different from MAME.
- README.md:250 On a colour word with bit 15 set, MAME brightens all three guns and the board brightens only green.
- README.md:340 Thanks to the MAME team, whose `badlands.cpp`, `badlands_v.cpp` and `atarimo.cpp` served as the functional oracle throughout — and whose PCB notes record the re
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 4
- rtl/video/badlands_lb.sv:35 The idle value is 8'hFF: DI3:0 are the active-low pens /MO3:0, so all-ones decodes to pen 0 = transparent, matching MAME's transparent pen 0.
- rtl/video/badlands_pf.sv:45 18S 74F74 half 1 has /PRE and /CLR both tied to +5 V, so the bank bit's power-on value is indeterminate; `BANK_POR` parameterises it and 0 matches MAME.
- rtl/video/badlands_vmatch.sv:14 OE = GND (always enabled) VFLIPEN = GND HFLD = no connect -> Bad Lands motion objects cannot flip, matching MAME's hflipmask = 0 / vflipmask = 0.
- README.md:269 Its alignment is proved pixel-exact against MAME over 21 frames; its idle output value, read latency and strobe widths as silicon facts are not.
MAMEから移植・書き写した、または取り入れたと記載 — 1
MAMEドライバと同じ文言を含む(出典の明記なし) — 1