← All cores
Tenkomori (kyledlester)
Says it was checked on “real hardware” — 1
- 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
Cites MAME source — 110
- Tenkomori.sv:692 Main RAM zero fill after the ROM download (MAME's RAM is zero initialised and the game reads never-written areas) and the coh700b boot signature copy on every reset.
- Tenkomori.sv:924 System 12 runs its CXD8661R at 50 MHz; this core clocks the PlayStation CPU at 33.87 MHz with PlayStation RAM timing, ~1.7x slower than MAME in Tenkomori's busiest minigame (battleship, measured with a MAME state transplant in sim/system),
- Tenkomori.sv:927 0 System 12 (default): half-rate data cache + memory + compute turbo 1 Maximum: full-rate data cache + memory + compute turbo (~1.1x MAME's CPU time) 2 PlayStation: original PlayStation timing (~1.7x; battleship minigame at 30 fps) The full
- Tenkomori.sv:933 With hits on alternate cycles the loop stays longer than a frame while the battleship minigame still renders every vblank (85% CPU at MAME's heaviest frame, sim).
- Tenkomori.sv:979 JAMMA inputs as MAME namcos12_state::in_r presents them (active low).
- 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/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:106 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:432 System 12 ROM DMA: CHCR 0x01000000 starts at once (MAME psxdma: no trigger bit needed)
- rtl/dma.vhd:469 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:722 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:802 Per MAME: 109 bank switches during cube attract (game code at 0x800504F0 loads assets from banks).
- rtl/gpu.vhd:819 Tests whether DMA can carry MAME's expected R=31 for cube CLUT entries.
- rtl/gpu.vhd:992 ★ 2026-07-05 READY FIX part 2 (gputype1): MAME NEVER clears GPUSTAT bit26 (init 0x14802000, no writer touches it).
- rtl/gpu.vhd:1119 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:1191 CXD8538Q (System 11) = MAME gputype 1; retail = 2.
- rtl/gpu.vhd:1318 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:1460 2026-07-06 INTERLEAVED-TEXTURE FIX: tpage bit13 = ti (CXD8538Q swizzled texture mode; MAME n_ti).
- rtl/gpu.vhd:1467 type 2 (MAME decode_tpage): a polygon's tpage also sets the sprite flips ix/iy
- rtl/gpu.vhd:1499 GPU-type-dependent tpage field layout (MAME decode_tpage, psx.cpp:824).
- rtl/gpu.vhd:1515 ★ 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:1568 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:1590 ★ 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:2788 Cube attract drives global drawMode[3:0] to 0xA (TexPage X=640) or 0xB (X=704) per MAME ground truth.
- rtl/gpu.vhd:2804 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:20 texture flip (CXD8561Q/CXD8654Q "type 2" GPU: E1 bits 12/13 = ix/iy, MAME SPRITESETUP)
- rtl/gpu_rect.vhd:250 MAME stream for DoA++ shows 267 textured polys use bit 15 of CLUT word to address Y>=512 in extended VRAM.
- rtl/h8/h83002_periph.vhd:4 After MAME src/devices/cpu/h8/h83002.cpp (register map), h8_intc.cpp (h8h_intc_device), h8_timer16.cpp, h8_adc.cpp (H8_ADC_3337 variant), h8_sci.cpp, h8_port.cpp.
- rtl/h8/h83002_periph.vhd:6 Only what Namco System 12 needs is functional: * 512 B on-chip RAM * interrupt controller: ISCR/IER/ISR/IPRA/IPRB, IRQ0-5 pins (IRQ1 used), internal sources ITU0-4 (IMIA/IMIB/OVI), SCI0/SCI1 (ERI/RXI/TXI/TEI), ADI * ITU channels 0-4, TSTR *
- rtl/h8/h83002_periph.vhd:133 MAME h8_port_device::port_r
- rtl/h8/h83002_periph.vhd:285 DDRs read as FF (MAME ff_r)
- rtl/h8/h83002_periph.vhd:463 accepted interrupt: clear the edge flag of an external IRQ (MAME interrupt_taken)
- rtl/h8/h8300h_cpu.vhd:2 Instruction semantics and flags follow MAME (src/devices/cpu/h8, h8.lst / h8.cpp, h83002.cpp).
- rtl/h8/h8300h_cpu.vhd:18 MAME pushes the address of the TRAPA instruction itself (so RTE would re-execute it); real hardware pushes the address of the next instruction.
- rtl/h8/h8300h_cpu.vhd:20 false = hardware behaviour, true = MAME-compatible.
- rtl/h8/h8300h_cpu.vhd:127 interrupt acceptance (h83002.cpp update_irq_filter / h8_intc filter) UE=1 : only I masks.
- rtl/h8/h8300h_cpu.vhd:339 exception entry: push CCR:PC, then fetch vector (same write order as MAME: PC(15:0) at SP-2 first, then CCR:PC(23:16) at SP-4)
- rtl/h8/h8300h_pkg.vhd:2 flags) follow MAME src/devices/cpu/h8 (h8.cpp / h8.lst).
- rtl/h8/h8_itu_ch.vhd:4 Behaviour after MAME h8_timer16.cpp (h8h_timer16_channel_device): TCR : CCLR[6:5] (00 free, 01 clear on GRA, 10 clear on GRB), CKEG[4:3], TPSC[2:0] (0..3 = phi/1,2,4,8; external clocks not supported -> stopped) TIER : bit0 IMIEA, bit1 IMIE
- rtl/h8/h8_itu_ch.vhd:10 MAME compares against GR+1 (flag when the counter reaches GR+1); the counter clears to 0 on the following count after a clearing match, so a channel with CCLR=01 counts 0..GRA (period GRA+1).
- rtl/h8/h8_itu_ch.vhd:55 MAME tior_r returns 0
- rtl/h8/h8_sci.vhd:4 Modelled on MAME src/devices/cpu/h8/h8_sci.cpp: * register semantics of SMR/BRR/SCR/TDR/SSR/RDR, including the SSR "flag must have been read as 1 before a 0 write clears it" rule; * clocked synchronous mode with internal clock output (used
- rtl/h8/h8_sci.vhd:236 continuous reception (MAME sync_rx_start after rx_done)
- 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:988 VRAM destination (per MAME): X=256, Y=482, 4-bit CLUT 16×1.
- rtl/memorymux.vhd:989 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:1036 Per MAME's analysis, 109 bank switches happen during cube attract via game code at 0x800504F0.
- rtl/memorymux.vhd:1049 build #79 fix: Raizing bank is data & 3 (bits[1:0]) per MAME raizing_zn_state::znsecsel_w.
- rtl/memorymux.vhd:1087 MAME: unknown_r() returns 0x0000FFFF for all ZN platforms
- rtl/psx_top.vhd:777 DERAIL-BRACKET milestones (2026-06-14): "reached" latches in MAME execution order
- rtl/psx_top.vhd:829 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:842 build #150: sticky latches for CPU PC at the cube CLUT PIO upload site (MAME PC 0x8003CB20).
- rtl/psx_top.vhd:1183 PC ever in [0x1FC09000,0x1FC0C000) (MAME's GPU-init region @0xBFC097F8)
- rtl/psx_top.vhd:1916 Compare vs MAME's slot value.
- rtl/psx_top.vhd:2090 MAME namcos11.cpp:
- rtl/psx_top.vhd:2536 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:2570 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:2592 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:2628 BOOT-DIVERGENCE LOCATOR (2026-06-13): how far does boot get vs MAME (GPU-init @0xBFC097F8 instr~1357)?
- rtl/psx_top.vhd:2715 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:2727 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:2841 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:2886 Display origin is at Y=240 per MAME GP1 0x05 trace, so screen shows the empty front buffer.
- rtl/psx_top.vhd:2898 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:2900 (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:2911 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:3167 boot-progress milestones (vs MAME ground truth): how far does the boot get?
- rtl/psx_top.vhd:3181 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:3236 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:3283 MAME's correct value = 0x1FC20038; HW lw got 0x1FC20298.
- rtl/psx_top.vhd:3332 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:3341 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:3489 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:3491 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/s12_ch3.vhd:7 main-RAM zero fill after a download (MAME's RAM is zero initialised) 3.
- rtl/s12_ch3.vhd:8 coh700b boot signature: copy program ROM +0x20280 (12 bytes) to main RAM 0x10000 (MAME namcos12_state::driver_reset), requested on every reset 4.
- rtl/s12_io.vhd:4 MAME namcos12.cpp namcos12_state::maincpu_map (see docs/HARDWARE.md 5): 0x1F000000-03 W bankoffset_w : 2 MB page shown at 0x1FA00000 0x1F080000-83FFF RW shared RAM (first 16 KB of the H8's 64 KB, 32-bit port) 0x1F140000-FFF RW AT28C16 EEP
- rtl/s12_io.vhd:107 MAME: m_dmaoffset = (offset * 2) | (data << 16); a 32-bit store calls the 16-bit handler for both halves, the upper one last.
- rtl/s12_io.vhd:119 ROM-DMA source: program ROM when dmaoffset bit 31 is set or exp_base == 0x1F300000, otherwise the banked ROM (MAME namcos12_rom_read).
- rtl/s12_io.vhd:140 During a write cycle the device answers data polls with bit 7 inverted (MAME).
- rtl/s12_io.vhd:159 200 us write cycle (MAME at28c16)
- rtl/s12_shram.vhd:6 MIPS word j holds H8 words 2j (bits 15:0) and 2j+1 (bits 31:16); MIPS byte 4j+k is lane k. (MAME: m_sharedram is a u16 array; the MIPS reads it with 16-bit handlers, so MIPS halfword n == H8 word n.) Built from two 16K x 16 true-dual-port b
- rtl/s12_shram.vhd:84 stored as MAME's u16 (bits 15:8 = H8 even byte)
- rtl/s12_sub.vhd:4 MAME namcos12.cpp sub_program_map / namcos12_base (docs/HARDWARE.md 6, 7): 0x000000-0x07FFFF program ROM (SDRAM via a 8 KB direct-mapped cache) 0x080000-0x08FFFF shared RAM (s12_shram port A) 0x280000-0x287FFF C352 0x300000-0x300003
- rtl/s12_sub.vhd:15 clk = clk_1x (33.8688 MHz); H8 peripherals run at clk/2 = 16.9344 MHz (MAME clock).
- rtl/s12_sub.vhd:297 The MRA loads tkm1vera.11s unswapped (MAME ROM_LOAD16_WORD_SWAP), so each 16-bit half of the little-endian SDRAM word already is a big-endian H8 word.
- rtl/s12_sub.vhd:465 Epson RTC4543 (MAME rtc4543.cpp): CE = PB5 & PA0, CLK = !SCK1, data -> RXD1.
- 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
- README.md:33 | Game | MAME set | Year | Genre | Board | Status |
- README.md:41 | Game | MAME set | Year | Parent game | Status |
- README.md:99 [docs/HARDWARE.md](docs/HARDWARE.md) is the full specification, written from MAME before the core was built.
Says it matches, follows or was checked against MAME — 7
- rtl/cpu.vhd:1175 top byte 0x00 => NO mismatch (boot output matches MAME = the fix WORKED for this region).
- rtl/gpu.vhd:1634 reset to 1023, matching real hardware (MAME: n_drawarea_x2=1023)
- rtl/gpu.vhd:1635 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/memorymux.vhd:1059 ZN-1 has no CD-ROM: return 0xFF for reads (matches MAME open-bus), ignore writes
- rtl/psx_top.vhd:1645 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:2538 Verified with MAME (60s, positive controls on GPU + ROM-bank writes): Tekken performs 0 reads and 0 writes to SIO0.
Shares text with the MAME driver without saying so — 1