← All cores
Arcade-XNSYSTEM11 (XelaNotPu)
Says it was checked on “real hardware” — 2
- rtl/cpu.vhd:614 Confirmed on HW via the packed capture: at the BIOS decompressor "or a0,s2,zero" @0x1FC20320, decodeSource1=0x12($18) decoded correctly but all 3 MLAB read ports (decodeValue1, regs3_q_b_wt, value1) returned 0, while the write-port tap prov
- README.md:39 **Tekken 2 alternate revisions fixed**: the six older revisions (TES1/TES2/ TES3 VER.A/B/C) run on the coh100 board with the earlier CXD8538Q GPU; the core now
Cites MAME source — 154
- SYSTEM11.sv:366 "P1,Video & Audio;", "P1O[33:32],Aspect ratio,Original,Full Screen,[ARC1],[ARC2];", "P1O[35:34],Scale,Normal,V-Integer,Narrower HV-Integer,Wider HV-Integer;", "DEP1O[62],Fixed HBlank,On,Off;", "DEP1O[55],Fixed VBlank,Off,On;", "d5P1O[4:3],V
- SYSTEM11.sv:1194 ===== System 11 GUN I/F aiming (Point Blank 2 / Gunbarl, KEYCUS C443) ===== The System 11 gun is NOT a scanline-sensing lightgun: the GUN I/F PCB just presents absolute X/Y counters at 0x1F780000 (MAME namcos11.cpp lightgun_r).
- SYSTEM11.sv:1196 So aiming reduces to maintaining an absolute position in the hardware's own counter units and clamping to MAME's legal spans: GUN1X 0x0D8..0x387 (centre 0x22F) GUN1Y 0x02C..0x11B (centre 0x0A8) PS/2 mice report RELATIVE deltas, so accu
- SYSTEM11.sv:1243 Trigger: mouse LEFT acts as BUTTON1, which is exactly what MAME's ptblank2 PORT_MODIFY leaves live on PLAYER1 (0x10).
- SYSTEM11.sv:1247 ===== P2 light gun pointer (2026-07-26) ===== Point Blank 2 / Gunbarl are 2-PLAYER games: MAME defines GUN2X/GUN2Y with exactly the same spans as GUN1 (X 0xd8..0x387, Y 0x2c..0x11b, centres 0x22f/0xa8) and keeps PLAYER2 bit 0x10 live as P2'
- SYSTEM11.sv:1301 Titles that use MAME's BASE namcos11 port set, where ADC0/1/2 belong to PLAYER 3 (see the in_adc1/in_adc2 comment at the c76_sound instance).
- SYSTEM11.sv:1316 Signed -128..127; half-scaled and reversed into the wheel's 0x41-0xC0 span (inside MAME's legal 0x38-0xC8).
- SYSTEM11.sv:1325 No clamping needed: prc_stick -127..127 maps to 0x41..0xC0, inside MAME's 0x38..0xC8.
- SYSTEM11.sv:1350 2026-07-06 INPUT FIX: System 11 inputs are read by the C76 (MAME c76_map 0x1000-0x1007) and relayed to the MIPS via shared RAM — they were tied off (nothing could ever be pressed, no coins).
- SYSTEM11.sv:1365 For the gun games MAME's PORT_MODIFY leaves only 0x10 (BUTTON1 = TRIGGER) and 0x80 (START1) live, so the low-nibble remap below is a My Angel 3 mapping that is harmless on the gun games.
- SYSTEM11.sv:1373 PLAYER4: bit4 (0x10) = Tekken P2 kick (joy2[6]) / Soul Edge P2 Guard (C409 0x02 -> joy2[7]); bit3 (0x08) = Pocket Racer (C432 0x07) BUTTON2 = view toggle (joy[5]) per MAME PORT_MODIFY("PLAYER4") 0x08; else unused.
- SYSTEM11.sv:1394 Pocket Racer (KEYCUS C432): AN0 = steering (PADDLE centre 0x80, legal 0x38-0xC8, reversed per MAME) from the left analog stick X, AN1 = throttle pedal (0x00 released, BTN1 = full).
- SYSTEM11.sv:1406 Non-base titles keep 0xFF (they override these UNUSED in MAME).
- SYSTEM11.sv:1412 MAME's BASE namcos11 port set maps ADC0/ADC1/ADC2 to PLAYER 3's BUTTON3/BUTTON2/BUTTON1 -- not to P1's. Only the titles that PORT_MODIFY those channels (the tekken layout, souledge, ptblank2, pocketrc) put P1 inputs there.
- SYSTEM11.sv:1420 keycus 0x09 is deliberately NOT gated: it is shared by My Angel 3 (MAME: all ADCs UNUSED) and Point Blank 2/Gunbarl (MAME: ADC1/ADC2 = P1 BUTTON4/BUTTON3, genuinely needed).
- SYSTEM11.sv:1423 MAME's ADC1 is IPT_PEDAL + PORT_REVERSE (MINMAX 0x00-0x7F), so a RELEASED pedal reads 0x7F, full = 0x00.
- SYSTEM11.sv:1429 Soul Edge: MAME UNUSED
- SYSTEM11.sv:1431 ADC2: Tekken = P1 BTN3 left kick (joy[6]); Soul Edge (C409, id 0x02) maps P1 BUTTON4 (Guard) to ADC2 per MAME PORT_MODIFY("ADC2") -> use joy[7] (Button4).
- SYSTEM11.sv:2006 MAIN-RAM ZERO-FILL (2026-06-26): MAME's namcos11 RAM is a zero-initialized ram_device, so the game reads never-written regions (e.g. the EEPROM-default source buffer @0x802B1CE0 in the upper 2MB) expecting 0x00.
- SYSTEM11.sv:2107 The zero-fill itself is functional (MAME's main RAM is zero-initialized; games read never-written regions) and completes here, releasing reset via ram_cleared.
- SYSTEM11.sv:2314 ===== Light-gun CROSSHAIR overlay (Point Blank 2 / Gunbarl) ===== The arcade cabinet draws NO crosshair — you aim a physical gun at the screen, and MAME's crosshair is its own UI overlay (PORT_CROSSHAIR -> emu/crsshair.cpp), not game output
- rtl/c352.vhd:145 flag bit positions (see MAME C352_FLG_*)
- rtl/c352.vhd:763 MAME: s = last + ((counter * (sample - last)) >> 16), FILTER flag off.
- rtl/c76.vhd:8 C76 internal map (M37702M2, m37710.cpp m37702m2_device::map): 0x000000-0x00007F SFR (peripheral regs) -> stub here (read 0) [*] 0x000080-0x00027F internal RAM (512 B) -> block RAM here 0x00C000-0x00FFFF internal BIOS ROM (16
- rtl/c76.vhd:46 2026-07-06: analog inputs (Tekken P1 kicks ride ADC ch1/ch2; idle = 0xFF) 2026-07-13: AN0 added — Pocket Racer's steering wheel (PADDLE, centre 0x80, legal range 0x38-0xC8 per MAME); AN1 doubles as its pedal (idle 0x00).
- rtl/c76.vhd:49 In MAME's BASE namcos11 port set the WHOLE of player 3 arrives through the A-D converter (AN0/1/2 = BUTTON3/2/1, AN3=RIGHT AN4=LEFT AN5=DOWN AN6=UP, AN7=START3); only the four base-layout titles use them (Dunk Mania, Dancing Eyes, Star Swee
- rtl/c76.vhd:142 init: A/D region 0xFF, a few hardware-default read values seen in MAME.
- rtl/c76.vhd:164 Its handler @0xC31F (-> 0xB946 -> mailbox service) is the most-frequent ISR (357x/run in MAME) — it does the MIPS<->C76 mailbox handshake.
- rtl/c76.vhd:282 Tekken: ch1 = P1 BTN4/right kick, ch2 = P1 BTN3/left kick (MAME tekken INPUT_PORTS); rest idle 0xFF.
- rtl/c76.vhd:379 ---- A-D converter (2026-07-05): minimal MAME-equivalent model ------------- M37702 ADCON = SFR 0x1E: bit6 = conversion START, bit7?
- rtl/c76.vhd:380 repeat mode bits vary; MAME's m37710 completes a conversion ~57 cycles after the start bit and raises the AD IRQ (vector 0xFFD6 -> firmware ISR 0xC30D — the C76's periodic input/publish service that cycles shram 0xBDA4 in MAME every ~2ms; i
- rtl/c76_sound.vhd:12 C76 external memory map (from MAME namcos11 c76_map): 0x001000-0x001007 input ports (PLAYER4/SWITCH/PLAYER1/PLAYER2) 0x002000-0x002FFF C352 registers 0x004000-0x00BFFF shared RAM (mailbox with the MIPS main CPU) 0x080000/0x200000/0x28000
- rtl/c76_sound.vhd:110 2026-07-05 mailbox-handshake forensics: did the C76 SCAN the MIPS boot command (read 0xBD34, MAME value 0x0080) and did it WRITE the boot ACK (0xBD36, MAME value 0x0536)?
- rtl/c76_sound.vhd:359 C76 sound heartbeat: latch writes to 0xBDA4 (cycles ~2ms in MAME during the movie)
- rtl/c76_sound.vhd:533 MAME c76_map: windows 0x080000, 0x200000 and 0x280000 ALL map to sprog offset 0 (512KB region = 256KB ROM + zero fill).
- rtl/cpu.vhd:226 MAME-correct = 0xA420FB00 (sh zero).
- rtl/cpu.vhd:245 CAPTURE #4 (2026-06-24): MAME ground-truth output halfwords for RAM 0x10000-0x101FF (index = addr[8:1]); used by the first-mismatch detector to find the first divergent decompressed output byte vs MAME.
- rtl/cpu.vhd:1168 MAME a0=0x1FC28002 => zn_debug_val=0x8002FA00.
- rtl/cpu.vhd:1171 MEASUREMENT RULER (first-mismatch detector): at the byte-writer combiner "sh v0,-1(a1)" (pcOld1 low28=0xFC2029C, output 0x10000-0x101FF), compare value2(=output halfword) vs the MAME ground-truth mame_tab; latch the FIRST mismatch.
- rtl/cpu.vhd:1179 MAME first source read = lhu(0x1FC28000)=0xE0FF (s11_prog.bin[0x28000]).
- rtl/cpu.vhd:1184 MAME: addr=0x8002 (0x28002), v1=0xBDFF.
- rtl/cpu.vhd:1190 MAME: s2 advances 0x...8000 -> 0x8001 -> 0x8002.
- rtl/cpu.vhd:2416 DECISIVE DIAG 2026-06-24: report the RAW delivered word (cap_raw) on the cache-MISS FILL of 0x10170 (vs MAME 0xA420FB00).
- rtl/cpu.vhd:3179 Compare vs MAME's value at that slot.
- rtl/dma.vhd:98 dbg_corrupt_hdr=the 32b header word read from RAM; dbg_corrupt_src=[31]seen [23:0]=the D_MADR it was read from (compare vs MAME RAM => read-corruption test).
- rtl/dma.vhd:452 2026-06-28: on a DMA2 (GPU) trigger (start bit set), latch the D_MADR the game wrote (dbg_madr_orig) + the sync mode, to compare vs MAME (OT head 0x2B261C / block buffers 0x100174/0x3DFExx).
- rtl/dma.vhd:702 Latch the header word + the D_MADR it was read from (to compare vs MAME RAM).
- rtl/gpu.vhd:24 System 11 GPU is the CXD8538Q = MAME "gputype 1": all coordinate-register Y fields sit 2 bits higher than the retail PSX GPU (gputype 2) this core models.
- rtl/gpu.vhd:801 Per MAME: 109 bank switches during cube attract (game code at 0x800504F0 loads assets from banks).
- rtl/gpu.vhd:818 Tests whether DMA can carry MAME's expected R=31 for cube CLUT entries.
- rtl/gpu.vhd:989 ★ 2026-07-05 READY FIX part 2 (gputype1): MAME NEVER clears GPUSTAT bit26 (init 0x14802000, no writer touches it).
- rtl/gpu.vhd:1116 gputype1 (System 11 CXD8538Q): MAME treats GP1(01) as a packet-framing reset ONLY (n_gpu_buffer_offset=0) — queued/in-progress work is NOT destroyed, and Tekken sends GP1(01) every frame while the (slower) FPGA renderer is still busy.
- rtl/gpu.vhd:1188 CXD8538Q (System 11) = MAME gputype 1; retail = 2.
- rtl/gpu.vhd:1315 2026-07-11 note: 4096 was tried for the T2 texture-corruption overflow theory but BOTH seeds nofit, and MAME BCR ground truth (16-word DMA blocks vs 240-word request margin) makes overflow implausible anyway.
- rtl/gpu.vhd:1457 2026-07-06 INTERLEAVED-TEXTURE FIX: tpage bit13 = ti (CXD8538Q swizzled texture mode; MAME n_ti).
- rtl/gpu.vhd:1494 GPU-type-dependent tpage field layout (MAME decode_tpage, psx.cpp:824).
- rtl/gpu.vhd:1510 ★ 2026-07-05 MASK FIX (MAME ground truth, decode_tpage gputype1): E1 bits 11/12 are REFLECTED in GPUSTAT (gpustatus = tpage & 0x1fff — the game's gputype probe reads bit12 back) but have NO mask semantics (bit12 is even flagged "not handled
- rtl/gpu.vhd:1563 gputype1: E6 also updates the reflected status bits (MAME keeps gpustatus bits 11/12 in sync from both E1-tpage and E6)
- rtl/gpu.vhd:1585 ★ 2026-07-05 READY FIX (gputype1): MAME keeps GPUSTAT bit28 permanently 1 (init 0x14802000, never cleared) — Tekken's PIO texture-upload loop polls bit28 between strips and was written against that optimistic semantic.
- rtl/gpu.vhd:2781 Cube attract drives global drawMode[3:0] to 0xA (TexPage X=640) or 0xB (X=704) per MAME ground truth.
- rtl/gpu.vhd:2797 B125/B126 (Y=482 exact) showed write_R=read_R=0, suggesting cube CLUT might use different Y. Y∈[460,500] covers Y=462 (text font) + Y=480-487 (cube CLUT band per MAME).
- rtl/gpu_cpu2vram.vhd:16 System 11 CXD8538Q: MAME image-load uses RAW W/H (no 0->1024/512 expand)
- rtl/gpu_cpu2vram.vhd:77 Three stickys distinguish where it goes: A any_ever — any such upload ever (sanity) B y482_ever — and copyDstY=482 (MAME ground truth) C y488_ever — and copyDstY=488 (FPGA's existing in_cube guess)
- rtl/gpu_cpu2vram.vhd:267 This tells us what data accompanies the suspect upload: if it's MAME's cube CLUT (entry0=0x0000, entry1=0x7FFF), only the position is wrong.
- rtl/gpu_cpu2vram.vhd:344 0->1024/512 size expand is RETAIL-PSX behavior; MAME's CXD8538Q (System 11) uses RAW W/H (a 0-width/height IMGLOAD writes a 1px sliver, not a 1024/512 runaway that would consume the following GP0 command stream as texels).
- rtl/gpu_cpu2vram.vhd:481 GREEN = h49_fifo_data(24:16) — entry 1 (upper halfword) bits 8:0 (includes R[4:0] in 4:0) BLUE = anchor sticky — fired at first WRITING+copySizeX=16+copySizeY=1+copyDstY∈[472..476] MAME-expected values (cube CLUT first FIFO word = 0x7FFF00
- rtl/gpu_pixelpipeline.vhd:118 Expected entries 0..3 (MAME-verified): 0x0000, 0x7FFF, 0x023F, 0x3FFF.
- rtl/gpu_pixelpipeline.vhd:223 MAME ground truth says CLUT[3] != 0x0003.
- rtl/gpu_pixelpipeline.vhd:496 2026-07-06 INTERLEAVED-TEXTURE FIX (CXD8538Q/System 11, tpage bit13 = ti; MAME TEXTUREINTERLEAVED4BIT/8BIT): texels are stored tile-swizzled; remap (u,v) into the halfword address.
- rtl/gpu_poly.vhd:545 MAME stream for DoA++ shows 267 of 2270 textured polys use extended Y CLUTs (Y >= 512) via bit 15 of polygon CLUT word.
- rtl/gpu_rect.vhd:243 MAME stream for DoA++ shows 267 textured polys use bit 15 of CLUT word to address Y>=512 in extended VRAM.
- rtl/m37702.vhd:85 HOLD_LINE semantics for the EXTERNAL INT0/INT1/INT2 pins: MAME asserts these via set_input_line(HOLD_LINE) from 60 Hz timers and the line stays asserted until the CPU ACKNOWLEDGES (takes) the IRQ.
- rtl/m37702.vhd:157 Dividend B:A is left-aligned in div_num and shifted into the partial remainder; div_quot accumulates the FULL 2w-bit quotient (needed for MAME's overflow test).
- rtl/m37702.vhd:333 Timer A2 (MAME m37710_irq_vectors)
- rtl/m37702.vhd:397 Full MAME 89-page dispatch (m37710op.h OP(201..21f)): dxi,s,d,dli,imm,a,al,diy,di,siy,dx,dliy,ay,ax,alx.
- rtl/m37702.vhd:415 DIV (unsigned): B:A / SRC -> quotient A, remainder B. MAME 89-page dispatch (m37710op.h OP(22x/23x)): dxi,s,d,dli,imm,a,al, diy,di,siy,dx,dliy,ay,ax,alx.
- rtl/m37702.vhd:419 NOTE: MAME's 89 page has NO signed DIVS — MPYS/DIVS are 7750-block opcodes (28x-2bx) that MAME leaves unimplemented; unsigned only.
- rtl/m37702.vhd:512 (MAME OP_PHP/OP_PLP push/pull two bytes unconditionally.) A 1-byte PLP left the C76's TB1-ISR stack off by one (LDA #imm16/PHA/PLP idiom) -> RTI derailed -> the mailbox was never serviced.
- rtl/m37702.vhd:904 M37710 JMP/JSR (abs,X): pointer table lives at PG:(abs+X) — MAME read_16_AXI(REG_PG | u16(abs + REG_X)).
- rtl/m37702.vhd:960 MAME m37710 OP_RLA rotates REG_A only and does NOT touch any flags (N/Z/C unchanged) — so NO set_nz here (corrupting flags caused a mis-branch -> derail to the 0xC000 BIOS string).
- rtl/m37702.vhd:1053 (89-page) unsigned divide, per MAME OP_DIV (m37710op.h): m=0: (B<<16|A) / SRC16 ; m=1: ((B&FF)<<8|(A&FF)) / SRC8 quotient -> A (truncated to w), remainder -> B; V=C=1 on quotient overflow (N then unchanged), Z from truncated quot.
- rtl/m37702.vhd:1059 zero divide: MAME m37710i_interrupt_software(0xfffc) pushes PG, PC (past the operand), IPL, PS, sets I, PG=0, PC=[FFFC].
- rtl/m37702.vhd:1061 (Shared entry path also clears D and re-loads IPL; MAME's software trap leaves both alone, so pass the current IPL.)
- rtl/m37702.vhd:1102 synthesis translate_on writeback per MAME OP_DIV; remainder is exact (< divisor), quotient is the full 2w-bit value truncated to w for A.
- rtl/memorymux.vhd:144 rom8_64 upper-16MB latch (MAME rom8_64_upper_w @0x1F080000/2); consumed by zn1_io at bank-register write time.
- rtl/memorymux.vhd:917 rom8_64 upper-bank latch (MAME rom8_64_upper_w): halfword write to 0x1F080000 selects the lower 16MB (offset 0), 0x1F080002 the upper (offset 1 -> bankoffset 16).
- rtl/memorymux.vhd:919 Stores arrive word-aligned with the halfword lane in the write mask; on a full-word store offset 1 wins (MAME invokes offset 0 then 1, last call wins).
- rtl/memorymux.vhd:932 MAME namcos11.cpp ptblank2ua_map: 0x1F780000-0F read = lightgun_r (gun X/Y counters) 0x1F788000-03 write = lightgun_w (LEDs + recoil solenoids) MUST be decoded BEFORE the S11 banked-ROM branch below, because 0x1F780000 lies INSIDE that reg
- rtl/memorymux.vhd:1034 VRAM destination (per MAME): X=256, Y=482, 4-bit CLUT 16×1.
- rtl/memorymux.vhd:1035 MAME 20s trace shows NO direct CPU read at 0x1F7B61CC, so the load likely happens via I/D-cache fill of a 32-byte line, or via a bulk DMA copy.
- rtl/memorymux.vhd:1082 Per MAME's analysis, 109 bank switches happen during cube attract via game code at 0x800504F0.
- rtl/memorymux.vhd:1095 build #79 fix: Raizing bank is data & 3 (bits[1:0]) per MAME raizing_zn_state::znsecsel_w.
- rtl/memorymux.vhd:1133 MAME: unknown_r() returns 0x0000FFFF for all ZN platforms
- rtl/psx_top.vhd:761 DERAIL-BRACKET milestones (2026-06-14): "reached" latches in MAME execution order
- rtl/psx_top.vhd:813 System 11 boot diagnostic: MAME's Tekken reaches GAME code at physical 0x18654 (= 0x80018654), which is BELOW ram_exec_seen's 0x40000 threshold — so ram_exec would stay dim even when the game runs.
- rtl/psx_top.vhd:826 build #150: sticky latches for CPU PC at the cube CLUT PIO upload site (MAME PC 0x8003CB20).
- rtl/psx_top.vhd:1167 PC ever in [0x1FC09000,0x1FC0C000) (MAME's GPU-init region @0xBFC097F8)
- rtl/psx_top.vhd:1888 Compare vs MAME's slot value.
- rtl/psx_top.vhd:2062 MAME namcos11.cpp:
- rtl/psx_top.vhd:2549 CAT702 is a ZN-1 feature: MAME's namcos11 driver contains zero CAT702 references, and every System 11 title uses a KEYCUS C-chip (C406/C409/...) via zn1_io instead.
- rtl/psx_top.vhd:2583 X=768 is the ONLY CLUT at X>=512 in lpadv's entire stream (MAME log: CLUT X in {0,256,768}), so a sticky latch firing == the cubes.
- rtl/psx_top.vhd:2605 Show the FIRST (=fatal, MAME takes zero) exception: value top nibble = ExcCode (4/5=AdEL/AdES, 6/7=bus err, A=RI, B=CpU, C=Ov, 0=IRQ), remaining 7 digits = faulting EPC[27:0].
- rtl/psx_top.vhd:2641 BOOT-DIVERGENCE LOCATOR (2026-06-13): how far does boot get vs MAME (GPU-init @0xBFC097F8 instr~1357)?
- rtl/psx_top.vhd:2728 Read over JTAG/ISSP and compare to MAME's 0xA420FB00 @0x10170: a COP-range top6 (0x10-0x13) or any != 0xA420FB00 = the SDRAM/icache delivered a CORRUPT instruction word (pinpoints the read-corruption bit pattern).
- rtl/psx_top.vhd:2740 Tekken 1 (the keycus-less game) uses it, and so do the older Tekken 2 revisions (MAME's tekken2o sets: TES1/TES2/TES3 VER.A/B/C) — those carry KEYCUS C406 so the keycus byte alone cannot identify the board; their MRAs set platform-byte bit5
- rtl/psx_top.vhd:2853 RED = h40_cube_clut_loaded_ever — CLUTwrenA + CLUTaddrA=0 + vram_DOUT[31:16]=0x7FFF + vram_DOUT[47:32]=0x023F (cube CLUT word 0 loaded into dpram with the EXACT MAME-verified values) GREEN = h40_clut_read_7fff_ever — any CLUTDataB lane
- rtl/psx_top.vhd:2898 Display origin is at Y=240 per MAME GP1 0x05 trace, so screen shows the empty front buffer.
- rtl/psx_top.vhd:2910 MAME proved: the MIPS boots iff the 0x1FA0BD32 poll reads 0 (timeout); reading bit 0x80 takes the early-exit path that hangs.
- rtl/psx_top.vhd:2912 (MAME takes 0.) RED = any exception taken (EPC latched != 0) GREEN = first ExcCode == 0 => INTERRUPT was first (spurious early IRQ -> 0xBFC00180 reset) BLUE = first ExcCode == 5 => AdES was first (no earlier exc; wild jump into KUSEG h
- rtl/psx_top.vhd:2923 Disasm it in MAME (same bytes) to see `jr rX` and which register held the garbage 0x1FC20298 -> trace where rX was set.
- rtl/psx_top.vhd:3179 boot-progress milestones (vs MAME ground truth): how far does the boot get?
- rtl/psx_top.vhd:3193 If the boot is stuck in the kernel memset (0xBFC01A4C, called from 0xBFC03FD4) this is the memset dest — reveals bounded(~0xa000e0xx, MAME) vs runaway(huge) vs wrong-region.
- rtl/psx_top.vhd:3248 MAME: GPU init -> strcmp (0xBFC03298, cmp 0x1FC20004 vs 0xBFC0D66C) -> 0xBFC0903C bnez: PASS=>0xBFC09044 jal 0xBFC004B8 launch -> 0x1FC202B4 decompressor; FAIL=>0xBFC09054 (skip launch).
- rtl/psx_top.vhd:3295 MAME's correct value = 0x1FC20038; HW lw got 0x1FC20298.
- rtl/psx_top.vhd:3344 s11_reached_1fc2: CPU ever fetched an instruction from the late-boot ROM region 0x1FC20000..0x1FC30000 (where MAME's Tekken does GPU init + the C76 handshake).
- rtl/psx_top.vhd:3353 s11_reached_game: CPU ever fetched early GAME code in physical [0x10000,0x40000) (MAME reaches 0x80018654 after the handshake timeout — below ram_exec's 0x40000).
- rtl/psx_top.vhd:3501 Banking + MRA ROM layout were proven correct vs MAME (byte-for-byte), so the upstream ROM->SDRAM->banked-read path is clean.
- rtl/psx_top.vhd:3503 The classification now happens in gpu.vhd gated on the cube CLUT's UNIQUE VRAM destination (X<256, Y=488 = MAME's exact cube-CLUT upload), removing the value/address ambiguity that contaminated builds #40-43.
- rtl/sio0_stub.vhd:5 Namco's runtime library runs stock PSX pad init at boot on several titles (dunkmnia, souledge, primglex, pocketrc): it writes JOY_CTRL and polls JOY_STAT bit0 (TX Ready 1) before anything else - with the bus tied to zero that poll never ter
- rtl/zn1_io.vhd:6 Those algorithms were reverse-engineered and documented by the MAME project (smf et al.) in src/mame/namco/ns11prot.cpp (BSD-3-Clause); the logic below is an independent VHDL re-implementation of that documented behaviour.
- rtl/zn1_io.vhd:9 Credit to MAME and its contributors for the reverse-engineering.
- rtl/zn1_io.vhd:94 16 : 0) (32MB max) Written via 0x1FA10020+2*w. The XOR is applied AT WRITE TIME (MAME set_entry semantics): a later upper-latch change does not remap already-set windows.
- rtl/zn1_io.vhd:111 Absolute gun counters, already clamped upstream to MAME's legal spans (X 0x0D8-0x387, Y 0x02C-0x11B).
- rtl/zn1_io.vhd:156 build #117b: store the full znsecsel byte for verifiable readback (MAME returns whatever was written).
- rtl/zn1_io.vhd:230 ==== KEYCUS helpers ==== Several System 11 KEYCUS chips answer with the DECIMAL digits of a 16-bit value (MAME ns11prot.cpp: "( value / 100 ) % 10" etc).
- rtl/zn1_io.vhd:259 C409 (Soul Edge) colour interpolation, one 5-bit channel (MAME keycus_c409_device::read): chan = ((v2 * a2) + (v3 * a3)) / 0x1f a2 = (p1-1) & 0x1f and a3 = (0x20-p1) & 0x1f always sum to exactly 31, so the numerator is bounded by 31*31 = 96
- rtl/zn1_io.vhd:286 Real AT28C16 returns inverted bit 7 during 200μs write cycle (per MAME at28c16_device::read).
- rtl/zn1_io.vhd:311 FIX 2026-06-25: Namco System 11 maps the AT28C16 at 0x1FA30000-0x1FA30FFF (MAME namcos11.cpp map(0x1fa30000,0x1fa30fff) at28c16), NOT the Taito ZN BIOS address 0x1FAF0000.
- rtl/zn1_io.vhd:352 Per MAME: read returns m_last_write XOR 0x80 during write-in-progress.
- rtl/zn1_io.vhd:549 MAME ns11_keycus_device::device_reset
- rtl/zn1_io.vhd:579 That value is normally the chip's own part number, but the game can hand the chip a value of its own via a magic parameter, and the chip then converts THAT (MAME ns11prot.cpp).
- rtl/zn1_io.vhd:647 ==== System 11 GUN I/F @ synthetic 0x1F0000-0x1F000F (real 0x1F780000-0F) ==== MAME namcos11.cpp lightgun_r(): 16-bit offset n = byte 2n
- rtl/zn1_io.vhd:669 Deliberately ignored: no physical solenoid/LED on a MiSTer, and MAME only drives output lamps with them.
- rtl/zn1_io.vhd:686 MAME 16-bit offset n = byte 2n: word = addr(4:2) = n/2, lane = n&1 (even offset -> low lane [15:0], odd offset -> high lane [31:16]).
- rtl/zn1_io.vhd:688 MAME logs and returns machine().rand() on an unexpected read; games never take that path, so we return 0 (no randomness emulated).
- rtl/zn1_io.vhd:803 MAME 16-bit offset n = byte 2n: offset = addr(4:2)*2 (+1 for the high lane).
- rtl/zn1_io.vhd:890 page: rom8 = d[7:6] & d[1:0] (MAME rom8_w, 4 bits); rom8_64 (C443) = (d[7:6] & d[2:0]) XOR upper-latch<<4 (MAME rom8_64_w, 5 bits; the XOR happens here at write time, per set_entry semantics).
- rtl/zn1_io.vhd:948 MAME: noprw/nopr returns 0 for unrecognised ZN I/O addresses
- rtl/zn_sio.vhd:3 CAT702 algorithm attribution: The CAT702 serial "magic latch" transform emulated here (0xFC state init, fixed TF2 initial sbox {ff,fe,fc,f8,f0,e0,c0,7f}, key-derived TF1 sboxes with the Shift recurrence, and the active-low per-chip select r
- rtl/zn_sio.vhd:8 This is an independent VHDL re-implementation of that documented algorithm; credit to the MAME project and smf for the reverse-engineering and reference implementation.
- rtl/zn_sio.vhd:19 sec_select[2:0] = {data_write[7], data_write[3], data_write[2]} from BIOS write to 0x1FA10300: sec_select="000" (0x00: bit3=0,bit2=0) → BOTH chips active (wired-AND TXD) ← Tecmo BIOS sec_select="101" (0x84: bit7=1,bit3=0,bit2=1) → KN02 onl
- rtl/zn_sio.vhd:44 ZN security select (from zn1_io register 0x1FA10300) [2]=data[7], [1]=data[3], [0]=data[2]; ZNMCU when all three bits set ("111"=0x8C per MAME logic)
- rtl/zn_sio.vhd:60 Expected 0xFF per MAME exchange 0.
- rtl/zn_sio.vhd:61 Expected 0xAF per MAME psyforce exchange 8.
- rtl/zn_sio.vhd:67 MAME ground truth for BR2 Ex1 with et01 motherboard key: byte0 = 0xFF, byte3 = 0x0A.
- rtl/zn_sio.vhd:217 B123: capture KN02 byte at index 50 (= MAME's last).
- rtl/zn_sio.vhd:284 Per-chip CAT702 reset: mirrors MAME cat702_device::write_select(0).
- rtl/zn_sio.vhd:325 ZNMCU mode: sec_select="111" (0x8C, all bits set) activates ZNMCU per MAME.
- rtl/zn_sio.vhd:326 MAME: znmcu.select((data & 0x8C) == 0x8C) → active when bits 7,3,2 all set.
- rtl/zn_sio.vhd:382 51st event (first spurious after MAME's 50)
- README.md:44 **Accurate cabinet inputs**: DIP switches carry MAME's exact names — "DIP1 (Test)" enters each game's service menu, "DIP2 (Freeze)" freezes — and the cabinet Se
- README.md:111 **The MAME project** — the hardware documentation and reference behavior used to develop System 11 board support (per-manufacturer boot ROM, CAT702 security, RO
- README.md:126 The FPGA logic is an original re-implementation of the System 11 board's behavior, developed from observation and from publicly available documentation and refe
- README.md:128 This core re-implements that logic for interoperability and preservation, in the same manner as MAME and comparable FPGA cores.
Says it matches, follows or was checked against MAME — 13
- rtl/c76.vhd:398 golden timing (MAME m37710): 8-channel sweep = 8 x 228 clocks = 1824 (~108us @16.9MHz); one-shot IRQ at sweep end (subagent-verified vs MAME :c76 trace)
- rtl/c76_sound.vhd:46 MIPS-side mailbox access (16-bit word; matches MAME c76_shared uint16).
- rtl/cpu.vhd:1175 top byte 0x00 => NO mismatch (boot output matches MAME = the fix WORKED for this region).
- rtl/gpu.vhd:1629 reset to 1023, matching real hardware (MAME: n_drawarea_x2=1023)
- rtl/gpu.vhd:1630 reset to 1023, matching real hardware (MAME: n_drawarea_y2=1023)
- rtl/gpu_cpu2vram.vhd:61 Cube CLUT is uploaded at copyDstX=256, copyDstY=482 (verified via MAME GP0 stream).
- rtl/m37702.vhd:307 IPL-masked priority interrupt acceptance (matches MAME m37710i_update_irqs): take the highest-priority PENDING source whose IC priority STRICTLY exceeds the current IPL (I-flag clear), and raise IPL to it on entry (RTI restores IPL).
- rtl/memorymux.vhd:1105 ZN-1 has no CD-ROM: return 0xFF for reads (matches MAME open-bus), ignore writes
- rtl/psx_top.vhd:1628 Verified with MAME (60s run, positive controls proving the tap works: GPU writes = 2111, ROM-bank writes = 9): Tekken performs ZERO reads and ZERO writes to SIO0.
- rtl/psx_top.vhd:2551 Verified with MAME (60s, positive controls on GPU + ROM-bank writes): Tekken performs 0 reads and 0 writes to SIO0.
- rtl/zn1_io.vhd:27 Input bit encoding for P1/P2 (active-low, matches ZN MAME driver):
- rtl/zn1_io.vhd:275 Board config register value (matches MAME zn_state::boardconfig_r): [7:5] = "011" → rev=1 (always for ZN-1) [3] = vmem (1=2MB, 0=1MB) — set by m_gpu->vram_size() in MAME [2] = smem (1=2MB SPU SGRAM) — MAME never sets this; left 0 [1:0]
- rtl/zn_sio.vhd:214 build #119/120/121/122/123 diagnostics B119-121: verified KN02 bytes 1-4 = AF, 95, 94, 14 match MAME exchange 8 exactly B122: FPGA count=58 vs MAME=50 → 8 EXTRA KN02 byte events on FPGA.
Says it was translated, ported or taken from MAME — 2
- rtl/zn1_io.vhd:83 Algorithms ported from MAME src/mame/namco/ns11prot.cpp: 0 = none (Tekken 1) 5 = C430 (Xevious 3D/G) 1 = C406 (Tekken 2) 6 = C431 (Dancing Eyes) 2 = C409 (Soul Edge) 7 = C432 (Pocket Racer) 3 = C410 (Dunk Mania)
- rtl/zn1_io.vhd:943 build #117b: return full byte (MAME returns m_znsecsel verbatim)