← コア一覧
gaelco3d (decoryah)
MAMEのドライバにない実基板の資料を引用 — 1
- rtl/g3d_pixel.sv:30 16 MB texture ROM (Speed Up, Surf Planet): addresses wrap at 16M, quarters of 4 MB
MAMEのソースを引用 — 99
- Gaelco3D.sv:3 Gaelco 3D (MAME's gaelco/gaelco3d.cpp) for MiSTer -- work in progress.
- Gaelco3D.sv:10 - the rasterizer player: index 0 also carries a capture of what MAME's game sent to the rasterizer (tools/g3d_mklist.py from tools/lua/capture.lua), rendered frame after frame.
- Gaelco3D.sv:351 Inputs (MAME's speedup ports).
- Gaelco3D.sv:353 Gear toggles at each press (MAME: PORT_TOGGLE).
- Gaelco3D.sv:375 Surf Planet (MRA index 3 = 1, MAME's surfplnt ports): start, coin, the test switch (Service); the board's tilt is the wheel's input; no pedal (MAME reads its absent analog port as 0).
- Gaelco3D.sv:378 The 68EC020's ports are 32 bits: these are their high halves (MAME's radikalb / footbpow).
- Gaelco3D.sv:380 Football Power: two players' sticks (MAME's ANALOG0-3: Y reversed, X), directions, Dribbling (Gas), Defense (Brake).
- Gaelco3D.sv:448 Speed Up's bits 7:0 are not in MAME's port: 0
- Gaelco3D.sv:480 The file holds each word low byte first (as MAME's eeprom file).
- rtl/adsp_core.sv:1 ADSP-2115 (as MAME 0.289's adsp2100.cpp / 2100ops.hxx runs it: an ADSP-2101-family chip, no 218x extensions), one instruction at a time in a few clocks: fetch, the loop check MAME does at fetch, then the instruction in MAME's order (memory
- rtl/adsp_core.sv:4 The reference is tools/ref/adsp (MAME's code on its own); sim/adsp compares the two instruction by instruction.
- rtl/adsp_core.sv:8 The serial port's transmit registers go out on tx_* (the board's autobuffer model); ext_* let the board read I / M / L and set an I register between instructions (MAME's set_state_int).
- rtl/adsp_core.sv:43 I / L register ext_isel, M register ext_msel (values as MAME's state_int)
- rtl/adsp_core.sv:78 ---- registers: two banks of the core set (MAME swaps m_core / m_alt when MSTAT's bank bit changes) ----
- rtl/adsp_core.sv:81 MAME's 64-bit union: mr0, mr1, mr2, and 16 bits above
- rtl/adsp_core.sv:86 the live bank: MSTAT's bank bit (MAME swaps the sets; here the bit picks one)
- rtl/adsp_core.sv:91 sign-extended 14 bits (MAME keeps int32; every use takes 16 bits or masks 14)
- rtl/adsp_core.sv:95 MAME's m_loop != 0xffff
- rtl/adsp_core.sv:100 MAME's m_irq_latch[0..5]
- rtl/adsp_core.sv:134 MAME's m_mask_table
- rtl/adsp_core.sv:208 register group reads (MAME's read_reg0..3; group 3's PC-stack pop is done by the FSM).
- rtl/adsp_core.sv:208 Values are int32 in MAME; 16 bits are all anything keeps
- rtl/adsp_core.sv:219 ---- the ALU, the MAC, the shifter (MAME's alu_op_*, mac_op_*, shift_op*) -------------------------------------------
- rtl/adsp_core.sv:409 EXPADJ: MAME's res is a uint32_t, so its compare with -SB is unsigned
- rtl/adsp_core.sv:420 ---- the FSM ----------------------------------------------------------------------------------------------------------- X_IDLE (interrupts at MAME's timeslices; the board's I writes; the loop check MAME does at fetch) -> [X_FETCH, X_LOOP:
- rtl/adsp_core.sv:481 the condition, with CE's counter step (MAME's condition(14): (int32)--cntr > 0, else the counter stack pops)
- rtl/adsp_core.sv:498 MAME's m_lmask: the circular buffers' base masks, kept with L
- rtl/adsp_core.sv:537 MAME's pc_stack_pop_val: the entry at sp - 1 (sp 0: entry 0)
- rtl/adsp_core.sv:862 ---- the fetch: the word at PC, MAME's loop check ----
- rtl/g3d_eeprom.sv:1 The 93C66 serial EEPROM in 16-bit mode (256 words), as MAME's eeprom_serial_93cxx_device with streaming reads: a start bit, a 2-bit opcode and an 8-bit address on rising clocks; READ gives a dummy 0, then the words MSB first (on into the ne
- rtl/g3d_eeprom.sv:99 a word's first bit fetches it (MAME: shift register = the word, its MSB out now); then shift in 1s
- rtl/g3d_fp.sv:3 They reproduce what MAME's x86-64 build computes (SSE, no FTZ / DAZ, no fused multiply-add), which g3d_model.h relies on.
- rtl/g3d_main.sv:1 The main CPU of Speed Up / Surf Planet: the 68000 at 15 MHz (fx68k on fractional phase enables from the 96 MHz clock) with MAME's gaelco3d_state::main_map: 0x000000-0x1fffff program ROM (SDRAM) 0x400000-0x40ffff palette RAM (SDRAM); every
- rtl/g3d_main.sv:126 bits 1:0 the cabinet link's status: MAME alone reads them as 11 (all four games; 20261101's 01 kept three from booting)
- rtl/g3d_main.sv:196 an LS259: its outputs act when they change (MAME's callbacks)
- rtl/g3d_main.sv:225 the reset clears the latch: its analog-latch output going low loads the ports (MAME reads them so at power-on)
- rtl/g3d_main.sv:230 ---- the phase enables ---- MAME's 68000 has no wait states.
- rtl/g3d_main020.sv:1 The main CPU of Radikal Bikers / Football Power: the 68EC020 at 25 MHz (TG68K.C in 68020 mode, on a 16-bit bus: a long word is two bus cycles) with MAME's gaelco3d_state::main020_map.
- rtl/g3d_main020.sv:13 TG68K's clocks per 96 of ours (MAME's 68020 has a cache and a 32-bit bus;
- rtl/g3d_main020.sv:137 bits 1:0 the cabinet link's status: MAME alone reads them as 11 (all four games; 20261101's 01 kept three from booting)
- rtl/g3d_main020.sv:234 a long word's two halves are one entry, as MAME's 32-bit write is
- rtl/g3d_main020.sv:315 Football Power's trap #1 (its handler at 0x184 is the debugger stub, which waits for a host on the parallel port, or Start: the game reaches two leftover breakpoints in play, 0x792 and 0x83ea, and froze in MAME too, at frame 2155 after a co
- rtl/g3d_pixel.sv:1 Pixel pipeline: spans in, Z and colour of one band written, as gaelco3d_v.cpp's render_normal / render_alphablend / render_noz_noperspective do per pixel (float32, MAME's operation order; tools/ref/g3d_model.h).
- rtl/g3d_pixel.sv:71 They share the three attribute adders: each slot's sum comes back exactly when that slot's next pixel issues (latency 4), so every attribute is still accumulated pixel after pixel, as in MAME.
- rtl/g3d_pkg.sv:8 span modes (gaelco3d_v.cpp): no Z / no perspective, normal, 50 % alpha
- rtl/g3d_player.sv:5 A list's first frames may draw nothing (Speed Up's power-on): MAME shows black there.
- rtl/g3d_scanout.sv:1 Scan-out: 576 x 432 from a DDR3 frame buffer (432 lines of 256 beats, xRGB555, 4 pixels a beat), shown flipped vertically as MAME's screen_update does (copybitmap with flipy).
- rtl/g3d_setup.sv:3 It is gaelco3d_v.cpp's render_w / render_poly and poly.h's render_triangle, in the same float32 operations and the same order (tools/ref/g3d_model.h): an FSM for the control flow (polygon assembly, vertex parsing, triangle sort, clipping, t
- rtl/g3d_setup.sv:10 Vertex coordinates are half-integers, kept as integers in half units (exact, as in MAME).
- rtl/g3d_setup.sv:12 Commands: 0 = render-port word, 1 = palette write (applied once every earlier pixel is drawn, as MAME's wait()), 2 = end of the list (vblank: a half-received polygon is dropped).
- rtl/g3d_setup.sv:74 Every operation and its operands are MAME's, in MAME's order per chain.
- rtl/g3d_setup.sv:254 render words received (MAME's m_polydata_count)
- rtl/g3d_setup.sv:824 no triangle, or no scanline of the polygon in this band: nothing to draw (every triangle would be clipped away; MAME's float setup has no other effect)
- rtl/g3d_sound.sv:1 The sound board as MAME 0.289's gaelco3d.cpp has it: the ADSP-2115 (rtl/adsp_core.sv) at 16 MHz, its program booted from the sound ROM at reset (MACHINE_RESET_MEMBER(common): word (src[3] & 0xff) * 8 instructions of 3 bytes, the low bytes o
- rtl/g3d_sound.sv:6 The DACs: MAME's autobuffer model (adsp_tx_callback / adsp_autobuffer_irq): a write to TX1 with SPORT1 and autobuffer on takes I / M / L (the autobuffer's registers), backs I up by M, and from then on every buffer's worth of samples (16 * 4
- rtl/g3d_sound.sv:198 IRQ1: up for the ADSP's next interrupt check (MAME's pulse is taken at once)
- rtl/g3d_sound.sv:262 adsp_autobuffer_irq: the frames from MAME's (I - 0x3800) / 2 (C's division), I back to the base, IRQ1
- rtl/g3d_sound.sv:301 ---- out: Speed Up's rear L / R, seat and front; the others' four channels in mono (MAME: 0.45 each) ---- The bass boost adds a one-pole low pass (1/16 a step at 20833 Hz: a corner of about 210 Hz; twice it was boomy: board, 20261029g).
- rtl/g3d_sound.sv:303 The cabinets' speakers and amplifiers made up for the thin mix (MAME sounds the same: board, 20261029f); the volume then scales it.
- rtl/g3d_tms.sv:1 The TMS320C31 subsystem: the pipelined core (tms_pipe) on its own clock with the board's memory as gaelco3d.cpp maps it for the TMS (word addresses): 0x000000-0x000fff reads: the boot loader (MCBL mode: MAME's tms320c31 internal ROM), from
- rtl/g3d_tms.sv:281 MAME's device_reset
- rtl/tms_fpu.sv:1 TMS320C31 floating point as MAME 0.289 computes it (tools/ref/tms_fp_model.h, from 320c3x_ops.ipp's integer code): FLOAT, FIX, NEGF, ADDF, SUBF, MPYF, NORM, each returning the result register and the status flags it sets.
- rtl/tms_fpu.sv:71 ADDF / SUBF: the mantissas with their hidden bit (33 bits), the one with the smaller exponent shifted (MAME's int64 arithmetic: the sum fits 34 bits)
- rtl/tms_fpu.sv:106 -1 gives 32: MAME's int32 shift by 32 is no shift on x86
- rtl/tms_pipe.sv:1 TMS320C31 as MAME 0.289 runs it, in a pipeline (rtl/tms_core.sv has the same semantics one instruction at a time; the reference is tools/ref/tms, MAME's own core on its own): F the fetch address: MAME's repeat-block check (RPTB / RPTS), a
- rtl/tms_pipe.sv:23 MAME's quirks as tms_core.sv keeps them.
- rtl/tms_pipe.sv:23 Not here: timers, DMA, serial port, bit-reversed addressing, LDII / STII etc., a branch in a delayed branch's slots (MAME nests them; real code doesn't).
- rtl/tms_pipe.sv:44 bench: an instruction retired (MAME's execute_one), the whole register file, MAME's pc after it; and a record of every memory access it made in MAME's order, the fetch first (an interrupt's trap: a record of its own, tr_v without retire)
- rtl/tms_pipe.sv:56 MAME's pc at the boundary before it
- rtl/tms_pipe.sv:316 the addressing units' AR updates as MAME orders them (a parallel instruction's first operand updates its AR last)
- rtl/tms_pipe.sv:506 ---- integer helpers, as MAME's macros (as tms_core) ---------------------------------------------------------------------
- rtl/tms_pipe.sv:527 (MAME's carry: ADDC's 33rd bit, else a > r: the same, cin being 0 then)
- rtl/tms_pipe.sv:540 (MAME's borrow: a < b + bin for SUBB, else b > a: the subtraction's 33rd bit both, bin being 0 then)
- rtl/tms_pipe.sv:617 MAME's m_r[n].i32[0]: integer / mantissa
- rtl/tms_pipe.sv:626 MAME's m_bkmask (set when BK is written)
- rtl/tms_pipe.sv:679 MAME's pc at the boundary before it (before the repeat check): an interrupt returns here
- rtl/tms_pipe.sv:726 AR updates in MAME's order (ar1 last)
- rtl/tms_pipe.sv:1742 interrupt lines: MAME's execute_set_input (a change asserts IF for an asserted line; level re-latch)
- rtl/tms_pipe.sv:1790 a fetch from outside (only with nothing in flight: the bus sees MAME's order)
- rtl/tms_pipe.sv:2035 MAME's m_bkmask follows BK only through update_special, which FIX and MPYF don't call
- rtl/tms_pipe.sv:2105 E1's new instruction's AR / SP updates into the shadows (after E3's writes: it is younger), and the repeat step MAME takes before it (RC; RPTS's end; RM below, with ST's other writes)
- rtl/tms_pkg.sv:1 TMS320C31 pieces shared by the core and its benches, written as MAME 0.289's 320c3x_ops.ipp does them.
- rtl/tms_pkg.sv:5 Indirect addressing (MAME's s_indirect_d / s_indirect_1 tables): mode = op field bits 7:3 of the 8-bit operand field, disp = the 8-bit displacement (or 1 for the parallel instructions' implied displacement), ar = ARn's value.
- rtl/tms_pkg.sv:7 Returns the address MAME reads or writes (all 32 bits: the bus takes 24) and ARn's new value (upd: ARn is written).
- rtl/tms_pkg.sv:8 0x19 (bit-reversed) is MAME's unimplemented() and 0x1a-0x1f illegal (address 0, as MAME's modillegal): ill is set.
- rtl/tms_pkg.sv:32 *ARn++(d)%: MAME's c = (ar & bkmask) + d, then if ((uint32)c >= bk) c -= bk: cs = the 33-bit sum, ct = cs - bk (with cs past 32 bits the wrapped sum is cs - 2^32).
- rtl/tms_pkg.sv:42 the address: pre-index / pre-modify modes ar + dd, the others ar (0x18, the post-modify ones; 0x19 too, MAME's unimplemented()), 0x1a-0x1f MAME's modillegal: 0
- rtl/tms_pkg.sv:70 MAME's condition_table: bit c of entry (ST & 0x7f) says whether condition c holds (0 U, 1 LO, 2 LS, 3 HI, 4 HS, 5 EQ, 6 NE, 7 LT, 8 LE, 9 GT, 10 GE, 12 NV, 13 V, 14 NUF, 15 UF, 16 NLV, 17 LV, 18 NLUF, 19 LUF, 20 ZUF; 11 and 21-31 never)
- README.md:3 Gaelco's 3D arcade board of 1996-1999, the four games of MAME's `gaelco/gaelco3d.cpp` driver, for the MiSTer FPGA platform:
- README.md:25 These pictures come from MAME 0.289 (`tools/lua/snap.lua`): the title screens from attract mode, the others from a race or match started with a coin and Start.
- README.md:27 The core's rasterizer draws the same pixels as MAME in simulation (see "How it was checked").
- README.md:82 All benches run in WSL with Verilator (`sim/*/run.sh`, all at once: `sim/run_all.sh`), against MAME 0.289:
- README.md:84 The rasterizer (`rtl/g3d_raster.sv`) against `tools/ref/g3d_model.h`, MAME's renderer written out literally (float32 in MAME's operation order): frame buffer an
- README.md:85 `tools/lua/capture.lua` records what MAME's games send to the rasterizer.
- README.md:87 The TMS320C31 (`rtl/tms_core.sv`, pipelined as `rtl/tms_pipe.sv` at 80 MHz) against MAME's own TMS core on random programs (`tools/ref/tms`) and against the gam
- README.md:90 The whole game hardware from power-on (`sim/core`: main CPU, TMS subsystem, SDRAM model, display-list writer, sound board): its display lists against MAME's, en
- README.md:95 The design and the memory plan are in `docs/design.md`, the hardware as MAME describes it in `docs/hardware.md`.
- README.md:117 **MAME** (the gaelco3d driver and its renderer, the TMS320C3x, ADSP-21xx and serial EEPROM by Aaron Giles; the board's serial link by Couriersud; BSD-3-Clause):
- README.md:128 `tools/mra_build.py` is from plasticbugs' Analogue Pocket Gaiapolis core (GPL-3.0); the `sys/` framework is MiSTer's (GPL); `tools/ref/tms` has MAME's TMS320C3x
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 4
- Gaelco3D.sv:12 The rasterizer (rtl/g3d_raster.sv) is bit-exact with MAME 0.289 in simulation.
- rtl/adsp_core.sv:9 Interrupts are checked where MAME checks them (IMASK / ICNTL / IFC writes, RTI and status pops) and before an instruction when irq_poll is set (MAME: at its timeslices); force_irq takes interrupt force_indx there (a bench following MAME's t
- README.md:15 Written for MiSTer from MAME 0.289's driver: the main CPU (68000: [fx68k](https://github.com/ijor/fx68k), Jorge Cwik; 68EC020: TG68K, Tobias Gubener), the TMS32
- README.md:118 The TMS320C31 and ADSP-2115 cores and the rasterizer were checked against MAME's.
MAMEドライバと同じ文言を含む(出典の明記なし) — 1