← コア一覧
Arcade-Eolith (ppriest)
MAMEとの相違点を記載 — 2
- rtl/qs1000/vh_qs1000_voice.sv:8 With loop_pcb high (Arcade-Eolith_MiSTer docs/QS1000_FEATURES.md, Recording): a voice reaching its loop end goes back to its loop start (ADPCM with the decoder state it had there, MAME's disabled save/restore), key-off fades it out (`env`)
- README.md:185 Where the QS1000 differs from MAME it follows recordings (`docs/QS1000_FEATURES.md`): it loops held notes and fades them at key-off (MAME stops them at the samp
MAMEのソースを引用 — 104
- Eolith.sv:3 Eolith (MAME eolith/vegaeo.cpp so far): the Hyperstone E1 boards of Eolith; sets in scripts/build_mra.py SETS.
- Eolith.sv:257 Active low: COIN1 (P1's coin), COIN2 (P2's), START1, START2, SERVICE1, SERVICE (momentary, as MAME's PORT_SERVICE_NO_TOGGLE); eo_main places them per board
- 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/eo_busws.sv:4 The board's E1 has no data cache and runs every access at the timing its BCR sets per area (MAME's update_bus_control decodes it; raccoon writes 0xfa1501c4: MEM0-2 two cycles, MEM3 eleven plus one hold, at 45 MHz).
- rtl/eo_cpumem.sv:7 Program space, per board (e132xs.cpp iram_4k_map for all):
- rtl/eo_eeprom93cxx.sv:3 93Cxx serial EEPROM as MAME's eeprom_serial_93cxx_device behaves (eepromser.cpp): Vamphalf's rtl/vh_eeprom93c46.v (from Arcade-KonamiGX_MiSTer) with the size as parameters and the array in block RAM.
- rtl/eo_eeprom93cxx.sv:5 Eolith: EEPROM_93C66_8BIT, 512 x 8, 9 address bits, write and erase 250 us (eolith.cpp 704-706, eolith16.cpp 174-176); WRITEALL and ERASEALL keep MAME's 8 ms (eeprom.cpp 45-48).
- rtl/eo_eeprom93cxx.sv:20 MAME applies a write's bits in order CS, CLK, DI, so a CLK edge samples DI as it was before the write (di_l), and a CLK edge in the write that raises CS is not a start bit.
- rtl/eo_main.sv:2 `board` 0, Vega (vegaeo.cpp vega_map 116-129):
- rtl/eo_main.sv:13 `board` 1, Gradation 2D (eolith.cpp eolith_map 371-383, inputs 405-456):
- rtl/eo_main.sv:24 `board` 2, eolith16 (eolith16.cpp eolith16_map 79-92, inputs 94-122), a 16-bit bus: a halfword at a dword's address is bits 31:16 of it
- rtl/eo_main.sv:39 COIN2 is read on every Gradation 2D set; MAME declares it on hidnctch, hidctch2 and candy and leaves the bit IPT_UNUSED (reads 1 when not pressed, as here) on the others.
- rtl/eo_main.sv:42 The AT28C16 as MAME's at28c16.cpp: a write of a byte that differs from the stored one stores it and starts a 200 us write cycle; during it writes are ignored and reads return the written byte with bit 7 inverted.
- rtl/eo_main.sv:61 DSW1 (Gradation 2D), as MAME's port
- rtl/eo_main.sv:223 MAME's machine().rand() & 0x300: a free-running LFSR
- rtl/eo_pens.sv:1 hidctch3's light pens, from the MiSTer pad: held positions in the game's units (MAME's PORT_MINMAX, X 0-159, Y 0-119), kept as the picture shows them and turned the game's way when the picture is flipped.
- rtl/eo_video.sv:4 board 0, Vega (vegaeo.cpp vram_w/vram_r 89-99, screen_update_vega 173-183): two 320 x 256 byte buffers (0x14000 each); byte k of dword d of buffer b is bank k at d + b * 20480.
- rtl/eo_video.sv:8 board 1, Gradation 2D (eolith.cpp eolith_vram_w/r 206-221, screen_update_eolith 234-244): two buffers of 15-bit pixels, a line every 336 halfwords; the CPU's window here is lines 0-239 (halfwords 0-80639; eo_cpumem sends the rest to SDRAM).
- rtl/eo_video.sv:13 board 2, eolith16 (eolith16.cpp 63-71, 124-164): two 64 KB byte buffers, the CPU's chosen by `vbuf` (bit 7 of 0xffe80000, inverted there); byte k of dword d of buffer b is bank k at d + b * 16384.
- rtl/eo_video.sv:15 The display always shows buffer 0 (MAME reads m_vram's base), 320 x 200, through the fixed 3-3-2 palette, the low byte of each halfword first: dot x is CPU byte x ^ 1.
- rtl/eo_video.sv:16 (MAME keeps the share in host order on the 16-bit bus and reads it as bytes, 132-141; the CPU's halfword 0x0109 at x shows 0x09 then 0x01.
- rtl/eo_video.sv:22 vblank_flag is MAME's "vpos >= 240" on every board (eolith_speedup.cpp:112), the bit the games poll.
- rtl/eo_video.sv:53 hidctch3's light pens: a cross at each pen's dot (MAME draws the crosshairs in its UI)
- 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/qs1000/eo_qs1000.sv:1 The QS1000 sound board as vegaeo.cpp wires it (208-217, 69-87, 298-305) and qs1000.cpp has it: an 8052 on the 24 MHz oscillator, the main CPU's sound latch, and the wavetable engine reading the sample ROM from SDRAM.
- rtl/qs1000/eo_qs1000.sv:3 With `grad`, as eolith.cpp wires it (343-363, 727-732): commands arrive on the 8052's RxD from the sound CPU (eo_sndcpu), P1 reads 1, P2 0, P3 only RxD (qs1000_p3_r), and the data space is the RAM and the voice registers alone (qs1000_data_
- rtl/qs1000/eo_qs1000.sv:20 (MAME's crazywar in play: at most 84 banked reads a frame, over 647 lines in 2,600 frames; docs/HARDWARE_NOTES.md.)
- rtl/qs1000/eo_qs1000.sv:37 mix balance: the PCB recording's, or MAME's (vh_qs1000_voice)
- rtl/qs1000/eo_qs1000.sv:38 looping and the key-off fade, or MAME's neither (vh_qs1000_voice)
- rtl/qs1000/eo_qs1000.sv:161 The bank is MAME's memory bank: entry 0 from reset, set by each write to P3 (qs1000_p3_w), not the P3 latch itself, which resets to 0xff.
- rtl/qs1000/eo_qs1000.sv:202 with grad, P3.2 and P3.3 read 1 here: jt8052 takes the INT pins from them, MAME's lines are separate
- rtl/qs1000/eo_sndcpu.sv:1 The Gradation 2D's sound CPU as eolith.cpp wires it (eolith45 689-735, sound maps 397-412, 261-266, 311-322): an i8032 on 12 MHz that takes the main CPU's sound latch and sends the QS1000 its commands over the UART.
- rtl/qs1000/eo_sndcpu.sv:11 MAME holds the line asserted (machine_reset 265) because its timer GATE counts while IE1 is set (i8051.cpp 832); the program runs timer 1 gated (TMOD 0xa1) as the UART's baud clock, which on the part counts while /INT1 is high (docs/MAME_KL
- rtl/qs1000/eo_sndcpu.sv:19 (MAME, 1,800 frames: at most 105 banked reads a frame, puzzlekg; docs/HARDWARE_NOTES.md.)
- rtl/qs1000/eo_sndcpu.sv:106 the bank: MAME's memory bank, set by each P1 write; jt8052 shows the P1 latch only, so a write is seen as a change of it (P1 resets to 0xff, the bank to entry 0)
- rtl/qs1000/eo_sndcpu.sv:161 MAME's m_sound_txd starts at 0 (eolith.cpp 180) and the i8032's reset writes P3 before its UART idles the pin high (i8051.cpp 1347, 1357), so the QS1000 sees RxD low until the first transmit(1): the first command (B0 0A 40 on hidnctch) arri
- rtl/qs1000/jt8052/jt8052_periph.v:33 [EO] the 8052's timer 2 (T2CON 0xc8, RCAP2 0xca/0xcb, TL2/TH2 0xcc/0xcd, vector 0x2b, ET2 IE.5, PT2 IP.5): timer and capture modes on the machine cycle, as MAME's i8052 update_timer_t2.
- rtl/qs1000/vh_qs1000_voice.sv:1 QS1000 wavetable engine, as MAME models it (devices/sound/qs1000.cpp; scripts/qs1000_model.py is the same model in Python and the bench's reference).
- rtl/qs1000/vh_qs1000_voice.sv:4 MAME runs the engine at 24 MHz / 32 = 750 kHz: per tick every playing voice outputs one sample (8-bit PCM, or IMA ADPCM decoded one nibble per address step, high nibble first, its 16-bit signal wrapping instead of saturating: Arcade-Eolith_
- rtl/qs1000/vh_qs1000_voice.sv:7 With loop_pcb low, as MAME: no looping, a voice stops at its loop end, and key-off does nothing.
- rtl/qs1000/vh_qs1000_voice.sv:13 Register writes (0x200-0x211 of the 8052's data space, `wr_*`) and ticks (`tick`) enter one queue in arrival order and are applied in that order, so the output sequence is MAME's even when a key-on waits for its ROM reads; the engine catche
- rtl/qs1000/vh_qs1000_voice.sv:23 mix_valid pulses once per tick with the left and right sums (before MAME's /4096); out_l/out_r are the 16-bit output, the mean of 16 ticks (46.875 kHz), clamped.
- rtl/qs1000/vh_qs1000_voice.sv:34 1: the PCB recording's balance (the core); 0: MAME's (benches).
- rtl/qs1000/vh_qs1000_voice.sv:35 1: looping, the key-off fade, pitch bend (the core); 0: MAME's (benches)
- rtl/qs1000/vh_qs1000_voice.sv:59 a write arriving with a tick is queued a clock after it: it belongs to the next sample, as MAME applies a write stamped with the current tick before that tick's sample (the 8052 writes once in 28 clocks or more, so the held write is never o
- rtl/qs1000/vh_qs1000_voice.sv:308 loop_pcb: the nibble decoded is lstart's, so its pre-decode state is the one to restore at each wrap; and the address after this tick reaches lend, so the voice is written back at lstart, its nibble index one before, with that state: the ne
- rtl/qs1000/vh_qs1000_voice.sv:419 [207] left, [206] right: MAME has them the
- rtl/qs1000/vh_qs1000_voice.sv:465 MAME: return
- rtl/qs1000/vh_qs1000_voice.sv:472 descriptor (MAME start_voice): start = bytes 0-2, loop start = {byte 0 [7:4], bytes 3-4, byte 5 [7:4]}, loop end = {byte 0 [7:4], byte 5 [3:0], bytes 6-7}
- rtl/qs1000/vh_qs1000_voice.sv:568 after reset every voice is stopped, as MAME's device_reset
- rtl/qs1000/vh_qs1000_voice.sv:604 bal_pcb low: ADPCM x4, PCM x1 (MAME's gains, qs1000.cpp:484, :513).
- README.md:3 A MiSTer FPGA core for Eolith's Hyperstone arcade boards (MAME's `vegaeo.cpp`, `eolith.cpp` and `eolith16.cpp`), built with Quartus Prime 17.0.2 Lite for the DE
- README.md:34 QS1000 sound closer to the chip than MAME, from a Hidden Catch PCB recording, a Mission Craft PCB recording and General MIDI files recorded on a QS1000 (`docs/Q
- README.md:37 Raccoon World (MACHINE_NOT_WORKING in MAME): 23 sets
- README.md:52 Three boards, each a Hyperstone CPU drawing into a double-buffered frame buffer, with no sprites or tiles: the Vega (Crazy War: GMS30C2132, 8-bit pixels through
- README.md:74 | Candy Candy | 1999 | Eolith | `candy` | Gradation 2D | IMPERFECT_GRAPHICS in MAME |
- README.md:75 | Hidden Catch 2 (pcb ver 3.03) (Kor/Eng) (AT89c52 protected) | 1999 | Eolith | `hidctch2` | Gradation 2D | MAME's protection patch |
- README.md:77 | Hidden Catch 2000 (AT89c52 protected) | 1999 | Eolith | `hidnc2k` | Gradation 2D | MAME's protection patch |
- README.md:79 | Land Breaker (World) / Miss Tang Ja Ru Gi (Korea) (pcb ver 3.03) (AT89c52 protected) | 1999 | Eolith | `landbrka` | Gradation 2D | Clone of `landbrk`; MAME's
- README.md:80 | Land Breaker (World) / Miss Tang Ja Ru Gi (Korea) (pcb ver 1.0) (AT89c52 protected) | 1999 | Eolith | `landbrkb` | Gradation 2D | Clone of `landbrk`; MAME's p
- README.md:85 | Raccoon World | 1998 | Eolith | `raccoon` | Gradation 2D | MACHINE_NOT_WORKING in MAME ("game animation & timers seem too fast?") |
- README.md:97 | MAME description | Why |
- README.md:99 | BnB Arcade, Happy Tour, Touryuumon (`ghosteo.cpp`) | A 200 MHz ARM920T system-on-chip with an MMU; shares only the QS1000 with these boards |
- README.md:105 | Hyperstone GMS30C2132 (Vega), E1-32N (Gradation 2D), E1-16T (`eolith16`) | Main CPU | Arcade-Vamphalf_MiSTer's pipelined `e1_pipe.sv`, written there from MAME
- README.md:107 | QS1000 (8052 + 32-voice wavetable) | Sound, Vega and Gradation 2D | From Arcade-Vamphalf_MiSTer: jotego's JT8051 with changes (`rtl/qs1000/PROVENANCE.md`), th
- README.md:116 MAME gives no video timing (`set_refresh_hz(60)`, `set_size(512, 262)` are placeholders, `eolith.cpp:714-717`); the dot clock is half the boards' 14.31818 MHz c
- README.md:133 A 64 MB SDRAM module is required: Crazy War and 16 of the 22 `eolith.cpp` sets are larger than 32 MB.
- README.md:185 Sound has not been compared with MAME by ear on the board.
- README.md:190 The M6295's output (KlonDike+) has not been compared with MAME; nor have Hidden Catch 3's pens, which work on the board.
- README.md:227 [ ] Sound judged against MAME on the board
- README.md:228 [ ] Frame times on the board against MAME's (the `Eolith_stp` revision's probes)
- README.md:253 MAME's `vegaeo.cpp`, `eolith.cpp`, `eolith16.cpp`, `qs1000.cpp` and `e132xs` are the reference.
- README.md:257 CPU: `e1_pipe` agrees with MAME's interpreter after every instruction (PC, SR, all registers, every bus access), at 0 and 3 bus wait states, on Crazy War's firs
- README.md:261 Whole board (`sim/sys_tb`, the SDRAM controller and a chip model) against MAME's trace from reset: all 2,000,000 retired PCs on `crazywar` (178,383 of 178,383 d
- README.md:269 EEPROM: MAME's pin traffic for `hidnctch` over 1,200 frames, from blank: 12,112 of 12,112 data reads agree (`sim/ee_tb`).
- README.md:271 Gradation 2D sound (`sim/snd_tb`, `hidnctch`, 1,200 frames with a coin and a start): 4,711 of 4,711 QS1000 register writes and 1,805 of 1,805 sound CPU data rea
- README.md:273 No interrupts: over 3,000 frames, no timer, INT1-4 or IO entries on any set of the three drivers in MAME (`scripts/mame_irqcount.py`); the games poll vblank.
- README.md:281 The **MAMEdev team**: Tomasz Slanina and Pierpaolo Prazzoli (`eolith.cpp`), Pierpaolo Prazzoli (`vegaeo.cpp`, `eolith16.cpp`, `e132xs`), Philip Bennett (`qs1000
- README.md:298 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:299 | `roms` | your own MAME sets (gitignored, never committed) |
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 3
- rtl/eo_video.sv:18 Checked: the core's VRAM writes equal MAME's on hidden text, debug/sysk/vwlog.txt against debug/tmp/textsrc.txt, and only with the swap does the text read as MAME's.)
- README.md:206 Flip screen, HDMI and analog, from the OSD or the DIP (fake DIP where the game has none): done, from the OSD (no board here has a flip); checked in simulation o
- README.md:265 Video: the scan-out is pixel-identical to MAME on 40 of 40 captured `crazywar` frames, 6 of 6 `hidnctch` and 6 of 6 `klondkp` frames (attract and play).
MAMEから移植・書き写した、または取り入れたと記載 — 2
- Eolith.sv:242 A byte per player, active low, as MAME's P1_P2 (Vega) and IN0 bits 31:16 (Gradation 2D): U D L R, buttons 1-3.
- README.md:193 `docs/MAME_KLUDGES.md` lists what is taken from MAME as behaviour and what is known not to be right.
MAMEの近似をそのまま採用 — 1
- README.md:254 Where the core follows MAME on something MAME marks as uncertain, it is listed in `docs/MAME_KLUDGES.md`; the core's own approximations are in `docs/HACKS.md`.