← コア一覧
Crystal (kyledlester)
MAMEとの相違点を記載 — 1
- README.md:114 The core differs from MAME in one place on purpose.
MAMEのソースを引用 — 86
- rtl/cpu/se3208/se3208_cpu.sv:4 Behaviour: MAME se3208.cpp (c2334733) as documented in docs/SE3208.md, verified instruction by instruction against sim/reference/se3208_ref.h (sim/cpu).
- rtl/cpu/se3208/se3208_cpu.sv:10 * Data port: one aligned 32-bit bus cycle per request with byte enables (d_be) and lane-placed data, exactly the accesses MAME makes: aligned 8/16/32-bit accesses are single cycles, unaligned 16/32-bit accesses are split into byte cycles in
- rtl/cpu/se3208/se3208_cpu.sv:13 * Pacing: a new instruction starts only when `start_ok` is high (credit counter outside, MAME timing = one instruction per 6 clk_sys on average); `retire` pulses when an instruction (and its interrupt entry) is done.
- rtl/cpu/se3208/se3208_cpu.sv:15 * Undecodable opcodes execute as NOPs like MAME but pulse `illegal` (simulation stops on it).
- rtl/cpu/se3208/se3208_cpu.sv:235 branch condition, MAME flag semantics
- rtl/cpu/se3208/se3208_cpu.sv:528 push PC (of the SWI itself, as MAME), push SR, clear ENI/E/M, PC = vector 0x10+n
- rtl/cpu/se3208/se3208_cpu.sv:698 SWI: PC = vector (MAME: -2 then +2)
- rtl/crystal/crystal_board.sv:4 SE3208 + VRender0 blocks + board glue (crystal.cpp main_map), with memory traffic leaving through abstract ports that carry *physical* addresses (docs/SDRAM_BANDWIDTH.md): phys[27] = 0: SDRAM byte address phys[24:0] (bank0 work RAM, bank
- rtl/crystal/crystal_board.sv:15 protection PIC (Top Blade V: PIC16F628A, Office Yeoin Cheonha: PIC16F84A; others: none, MAME NO_DUMP)
- rtl/crystal/crystal_board.sv:28 inputs (active low, MAME port layout)
- rtl/crystal/crystal_board.sv:378 MAME master: PIC data line (b29) = !written b29 (undumped PIC never drives it) PIC data line (MAME crystal.cpp): the CPU writes !PIO bit 29, the PIC drives it from port A bit 0 when that is an output; both read it back (PIO external data bi
- rtl/crystal/crystal_board.sv:381 Without a PIC (crysking, evosocc: undumped in MAME) only the CPU writes it.
- rtl/crystal/crystal_core.sv:127 VRender0/CPU clock enable: Top Blade V programs its PLL for 80.013 MHz = 85.909 MHz * 95/102 (MAME topbladv machine); the screen keeps the 14.318 MHz crystal timing.
- rtl/crystal/crystal_core.sv:164 ------------------------------------------------------------------ inputs (MiSTer joystick -> MAME ports) joystick bits: 0 right, 1 left, 2 down, 3 up, 4 B1, 5 B2, 6 B3, 7 B4, 8 start, 9 coin, 10 service
- rtl/crystal/crystal_core.sv:183 Office Yeoin Cheonha (MAME INPUT_PORTS officeye): three players with Red / Green / Blue (buttons 1-3); P1_P2 b0/b2/b4 P2 R/G/B, b6 start 2, b16/b18/b20 P1 R/G/B, b17/b19/b21 P3 R/G/B, b22 start 1, b23 start 3; SYSTEM starts unused.
- rtl/crystal/crystal_core.sv:192 Top Blade V (MAME INPUT_PORTS topbladv): two buttons per player, P3/P4 unused; SYSTEM b6 = test (service mode), b7 = service 1; coins are one-frame impulses (PORT_IMPULSE(1)).
- rtl/crystal/crystal_ds1302.sv:4 Serial protocol and register/RAM behaviour as MAME machine/ds1302.cpp (Curt Coder, c2334733): command byte LSB first on SCLK rising edges, read data shifted out on falling edges, burst mode, write protect, 31 bytes of RAM, user copy of the
- rtl/crystal/crystal_ds1302.sv:81 ce_w, then io_w, then sclk_w (MAME pioldat_w order)
- rtl/crystal/crystal_ds1302.sv:119 MAME checks WRITE_PROTECT before every store (the control register too)
- rtl/crystal/crystal_ds1302.sv:156 MAME: io_w stores the line even when CE is low; output follows the last driven value
- rtl/crystal/crystal_ds1302.sv:159 MAME io_w: the shared line takes the written value (read back by PIOEDAT b28)
- rtl/crystal/crystal_loader.sv:4 MRA streams (docs/ROM_LAYOUT.md), hps_io WIDE=1 (16-bit words, byte addresses): index 1 board record "CRYS", version, game id, flash banks index 254 DIP switches (MRA <switches>), byte 0 = DSW index 3 protection PIC firmware (MAME image
- rtl/crystal/crystal_nvram.sv:13 File format = MAME's nvram/crysking/nvram: byte i = CPU address 0x01400000 + i (little endian).
- rtl/crystal/crystal_pic16.sv:4 Behaviour: MAME src/devices/cpu/pic16x8x/pic16x8x.cpp (c2334733) through the reference model sim/reference/pic16_ref.h, instruction for instruction: the 35 instructions with MAME's flags and cycle counts (1; 2 for CALL/GOTO/RETURN/RETFIE/RE
- rtl/crystal/crystal_pic16.sv:16 Board hookup (MAME crystal.cpp): port A bit 0 is the data line shared with the CPU's PIO bit 29; port A writes report the driven bits (porta_we, porta_val, porta_mask); the CPU holds the PIC in reset with PIO bit 30 (hold).
- rtl/crystal/crystal_pic16.sv:31 firmware load (MAME image layout, 16-bit words: program at word 0, EEPROM at word 0x2100 + i)
- rtl/crystal/crystal_pic16.sv:154 reading PORTB updates the RB7:RB4 change latch (MAME portb_r); also on a write to PORTB
- rtl/crystal/crystal_pic16.sv:177 interrupt pending (MAME irq_active)
- rtl/crystal/crystal_pic16.sv:189 MAME device_reset (power-on values of the registers MAME initialises at start are 0)
- rtl/crystal/crystal_pic16.sv:205 MAME check_irqs: port B change detection, wake from sleep, interrupt entry
- rtl/crystal/crystal_pic16.sv:229 F84A: 1K words, addresses wrap (MAME 10-bit space)
- rtl/crystal/crystal_pic16.sv:249 ---------------- execute one instruction (MAME pic16x8x_device op_*)
- rtl/crystal/crystal_pic16.sv:335 ---------------- register write (file destination); MAME store_regfile, SFR side effects
- rtl/crystal/crystal_pic16.sv:358 MAME: inst+2, less this instruction
- rtl/crystal/crystal_pic16.sv:433 ---------------- TMR0 (MAME update_timer after the instruction, internal clock)
- rtl/crystal/crystal_prot_overlay.sv:1 BrezzaSoft Crystal System MiSTer core -- MAME-compatible protection overlay (game-specific, isolated).
- rtl/crystal/crystal_prot_overlay.sv:5 MAME's init_crysking() (c2334733) writes the expected words into the flash region; this module substitutes exactly the same words into the download stream on its way to the volatile DDR3 flash store.
- rtl/crystal/crystal_prot_overlay.sv:7 docs/PROTECTION.md Evolution Soccer (game id 2): the same mechanism for MAME's init_evosocc() (PIC "dgSMART-PR2" undumped), eight words in flash bank 2 (u16 offset 0x1000000 = byte 0x2000000).
- rtl/crystal/crystal_prot_overlay.sv:10 Donggul Donggul Haerong (game id 5): MAME's init_donghaer() (PIC "dgSMART-PR2" undumped), eight words in bank 0, plus four words beyond MAME: the game's own PIC challenges (in a module XOR-encrypted with 0x2a401ae9 and decrypted into RAM at
- rtl/crystal/crystal_prot_overlay.sv:12 Without them every challenge fails, as in MAME, and the game punishes itself: its timer-2 interrupt corrupts 8 random work-RAM words every 21 ticks (MAME's "randomly corrupts itself"), and a later check spins forever (MAME's hangs).
- rtl/crystal/crystal_texq.sv:4 Why: MAME renders each display-list packet almost as soon as it is queued (one per 1100 clocks), so by the time the CPU goes on to upload the next frame's sprite textures, the list it submitted has long been drawn.
- rtl/crystal/crystal_texq.sv:11 How: CPU/DMA writes to texture RAM and the display-list queue-front updates (written by the CPU to the video registers) go through ONE ordered queue: * a texture write is applied to SDRAM only when the renderer has caught up with the queue
- rtl/vrender0/vr0_render.sv:4 Behaviour: MAME video/vrender0.cpp process_packet / draw_quad / draw_quad_fill / do_alpha / do_shade (c2334733), docs/VRENDER0_VIDEO.md.
- rtl/vrender0/vr0_render.sv:9 render state latch (MAME sticky / default rules) and palette load (256 RGB888 dwords -> RGB565 with MAME's collision nudge) 3.
- rtl/vrender0/vr0_render.sv:11 pixel pipeline, one pixel per clock when the caches hit: P0 coordinates (x, y, tx, ty accumulators, MAME 32-bit wrapping arithmetic, clamp test) P1 tile-map word lookup (texture cache port A), linear offset P2 texel word lookup (texture cac
- rtl/vrender0/vr0_render.sv:349 P6: blend products (MAME: (s * fsel(src) + d * fsel(dst)) >> 8 per channel, saturated)
- rtl/vrender0/vr0_render.sv:437 render state (MAME process_packet)
- rtl/vrender0/vr0_scanout.sv:4 MAME screen_update: pixel (x,y) = frame RAM word at display_dest + ((x & 0x3ff) | (y & 0x1ff) << 10) * 2, RGB565 expanded with MAME's pal5bit/pal6bit (bit replication).
- rtl/vrender0/vr0_sound.sv:4 Behaviour: MAME sound/vrender0.cpp render_audio() (c2334733), docs/VRENDER0_AUDIO.md.
- rtl/vrender0/vr0_sound.sv:5 For channels 0..MaxChn with Status and RS set, in order: read the channel words (vr0_sound_regs channel RAM), fetch one sample from frame or texture RAM, decode (u-law table, 8-bit, 16-bit), advance CurSAddr by DSAddr*div>>16, loop or stop
- rtl/vrender0/vr0_sound.sv:11 Known approximation: EnvVol is kept as the 24-bit register image between samples (MAME keeps an s32); only envelopes that overflow 24 bits differ (KNOWN_ISSUES K5).
- rtl/vrender0/vr0_sound.sv:52 u-law table (Evoga), MAME ulaw_to_16
- rtl/vrender0/vr0_sound.sv:80 divider: div = 0x1E8000 / (clk+1) (MAME ((30 << 16) | 0x8000) / (num + 1)), or 0x10000 when num == 0
- rtl/vrender0/vr0_sound.sv:223 MAME: cur_saddr += (ds_addr * div) >> 16 in C int arithmetic (32-bit wrap, arithmetic shift)
- rtl/vrender0/vr0_sound.sv:252 MAME: the voice ended -> 'break' out of the channel loop for this sample (cur written back)
- rtl/vrender0/vr0_sound.sv:255 volume (once) and the envelope stages, sequentially like MAME's level loop; each level takes two clocks (rate product, then add and target compare)
- rtl/vrender0/vr0_sound_regs.sv:4 Behaviour: MAME sound/vrender0.cpp (c2334733), docs/VRENDER0_AUDIO.md.
- rtl/vrender0/vr0_sound_regs.sv:5 Channel parameters live in a 32 x 16-word RAM (512 x 16) so the sample engine can read them in its time slot; the engine writes back the dynamic fields (CurSAddr, EnvVol, EnvStage) through port B. Read-back follows MAME bit for bit, includi
- rtl/vrender0/vr0_sound_regs.sv:38 Channel registers: 32 channels x 16 words stored as the MAME channel_t::read() image, in block RAM: even and odd words in separate RAMs (a dword-aligned CPU access touches one of each), each split into byte lanes; port A = CPU, port B = sam
- rtl/vrender0/vr0_sound_regs.sv:44 CPU-side channel word read-modify-write uses the stored read-back image; the stored image already has the MAME read masks applied (see wfix()).
- rtl/vrender0/vr0_sound_regs.sv:65 MAME: m_status >> 4
- rtl/vrender0/vr0_sound_regs.sv:144 ------------------------------------------------------------------ channel RAM (block RAM) reset-time fill with MAME's channel_t defaults (word 3 = 0x7100: ld = 1, env_stage = 1)
- rtl/vrender0/vr0_sys.sv:5 Behaviour: MAME machine/vrender0.cpp (c2334733), docs/VRENDER0_SYSTEM.md.
- rtl/vrender0/vr0_sys.sv:37 the written data as MAME passes it (unaccessed lanes 0)
- rtl/vrender0/vr0_sys.sv:197 ---------------- interrupt latch (masked requests are dropped, as MAME)
- rtl/vrender0/vr0_sys.sv:254 ---------------- CRTC derived geometry (MAME crtc_update), one cycle after a changing write
- rtl/vrender0/vr0_sys.sv:286 external VCLK: MAME fatalerror; keep the previous geometry
- rtl/vrender0/vr0_sys.sv:371 TCOL: not stored by MAME
- rtl/vrender0/vr0_video_regs.sv:4 Behaviour: MAME video/vrender0.cpp (c2334733), docs/VRENDER0_VIDEO.md.
- rtl/vrender0/vr0_video_regs.sv:30 minimum clocks between packet starts (MAME: 1100)
- rtl/vrender0/vr0_video_regs.sv:116 packet completion (MAME pipeline_cb after process_packet)
- rtl/vrender0/vr0_video_regs.sv:131 MAME processes a whole packet instantly (one per 1100 clocks), so its display list is always complete by vblank; this renderer draws pixel by pixel, so a flip also waits until the renderer has caught up with the list -- stopped at the flip-
- README.md:38 | Game | MAME set | Year | Genre | Board | Status |
- README.md:46 The protection microcontrollers of Top Blade V and Office Yeoin Cheonha are dumped (MAME), so the core runs their firmware on a PIC16 core of its own; The Cryst
- README.md:48 Donggul Donggul Haerong is marked not working in MAME: without its (undumped) protection chip the game punishes itself by corrupting memory and hanging.
- README.md:57 | Game | MAME set | Year | Parent game | Status |
- README.md:63 Each game uses MAME's input layout.
- README.md:105 MAME's `crystal` driver (0.289) is the behavioural reference.
- README.md:105 During development the core was compared against a C++ model of the MAME driver in simulation:
- README.md:114 MAME's renderer finishes every display list instantly, so MAME can flip the frame at vblank no matter what.
- README.md:144 Protection: the cartridge PIC has never been dumped, so the core applies the same small set of word substitutions MAME uses.
- README.md:148 Sound: all 32 voices at MAME's 44.19 kHz sample rate, stereo, with an optional stereo mix.
- README.md:163 The real CPU's per-instruction timing and the real renderer's speed are unknown; the core uses MAME's rates.
- README.md:188 [MAME reference](docs/MAME_REFERENCE.md)
- README.md:201 **MAME**: the `crystal` driver and VRender0 devices by ElSemi and Angelo Salese, the SE3208 CPU core by ElSemi and the DS1302 by Curt Coder are the behavioural
- README.md:213 The reference model in `sim/reference` is derived from BSD-3-Clause MAME sources (see the file headers).
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 1
- README.md:160 Sound matches MAME, which means the VRender0's reverb, ping-pong loops and sustain are not emulated (they are not documented anywhere).
MAMEドライバと同じ文言を含む(出典の明記なし) — 1