← コア一覧
Arcade-GStream (ppriest)
MAMEのドライバにない実基板の資料を引用 — 1
- README.md:54 | X2222 (final debug?) (`x2222`) | 16-bit direct colour and its own map not written yet (`docs/ROADMAP.md`, Phase 4). Silent in MAME: no sound ROM dumped |
MAMEのソースを引用 — 57
- GStream.sv:3 GStream (MAME promat/gstream.cpp): G-Stream G2020 and X2222; sets in scripts/build_mra.py SETS.
- GStream.sv:46 Rotation: every set is ROT270 (gstream.cpp 1134-1136): Auto turns the picture counter-clockwise.
- GStream.sv:208 <switches> (ioctl index 254): X2222's DSW, SYS bits 7:4 and 1, IN4 bits 6:0, as the CPU reads them (gstream has no DIP in MAME).
- GStream.sv:209 Before a .mra sends them, MAME's defaults.
- GStream.sv:222 MAME's default keys (rtl/mame_keys.sv) ORed into the pads.
- GStream.sv:232 gstream IN0 / IN1 (gstream.cpp 402-438), active high here: 0 U, 1 D, 2 L, 3 R, 4-7 buttons 1-4, 9 coin, 10 start, 11 service, 15 the test switch (IN0's; gs_main mirrors it into IN1 and IN2)
- GStream.sv:256 gstream's backup RAM: zero at the start of each index-0 download (X2222's plain RAM stays so), then MAME's default image (<rom index="2">, the CPU's byte order) and a saved .nvm (<nvram index="4">) load it.
- rtl/e1/e1_pipe.sv:1 Hyperstone E1-16 / E1-32 CPU core, pipelined, written from MAME's interpreter (src/devices/cpu/e132xs/e132xs.cpp, e132xsop.hxx, e1defs.h; BSD-3-Clause, copyright-holders Pierpaolo Prazzoli and the MAME team).
- rtl/e1/e1_pipe.sv:21 Behaviour follows the interpreter, including its quirks; each is marked "MAME:" where it is not what the ISA manual says.
- rtl/e1/e1_pipe.sv:25 Not implemented: power-down, floating point (the FP opcodes trap to their emulation code as in MAME).
- rtl/e1/e1_pipe.sv:339 MAME adjust_timer_interrupt: fire when TR has reached TCR and the interrupt is enabled
- rtl/e1/e1_pipe.sv:379 MAME: a user-mode write that sets L is a privilege error (checked here, applied at commit)
- rtl/e1/e1_pipe.sv:386 raw write: no side effects (MAME writes global_regs[] directly in several places)
- rtl/e1/e1_pipe.sv:489 MAME: subtracts the halfword count, not bytes
- rtl/e1/e1_pipe.sv:490 MAME: RET does not set P
- rtl/e1/e1_pipe.sv:563 MAME: the interpreter sets ILC from this table once, before the first instruction after reset (get_instruction_length); the long-branch and 0xb0-0xbc entries are what MAME does
- rtl/e1/e1_pipe.sv:756 D reads what the forwarding does not cover: LDW.S / STW.S (the frame slot through port 4; with them the other e1 subtype-3 N forms), extend (G14, G15 in ST_EXEC); and MOV from TR (e1_tb loads TR with MAME's value once the instruction before
- rtl/e1/e1_pipe.sv:1052 MAME: RET with PC/SR source does nothing
- rtl/e1/e1_pipe.sv:1061 MAME: the loop runs after the exception entry, with the new frame pointer
- rtl/e1/e1_pipe.sv:1081 MAME: same-register and PC/SR sources do nothing
- rtl/e1/e1_pipe.sv:1146 MAME: tests src_code against SR even for a local source
- rtl/e1/e1_pipe.sv:1165 MAME: BCR, TPR, FCR and MCR read as zero
- rtl/e1/e1_pipe.sv:1540 SETADR: the wrap carry goes into bit 9, as MAME's original comment says; MAME's code puts it in bit 0 (MAME_KLUDGES.md, CPU and I/O: mrkickera hangs with it)
- rtl/e1/e1_pipe.sv:1882 MAME's get_lhs is the LOW half, get_rhs the HIGH half.
- rtl/e1/e1_pipe.sv:2096 MAME: PC/SR as the pointer register does nothing
- rtl/e1/e1_pipe.sv:2143 MAME: base update skipped when it is either destination register
- rtl/e1/e1_pipe.sv:2221 MAME: when the pointer's own register-file slot is the target, the update adds to the stored value The update goes in the queue first, where it lands then not depending on the comparison with SP, and the store into the register file after i
- rtl/e1/e1_pipe.sv:2260 MAME: STD.P reads the second source after the pointer update
- rtl/e1/e1_pipe.sv:2262 MAME: updated before the store
- rtl/e1/e1_pipe.sv:2272 MAME: skipped when the pointer is also a destination
- rtl/gs_cpumem.sv:7 Program space (gstream.cpp gstream_32bit_map 272-287, x2222_32bit_map 366-383; e132xs.cpp iram_8k_map): 0x00000000-0x003fffff work RAM, 4 MB SDRAM WRAM_BASE, through the caches 0x40000000-0x403fffff X2222: RAM, 4 MB SDRAM XRAM_B
- rtl/gs_main.sv:1 SPDX-License-Identifier: GPL-3.0-or-later The main board (gstream.cpp): E1-32XT CPU, its memory system (gs_cpumem), the backup RAM, the scroll registers and the I/O maps of both boards.
- rtl/gs_main.sv:5 I/O space (the port is the CPU's I/O address >> 13, e132xs.cpp 1555; the E1-32X's 13-bit I/O space counts dwords, so 0x1000 and 0x1001 are two ports).
- rtl/gs_main.sv:7 gstream (gstream_io 354-363), 32-bit reads with bits 31:16 zero (MAME's ports, measured):
- rtl/gs_main.sv:18 The vertical blank interrupt is INT1: MAME's irq0_line_hold asserts input line 0 (INPUT_INT1), held until the CPU takes it.
- rtl/gs_main.sv:31 gstream: IN0, IN1 bits 14:0, active low, as MAME's ports
- rtl/gs_main.sv:33 X2222: P1, P2, SYS, DSW, IN4 bits 6:0, as MAME's ports
- 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/video/gs_video.sv:1 SPDX-License-Identifier: GPL-3.0-or-later gstream's video (gstream.cpp screen_update 750-811), drawn per scanline: three 512 x 512 tilemaps of 32 x 32 8 bpp tiles and up to 832 16 x 16 8 bpp sprites, the graphics read from DDR3 (docs/ROADMA
- rtl/video/gs_video.sv:14 Raster: ce_pix 1 in 9 of 60.75 MHz (6.75 MHz), 432 x 262, visible 320 x 240 from (0, 0) (docs/HACKS.md: MAME gives no raster).
- rtl/video/gs_video.sv:17 Line engine, during line v for line v + 1 (into line buffer (v + 1)[0]): tiles for layers 0, 1, 2 and the 11 tile columns the screen crosses: the entry from the VRAM, a 32-byte row (4 DDR3 beats) at TILE_BASE + n * 4 MB + code * 1024 + ro
- README.md:3 A MiSTer FPGA core for Oriental Soft's Hyperstone E1-32XT arcade board (MAME's `promat/gstream.cpp`), built with Quartus Prime 17.0.2 Lite for the DE10-nano.
- README.md:41 MAME's driver also runs X2222 and its prototype on the same board with 16-bit direct colour and no sound ROM; those are Phase 4 of `docs/ROADMAP.md`.
- README.md:54 | X2222 (final debug?) (`x2222`) | 16-bit direct colour and its own map not written yet (`docs/ROADMAP.md`, Phase 4). Silent in MAME: no sound ROM dumped |
- README.md:55 | X2222 (5-level prototype) (`x2222o`) | As `x2222`; MAME marks its graphics imperfect (program and sprite ROMs do not match) |
- README.md:61 | Hyperstone E1-32XT, 64 MHz | Main CPU | Arcade-Vamphalf_MiSTer's `e1_pipe` (written there from MAME's `e132xs`), unchanged, run on every 60.75 MHz clock with
- README.md:62 | Graphics (two XC95288 CPLDs) | Three 16 x 16 tilemaps of 32 x 32 tiles, 832 sprites of 16 x 16, 8 bpp, BGR565 palette | Written here from MAME's `screen_updat
- README.md:68 MAME has no raster: `set_refresh_hz(60)`, `set_size(320, 240)`, no blanking (`gstream.cpp:844-847`).
- README.md:118 The frame rate is 59.64 Hz against MAME's 60 Hz (Video timing).
- README.md:179 Whole board (`sim/sys_tb`, the SDRAM controller and a chip model) against MAME's trace from reset: PCs agree for 785,785 instructions, to the core's first verti
- README.md:180 In attract mode the VRAM at every frame's end equals MAME's for 2,331 of 2,331 frames (offset by the core's slower boot).
- README.md:189 Sound: the OKI commands and bank changes on the bench equal MAME's byte for byte (`sim/sys_tb +okilog`, `scripts/mame/okilog.lua`); the power-on sound's length
- README.md:201 The **MAMEdev team**: David Haywood (`gstream.cpp`), Pierpaolo Prazzoli (`e132xs`), for the driver and device emulations that are this core's specification.
- README.md:220 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:221 | `roms` | your own MAME sets (gitignored, never committed) |
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 2
- README.md:119 The output low-pass is chosen to match MAME's spectrum; the board's own analog filter is not known (`docs/HACKS.md`).
- README.md:183 Video: `scripts/render_model.py`, a transcription of `screen_update`, is pixel-identical to MAME on 9 of 9 captured frames (attract and play) and on 179 of 179
MAMEから移植・書き写した、または取り入れたと記載 — 1
- README.md:123 `docs/MAME_KLUDGES.md` lists what is taken from MAME as behaviour and what is known not to be right.
MAMEの近似をそのまま採用 — 1
- README.md:173 MAME's `gstream.cpp`, `e132xs` and `okim6295` are the reference; where the core follows MAME on something MAME marks as uncertain it is in `docs/MAME_KLUDGES.md