← コア一覧
SegaSystem1-2_TestBuild (RodimusFVC)
MAMEのドライバにない実基板の資料を引用 — 1
MAMEのドライバにもある実基板の情報・測定値を引用 — 4
- rtl/boards/sys1/sys1_main.sv:341 P0 writes load the MCU latch, P1 is the status the main CPU reads at 1C. — MAMEにも記載: 1C sega/system1.cpp:717
- rtl/boards/sys1/sys1_sound.sv:11 E000 read: command latch, and a strobe back to the main board (PIO /ASTB or PPI PC6 acknowledge) IRQ at 32V, 96V, 160V, 224V (held until acknowledged); NMI from the main board (PIO ARDY / PPI PC7). — MAMEにも記載: 32V sega/system1.cpp:557, 96V sega/system1.cpp:557
- rtl/boards/sys1/sys1_sound.sv:38 one clock at 32V, 96V, 160V, 224V — MAMEにも記載: 32V sega/system1.cpp:557, 96V sega/system1.cpp:557
- rtl/segasys1_board.sv:291 ROM 4K at ioctl 4C000. — MAMEにも記載: 4K sega/system1.cpp:176
実基板の資料ファイルを同梱 — 7
MAMEのソースを引用 — 83
- Arcade-SegaSystem1-2.sv:291 CTL2-2026-10-25: v1 keyboard, test / service keys and mahjong panel commented out below (now ctl_keyboard's extra-key table) // MAME default keys (controllers.sv): kb [0] up [1] down [2] left [3] right [4] ctrl [5] alt [6] 1 [7] 2 [8] 5 [9]
- Arcade-SegaSystem1-2.sv:317 // Mahjong panel (DakkoChan House), MAME's default keys: A-N letters, Kan LCtrl, Pon LAlt, Chi Space, Reach LShift, // Ron Z, Flip Flop Y, Bet 3, Last Chance RAlt, Start 1 reg [13:0] mj_ltr = 14'd0; // A-N reg mj_kan = 0, mj_po
- Arcade-SegaSystem1-2.sv:357 Mahjong panel (DakkoChan House), MAME's default keys: A-N letters, Kan LCtrl, Pon LAlt, Chi Space, Reach LShift, Ron Z, Flip Flop Y, Bet 3, Last Chance RAlt, Start 1
- Arcade-SegaSystem1-2.sv:365 MAME KEY0-KEY6 rows, active low
- Arcade-SegaSystem1-2.sv:445 Dial (Block Gal; MAME IPT_DIAL, reversed): 8-bit position counters per player, from the Gottlieb core's trackball logic.
- rtl/boards/sys1/sys1_main.sv:6 From MAME sega/system1.cpp (system1_map, system1_pio_io_map, adjust_cycles, videoram_wait_states) and the Sega 834-5191 / 171-5054 board docs.
- rtl/boards/sys1/sys1_main.sv:11 Modelled as MAME videoram_wait_states (from a dump of the 315-5137 PAL): whole CPU cycles, (tenths of a cycle to the next FIXST + 5) / 10, on a FIXST grid counted from CPU start.
- rtl/boards/sys1/sys1_main.sv:13 An exact halt-until-FIXST locks LDIR to 22.4 cycles per byte (MAME 24) and Pitfall II reaches its title logo write before the vblank IRQ's sprite clear instead of after it, so the logo is lost (HW 2026-10-19).
- rtl/boards/sys1/sys1_main.sv:36 Block Gal I/O map (MAME blockgal_io_map): 0C/0E unmapped, 0D/0F = SWA
- rtl/boards/sys1/sys1_main.sv:37 mahjong matrix (MAME dakkochn_state): P1 = key row, P2 = ~(1 << row)
- rtl/boards/sys1/sys1_main.sv:38 Shooting Master gun ports (MAME shtngmst_io_map)
- rtl/boards/sys1/sys1_main.sv:39 MAME GUNX (00-FE)
- rtl/boards/sys1/sys1_main.sv:40 MAME GUNY (10-F0, reversed)
- rtl/boards/sys1/sys1_main.sv:42 Noboranka map (MAME nobo_map): collisions at C000-CFFF, RAM at F000-FFFF
- rtl/boards/sys1/sys1_main.sv:43 Noboranka 8751 latches (MAME init_nob): I/O 18 latch, 1C MCU status
- rtl/boards/sys1/sys1_main.sv:44 Noboranka bootleg ports (MAME init_nobb): in 1C = 80, 02 = 0, 03 = step (out 04)
- rtl/boards/sys1/sys1_main.sv:57 8751 MCU (Choplifter, Shooting Master; MAME system1 mcu_control_w / mcu_data_r / mcu_data_w): P1 [6] Z80 BUSREQ, [4:3] MOVX target (0 Z80 program space, 1 banked ROM region 10000+, 2 Z80 I/O space), [0] Z80 /INT
- rtl/boards/sys1/sys1_main.sv:139 80 MHz clocks since CPU start - 32, mod 64 (MAME fixst_offset)
- rtl/boards/sys1/sys1_main.sv:198 Every ROM read below C000 (fixed and banked window, MAME mc8123_device::decode), key byte key[{/M1, A15-A10, A8, A6, A4, A2-A0}]; key RAM and ROM both answer one clock after the address, the decoded byte one clock later (registered; plain R
- rtl/boards/sys1/sys1_main.sv:240 System 2: 8 pages, the CPU sees 4K at a time, bank = PPI port C bits 2-1 (MAME videoram_bank >> 1 % 4)
- rtl/boards/sys1/sys1_main.sv:305 Floating inputs as MAME sys1ppi: PA 00, PB 40, PC 80.
- rtl/boards/sys1/sys1_main.sv:317 MAME sys2: port C exor 0x01
- rtl/boards/sys1/sys1_main.sv:337 ------------------------------------------------------------ data in ------------------------------------------------------------ Noboranka protection nob (MAME nob_maincpu_latch_w / nob_mcu_control_p2_w): the main CPU's latch write raises
- rtl/boards/sys1/sys1_main.sv:342 nobb: the bootleg's stand-in ports (MAME nobb_inport*: 1C = 80, 02 = 0, 03 = the value last written to 04).
- rtl/boards/sys1/sys1_main.sv:362 nob: the reset vector's JP reads its target low byte as 80 (MAME nob_start_r: "likely M1-dependent behaviour")
- rtl/boards/sys1/sys1_main.sv:365 ------------------------------------------------------------ Shooting Master gun (MAME shtngmst_state) 10/11: gun output (bit 0 readies the trigger latch, 0 clears it; bit 2 solenoid), 12/13: ~(latch << 6), 18-1B: rotary offset switches (MA
- rtl/boards/sys1/sys1_main.sv:379 mahjong row counter: video-mode bit 1 rising steps it, modulo 7 (MAME dakkochn_state::videomode_w)
- rtl/boards/sys1/sys1_main.sv:417 vblank IRQ is held until the CPU acknowledges it (MAME HOLD_LINE)
- rtl/boards/sys1/sys1_sound.sv:6 From MAME sega/system1.cpp (sound_map, soundirq_gen, sound_data_r, SN76489A routes) and the Sega board docs.
- rtl/boards/sys1/sys1_sound.sv:7 Z80 (pool z80_1) at 4 MHz (8 MHz / 2), two SN76489A (pool sn76489[0] at 2 MHz, [1] at 4 MHz) whose READY lines hold the CPU (MAME input_merger -> WAIT; here the CPU clock enable waits for READY).
- rtl/boards/sys1/sys1_sound.sv:13 Mix as MAME: SN #1 x 0.40 + SN #2 x 0.60 (SN #1's output feeds SN #2's audio input through a resistor).
- rtl/boards/sys1/sys1_sound.sv:36 PPI port C bit 0 (MAME system_mute)
- rtl/boards/sys1/sys1_video.sv:6 From MAME sega/system1_v.cpp (the checking reference) and the Sega 834-5191 / 171-5054 board docs.
- rtl/boards/sys1/sys1_video.sv:10 System 2 (MAME screen_update_system2 / _rowscroll): 8 video RAM pages, foreground = page 0, background = 512 x 512 from 4 pages picked by vram[740/742/744/746], scroll x = vram[7C1:7C0] & 1FF - 502 (row scroll: one word per 8-line row from
- rtl/boards/sys1/sys1_video.sv:34 visible x 16-494 (MAME sys1ppis / sys1pios)
- rtl/boards/sys1/sys1_video.sv:73 one clock at the start of line 224 (MAME screen_vblank)
- rtl/boards/sys1/sys1_video.sv:74 one clock at the start of lines 32, 96, 160, 224 (MAME soundirq_gen)
- rtl/boards/sys1/sys1_video.sv:187 System 1 scroll: x = vram[FFD:FFC] + 28 (signed), y = vram[FBD]; flipped as MAME (640 - x, 764 - y, mod 512)
- rtl/boards/sys1/sys1_video.sv:263 tiledata = {hi, lo}: code = {D15, D10-D0}, color = D12-D5 (MAME tile_get_info); 16K planes hold 2048 tiles
- rtl/boards/sys1/sys1_video.sv:283 current ROM address (MAME int curaddr: bit 15 picks the nibble order)
- rtl/boards/sys1/sys1_video.sv:284 1 = address counts down (MAME: srcaddr bit 15)
- rtl/boards/sys1/sys1_video.sv:321 MAME sprxoffset: System 2 +14 / -14 flipped
- rtl/boards/sys1/sys1_video.sv:342 MAME: 0xFF in byte 0 ends the list
- rtl/boards/sys1/sys1_video.sv:428 MAME compute_resistor_weights: 3 bits (995 / 495 / 250 ohm) and 2 bits (495 / 250 ohm), auto-scaled
- rtl/boards/sys1/sys1_video.sv:435 MAME system1_palette with colour PROMs: 0x0e / 0x1f / 0x43 / 0x8f per bit
- rtl/boards/sys1/sys1_video.sv:459 MAME fills the screen with pen 0
- rtl/cpu/i8255/i8255.sv:6 Each MAME call is one clocked event here: set_mode, set_pc_bit, write_mode0/1/2, the read side effects of read_mode1 / read_mode2 (IBF, INTR and the input latch cleared at the END of the read cycle, so the CPU samples the latched byte), and
- rtl/cpu/i8255/i8255.sv:10 Port C pins are MAME output_pc, the port C read is read_pc.
- rtl/cpu/i8255/i8255.sv:11 Port A / B pins hold the last value MAME's out_pa / out_pb callbacks were given; an input port drives the TRI_* level (MAME tri_pX_callback: what the board sees from the floating TTL inputs).
- rtl/cpu/i8255/i8255.sv:13 Reset = set_mode(9B) as MAME device_reset.
- rtl/cpu/i8255/i8255.sv:13 MAME quirk kept: setting a mode with port A output sets IBF A.
- rtl/cpu/i8255/i8255.sv:48 MAME group_mode / port_mode / port_c_*_mode
- rtl/cpu/i8255/i8255.sv:113 MAME check_interrupt (mode 1: INTE && IBF / OBF; mode 2: INTE1 && OBF || INTE2 && IBF; mode 0: unchanged)
- rtl/cpu/i8255/i8255.sv:174 MAME: "correct?" (SAM Coupe sampler)
- rtl/cpu/mcs51/8051/control_mem_rtl.vhd:269 An 8751 has no data memory there (MAME i8751: internal RAM 00-7F), so the write now does nothing.
- rtl/cpu/mcs51/jtframe_8751mcu.v:21 Sega System 1/2 clocks T0 from the Z80's interrupt acknowledge (MAME system1 mcu_t0_callback).
- rtl/cpu/z80pio/z80pio.sv:7 Register select as MAME: ba_sel = A0 (0 = port A, 1 = port B), cd_sel = A1 (0 = data, 1 = control).
- rtl/cpu/z80pio/z80pio.sv:36 one clock: port A output value written (MAME out_pa_cb)
- rtl/cpu/z80pio/z80pio.sv:37 one clock: port B output value written (MAME out_pb_cb)
- rtl/mister_custom/controllers.sv:9 ctl_keyboard PS/2 keyboard -> MAME default keys (13 keys) + a per-core extra-key table ctl_mouse hps_io ps2_mouse -> event strobe, signed dx (right +) / dy (down +), buttons ctl_tick frame strobe (vblank rising edge) o
- rtl/mister_custom/controllers.sv:71 ctl_keyboard: MAME default keys from hps_io ps2_key (template cores' block).
- rtl/mister_custom/controllers.sv:285 ctl_coin_impulse: MAME PORT_IMPULSE(FRAMES) (Galaga-family block).
- rtl/mister_custom/controllers.sv:322 ctl_toggle: MAME PORT_TOGGLE - q flips on each rising edge of btn; clear (e.g. ioctl_download) zeroes it.
- rtl/mister_custom/controllers.sv:488 dir[n] = sign of the last change of output n (Atari trackball DIR flip-flop / MAME read_trackball).
- rtl/mister_custom/controllers.sv:601 ctl_paddle: absolute paddle position in [PMIN, PMAX] (MAME IPT_PADDLE).
- rtl/mister_custom/controllers.sv:690 ctl_dial_mame: MAME IPT_DIAL / IPT_TRACKBALL axis, a free-running 8-bit counter (MCR mcr_dial, itself from Pole Position's pp_steering).
- rtl/mister_custom/controllers.sv:691 MAME ioport analog_field units, sensitivity s = sens * 100 / 128 %: mouse s / 100 counts per count; spinner twice the mouse; held key keydelta * s / 100 counts per frame; stick (rate) 16 * s / 100 counts per frame at full deflection; stick
- rtl/mister_custom/controllers.sv:695 sens = MAME sensitivity * 128 / 100, keyd = MAME key delta (MRA bytes).
- rtl/mister_custom/controllers.sv:704 once per MAME frame
- rtl/mister_custom/controllers.sv:707 MAME PORT_REVERSE ^ OSD direction
- rtl/mister_custom/controllers.sv:781 ctl_ad_stick: MAME IPT_AD_STICK absolute axis (MCR mcr_inputs).
- rtl/mister_custom/controllers.sv:842 ctl_steer: steering counter (Pole Position pp_steering; MAME IPT_DIAL turned into ticks by a custom chip).
- rtl/mister_custom/controllers.sv:949 A held button ramps its pedal +RAMP per tick (frame) to FULL (MAME keyboard pedal), released = 0.
- rtl/segasys1_board.sv:6 One rbf for every sega/system1.cpp set; the board features are chosen at run time by MRA index-1 bytes 148-157 (tools/mra_cfg.py).
- rtl/segasys1_board.sv:83 ------------------------------------------------------------ CPU start The CPUs leave reset at the start of a frame, as MAME powers on with the CPUs and the video counters together.
- rtl/segasys1_board.sv:109 sound CPU, SN #1, SN #2 clock enables per MAME machine (byte 155)
- rtl/segasys1_board.sv:250 rom4-rom6: tile planes, ioctl 50000 / 58000 / 60000 (32K slots; 16K planes fill the lower half) myherok (MAME init_myherok, byte 156 [0]): the three tile ROMs have A4 / A5 swapped and data lines D0 / D6 (planes 0, 2) or D1 / D5 (plane 1) sw
- rtl/segasys1_board.sv:290 ------------------------------------------------------------ 8751 MCU (jotego jtframe_8751mcu, Oregano mc8051) 8 MHz (MAME SOUND_CLOCK), divided by 12 inside.
- rtl/segasys1_board.sv:291 MAME system1 mcu(): INT0 = vblank, INT1 = video-mode bit 6 (low asserts), T0 clocked by the Z80's interrupt acknowledge, P1 = control.
- rtl/segasys1_board.sv:299 80 MHz / 9 = 8.89 MHz, not / 10: the Oregano core needs more clocks per instruction than a real 8751 (jotego's note); at 8 MHz Choplifter's start-up ROM check ran 551 MOVX per frame against MAME's 619 and released the Z80 ~40 frames late
- rtl/segasys1_board.sv:305 MAME GUNY 10-F0, reversed: content row 0 (top) -> F0, row 223 -> 11
- rtl/segasys1_board.sv:313 REVERT-2026-10-20: original below, uncomment to restore and delete the block after it assign z80_0_busrq_n = ~(cfg_mcu && !cfg_nob && !mcu_rst && mcu_p1[6]); // a MOVX started before the Z80 has let go of its bus waits for BUSAK wire
- rtl/segasys1_board.sv:341 The Oregano core reads the pins for PUSH and byte RMW (a real 8751 reads the latch), so with FF here Choplifter's push p1 / pop p1 left P1 = FF (BUSREQ, MOVX mode 3) and its page-select writes were lost; nob's status read FF / 7F instead of
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 3
- rtl/boards/sys1/sys1_main.sv:201 jtmc8123 takes the key inverted and has no pass-through: MAME decrypt_internal inverts the key and returns the byte unchanged for a key of FF (checked exhaustively against MAME's transcription in verilator/mc8123_cmp/)
- rtl/cpu/segacrypt/sega_decrypt.sv:6 GENERATED by tools/gen_sega_decrypt.py from MAME devices/machine/segacrpt_device.cpp and segacrp2_device.cpp (the tables are MAME's; checked there against a port of MAME's decode() on every chip / row / data byte).
- rtl/cpu/z80pio/z80pio.sv:6 Written from the Z80 PIO technical manual, checked against MAME devices/machine/z80pio.cpp.
MAMEから移植・書き写した、または取り入れたと記載 — 3