← All cores
Arcade-DecoMLC (ppriest)
Notes where it differs from MAME — 1
- README.md:168 **Sprite X zoom differs from MAME by design**: one source accumulator a sprite instead of MAME's per-tile restart.
Cites MAME source — 60
- DecoMLC.sv:1 SPDX-License-Identifier: GPL-3.0-or-later MiSTer framework glue for the Data East MLC (MAME deco_mlc.cpp): HPS, the PLL, inputs, the .mra's mod byte and EEPROM image, the fast ROM load, and the video output path.
- DecoMLC.sv:6 Inputs follow deco_mlc.cpp's INPUT_PORTS (lines 373-407): one 32-bit word at 0x400000, active low.
- DecoMLC.sv:172 deco_mlc.cpp INPUT_PORTS_START( mlc ), active low (hence the `~`): P1 up, down, left, right, buttons 1-3, start in bits 0-7; P2 in 8-15; coin 1, 2 at 16, 17; service 1 at 18; test at 19; coin 3, 4 at 20, 21; service 2 at 22; the EEPROM's DO
- DecoMLC.sv:176 MAME's default keys alongside the pads (rtl/mame_keys.sv).
- rtl/cpu/amber/a23_coprocessor.v:170 DecoMLC local change (PROVENANCE.md): the DE156's coprocessor 0, as MAME's de156_cpu_device (arm7.cpp) has it.
- rtl/cpu/amber/a23_coprocessor.v:174 MAME's results are instant; here an operation takes up to about 80 clocks of i_clk, and o_busy holds the CPU through i_system_rdy until it is done.
- rtl/cpu/amber/a23_coprocessor.v:262 binary to BCD by double dabble; the low eight digits are MAME's decimal_to_bcd
- rtl/cpu/amber/a23_decode.v:552 DecoMLC local change (PROVENANCE.md): the DE156's coprocessor 0 as MAME has it (arm7.cpp de156_cpu_device): register transfers and CDP to coprocessor 0 are executed, and everything else involving a coprocessor is undefined, as on MAME's ARM
- rtl/cpu/amber/a23_register_bank.v:84 User Mode Registers DecoMLC local change (PROVENANCE.md): registers start and reset at 0, as MAME's ARM starts them (arm7.cpp, std::fill of m_r); Amber used 0xdeadbeef and stadhr96 stores r2/r3 unwritten.
- rtl/cpu/de156/jtosman_deco156.v:45 ---- BITSWAP32: result MSB-first = v[arg0..arg31] (MAME BITSWAP32 order) ----
- rtl/cpu/mlc_de156.sv:6 The CPU runs on clk_cpu, 42 MHz from the same PLL as the glue's 84 MHz (the Amber's paths do not close at 84 MHz), with i_system_rdy as its clock enable: 1 in 3, 14 MHz, which is MAME's 7 MHz with set_clock_scale(2.0) (deco_mlc.cpp init_mlc
- rtl/cpu/mlc_de156.sv:18 Byte lanes are bit positions on both CPUs (sel[k] = bits 8k+7:8k), so the glue's decode and MAME's umask32 values hold unchanged; only byte addressing within a word differs (the ARM is little-endian).
- rtl/cpu/mlc_de156.sv:25 IRQ, a level (MAME's ARM7_IRQ_LINE, HOLD_LINE)
- rtl/mame_keys.sv:1 MAME's default keys (src/emu/inpttype.ipp) in hps_io's joystick layout, to OR into joystick_0/1: right, left, down, up at bits 0-3, buttons 1-6 at 4-9, Start, Coin, Pause, Service at the J1 line's own positions (parameters).
- rtl/mame_keys.sv:7 P1 arrows, LCtrl LAlt Space LShift Z X, 1 start, 5 coin P2 R F D G, A S Q W E (MAME gives P2 no sixth key), 2 start, 6 coin F2 service (test) switch, 9 and 0 service coins 1 and 2, P pause
- rtl/mame_keys.sv:24 MAME's Service 1, 2: wire to the board's SERVICE1/2 bits, if any
- rtl/memory/mlc_dl_xform.sv:1 SPDX-License-Identifier: GPL-3.0-or-later The download address transform: the .mra image is MAME's regions in order (maincpu, gfx1, gfx2, ymz at the memory plan's bases); gfx1 is rewritten into 16-byte units (scripts/ mlc_layout.py gfx1_des
- rtl/memory/mlc_dl_xform.sv:11 4bpp (avengrgs): halves of 12 MB; region byte a, h = a >= 12 MB, o = a - 12 MB * h: {o[23:7], o[5:2], o[6], h, o[1:0]} 5bpp, 6bpp: thirds of 4 MB, or 8 MB with frac8 (stadhr96); third T, offset o: T = 0, 1 are the base area's halves as abo
- rtl/memory/mlc_sdram_top.sv:9 The image arrives as MAME's regions at scripts/mlc_layout.py's bases, by ioctl bytes or by the DDR3 copy (rom_loader); both pass mlc_dl_xform, which moves gfx1 into its unit layout.
- rtl/mlc_core.sv:1 SPDX-License-Identifier: GPL-3.0-or-later The MLC board without its memory backend: the SH7604 on its own 42 MHz clock behind jtsh7604's req/ack seam, the bus glue decoding deco_mlc.cpp's avengrgs_map (lines 304-325) onto main RAM, the vide
- rtl/mlc_core.sv:69 the first clock of line 0: where MAME starts the CPU
- rtl/mlc_core.sv:257 the DE156 program: the download put raw word AddrScramble(a) at word a (mlc_dl_xform), so the data descramble of word a24[19:2] is all that is left (deco156.cpp; rtl/cpu/de156; scripts/de156_decrypt_check.py); de156_raddr is unused
- rtl/mlc_core.sv:277 DO is pulled up while the chip is not selected (eepromser.cpp 288-291)
- rtl/mlc_core.sv:301 the scanline interrupt: IRQ word 5 is compared with the line counter every frame until it is rewritten (-1 disarms), as MAME re-arms its timer when it fires (deco_mlc.cpp set_raster_irq_timer, df450c1); held until the CPU takes it (its vect
- rtl/mlc_top.sv:82 The game starts as MAME's does: its reset is released at the first clock of line 0 (MAME runs the CPU from line 0 of frame 0), and the frame parity for the auto-flicker sprites (deco_mlc_v.cpp 170) toggles at each vblank from a fixed start.
- rtl/mlc_top.sv:84 The start value is measured: with a start of 1, an effect sprite MAME draws on even attract frames only matched the board on odd frames (2805, 2377; scripts/match_frame.py, debug/hw/).
- rtl/protection/mlc_deco146.sv:1 SPDX-License-Identifier: GPL-3.0-or-later The DECO 146 protection chip, as MAME's deco_146_base_device (deco146.cpp) has it, wired as deco_mlc.cpp wires it for Stadium Hero '96: its 2 KB window at 0x70f000, one 16-bit word in bits 31:16 of
- rtl/protection/mlc_deco146.sv:73 MAME's 0xffff, outside the window
- rtl/protection/mlc_deco146.sv:117 MAME's reorder(), then the xor and the nand
- rtl/video/mlc_sprite_draw.sv:1 SPDX-License-Identifier: GPL-3.0-or-later Draws the hits of one line into the line buffer: deco_mlc_v.cpp draw_sprites' per-block setup (lines 399-450), its row loop (452-531) and drawgfxzoomline (42-141), as three overlapping stages (docs/
- rtl/video/mlc_sprite_draw.sv:17 One source accumulator and one screen x run across all the tiles of a hit, from source 0 at floor(xbase): MAME instead restarts each tile with its own step (docs/MAME_KLUDGES.md, "Zoom").
- rtl/video/mlc_sprite_draw.sv:196 MAME's span of the tile, [sx_c, ex_c), is within two pixels of the accumulator's (the step rounded up by under 2^-16 a pixel, over at most 256 source columns): a tile two pixels clear of the window is not fetched, walked if left of it, the
- rtl/video/mlc_sprite_engine.sv:14 the line to render, MAME's number
- rtl/video/mlc_sprite_list.sv:1 SPDX-License-Identifier: GPL-3.0-or-later The sprite list: the live RAM the CPU writes, the snapshot copied at vblank start that a frame is drawn from (deco_mlc_v.cpp 535-547), and the per-frame candidate list (docs/phase1_video.md, "Candid
- rtl/video/mlc_sprite_scan.sv:1 SPDX-License-Identifier: GPL-3.0-or-later Per-line scanner: walks the frame's candidates in list order, reads each one's entry and index block, applies the clip window, flicker, raster offsets and the y test of deco_mlc_v.cpp draw_sprites (
- rtl/video/mlc_sprite_scan.sv:18 MAME's number, 8..247
- rtl/video/mlc_video.sv:47 r, g, b hold the pixel at pix_x, pix_y (MAME line)
- rtl/video/mlc_video.sv:52 MAME's line number (the 0x200074 read)
- rtl/video/mlc_video.sv:123 the copy a line is drawn with: the registers as they are at the line's start (MAME draws a line at its start; stadhr96 rewrites the raster words on every other line)
- rtl/video/mlc_video_pkg.sv:13 the gfx_layouts (deco_mlc.cpp 482-528), the .mra mod byte bits 5:4
- rtl/video/mlc_video_pkg.sv:20 MAME's first visible line (mlc 567)
- rtl/video/mlc_video_pkg.sv:23 The list and block fields are deco_mlc_v.cpp 213-335's, after the raster offsets (v 362-397) and the flip XORs (v 353-354); bby is v 432's.
- rtl/video/mlc_video_timing.sv:3 Lines carry MAME's numbers: 8-247 visible (mlc 567), 248 the vblank start where the list is copied (v 545).
- rtl/video/mlc_video_timing.sv:6 line_start marks that clock and names the line the engine renders during the period: the line that is starting, as MAME draws a line at its start with the registers as they are then (VIDEO_UPDATE_SCANLINE).
- rtl/video/mlc_video_timing.sv:17 0..273, MAME's line number
- rtl/video/mlc_vram.sv:1 SPDX-License-Identifier: GPL-3.0-or-later VRAM, 128 KB: index blocks and tile tables (deco_mlc_v.cpp 307-335, 505-507).
- README.md:3 A MiSTer FPGA core for Data East's MLC arcade hardware (MAME's `deco_mlc.cpp`), built with Quartus Prime 17.0.2 Lite for the DE10-nano.
- README.md:42 Including Skull Fang and Accii, and the test modes (which all hang in MAME due to raster IRQ handling)
- README.md:64 | Hitachi SH7604 (SH-2), 21 MHz | main CPU, Avengers | srg320's core as redistributed in jotego's jtcores, with its `jtsh7604` wrapper, unchanged but for two re
- README.md:65 | DE156 (encrypted ARM), MAME's 7 MHz times its clock scale | main CPU, the other sets | the Amber a23 ARMv2a from Deco156Simple, with MAME's coprocessor 0 (BCD
- README.md:67 | DECO 146 | protection, Stadium Hero '96 | written here, the whole of MAME's `deco146.cpp` as the MLC wires it |
- README.md:73 7 MHz pixel clock, 442 dots a line, 274 lines a frame: 15.84 kHz and 57.80 Hz, 320 x 240 visible (MAME's lines 8-247).
- README.md:74 The driver gives no raw timing (`set_refresh_hz(58)`); these are Data East's numbers for its other 320 x 240 boards (`cninja.cpp`), a choice recorded in `docs/H
- README.md:171 The palette is looked up a line after MAME draws the line; Stadium Hero '96 changes it mid-frame about twice a frame.
- README.md:204 MAME is the accuracy reference, with its own acknowledged uncertainties noted where they matter (`docs/MAME_KLUDGES.md`).
- README.md:205 The DE156 references are MAME's `deco_mlc.cpp` at `df450c1`, which re-arms the scanline interrupt every frame.
- README.md:218 **CPUs:** the SH-2's boot trace and the DE156's first 190,128 bus writes equal MAME's; the DE156 program descramble equals MAME's decrypted region at all 262,14
- README.md:232 The **MAMEdev team** — Bryan McPhail (`deco_mlc.cpp`, `deco156.cpp`), David Haywood and Charles MacDonald (`deco146.cpp`), Aaron Giles (`ymz280b.cpp`, `eepromse
- README.md:256 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:257 | `roms` | your own MAME sets (gitignored, never committed) |
Says it matches, follows or was checked against MAME — 3
- README.md:208 **Board against MAME:** Avengers' attract identical to MAME frames 2242, 2359 and 2072; the release build to frames 1468-1469.
- README.md:209 DE156 attract screenshots identical to MAME frames: Stadium Hero '96, Skull Fang, Hoops '96 and acchi 3 of 3 each with the 126 MHz SDRAM controller (Skull Fang
- README.md:215 The model with MAME's zoom (`--zoom mame`) is pixel-identical to MAME on every capture; with the accumulator it differs where sprites are zoomed (`docs/MAME_KLU
Says it was translated, ported or taken from MAME — 5
- rtl/cpu/de156/jtosman_deco156.v:4 Faithful RTL port of MAME dataeast/deco156_m.cpp decrypt() — the SAME static transform for every DE156 game (nslasher/hvysmsh/simpl156...).
- README.md:68 | Yamaha YMZ280B | 8-channel ADPCM sound | srg320's, from the SKNS core, with four marked fixes found against a port of MAME's chip |
- README.md:174 `docs/MAME_KLUDGES.md` lists what is taken from MAME as behaviour and what is known not to be right.
- README.md:221 **DECO 146:** 129,965 random reads equal a port of MAME's device.
- README.md:222 **Sound:** the YMZ280B correlates 0.994 with a port of MAME's chip and 0.976 with MAME's output on Avengers' register writes.
Shares text with the MAME driver without saying so — 2