← コア一覧
KonamiM2Heat (decoryah)
MAMEのソースを引用 — 103
- KonamiM2.sv:3 Konami M2 (MAME's konami/konamim2.cpp) for MiSTer -- work in progress.
- KonamiM2.sv:7 For now this is the CPU bring-up (rtl/m2_boot.sv): ppc1 runs the boot ROM (downloaded by the MRA into DDR3) at 66.67 MHz, with main RAM in DDR3 and the board's registers as stubs, and the picture's shown in a raster near the NTSC timing MAM
- KonamiM2.sv:241 the DIP switches (the MRA's <switches>, ioctl index 254): byte 0 is IO1 2, MAME's P2: bit 0 the sound, 1 mono, bit 1 the screen, 0 flipped; stereo by default
- KonamiM2.sv:348 The raster: 857 x 262 at 59.39 Hz, 640 x 240 shown (near MAME's set_ntsc(); rtl/m2_vtiming.sv); with the board byte's bit 4 (Hell Night's), the arcade monitor's, 673 x 416 at 59.53 Hz, 512 x 384 shown (MAME's set_arcres() rates)
- rtl/m2_atapi.sv:1 m2_atapi: the CD drive: enough of an ATAPI drive for what MAME's boot asks of its CR-589 (work/atad2.py decodes a capture).
- rtl/m2_atapi.sv:18 A data READ stops the audio, as MAME's drive (t10mmc abort_audio).
- rtl/m2_atapi.sv:20 PLAY AUDIO (rtl/m2_cdda.sv plays it) looks for its track in that table, for READ SUB-CHANNEL's answers; those are made up in the buffer's end, and as MAME's drive gives them.
- rtl/m2_atapi.sv:21 MODE SELECT's volumes fade the music; PAUSE stops it where it is; REQUEST SENSE says how the play goes, as MAME's.
- rtl/m2_atapi.sv:146 (past the end, position 0 and the first track, as MAME's)
- rtl/m2_atapi.sv:229 the fetcher: 4 KB at a time from the ring's end while there's room (not while the audio plays: it has the SD port then; a READ stops the audio, as MAME's drive)
- rtl/m2_bda.sv:1 m2_bda: the BDA's registers that aren't a unit of their own yet, what MAME 0.289 makes of them (3dom2.cpp): the PowerBus controller and its interrupts (0x00010000), the memory controller (0x00020000), and the VDU's line and line interrupts
- rtl/m2_bda.sv:3 ppc1 takes the PowerBus interrupt; ppc2's comes from the memory controller's GPIO 3 (inverted), which is how ppc1 starts it (konamim2.cpp).
- rtl/m2_bda.sv:12 MAME 0.289's ((line + 20) % 260) + 1 is 20 lines early (VLOC 1 on the line 240, inside the picture): Polystars then clears the buffer it showed before its last rows are read, and a fast clear's first pixel, the last row's left end, got ther
- rtl/m2_boot.sv:1 ppc1 and ppc2 (rtl/ppc_pipe.sv, the float units between them: rtl/ppc_fpx.sv) run the boot ROM from DDR3, with main RAM in DDR3 too; the CDE (rtl/m2_cde.sv) is there, and the other registers the boot ROM touches are plain registers that kee
- rtl/m2_boot.sv:14 Each CPU reaches memory through its caches (rtl/ppc_cache.sv), which see every write the others make, so memory is coherent, as MAME's is.
- rtl/m2_boot.sv:429 the registers whose reads MAME 0.289 makes constants (3dom2.cpp): CPUID (which CPU, and the DSW's video resolution: bit 30 set for Low Res, the TV's raster; clear for High Res, the arcade monitor's, with arc)
- rtl/m2_boot.sv:472 (5: 8 MB, 2: 4 MB, as MAME's ramsize_to_mcfg_field)
- rtl/m2_boot.sv:578 the mix, as MAME's: the DSP at full, the CD at half and at the game's volume
- rtl/m2_boot.sv:593 the YMZ280B (Evil Night's sub board): its samples are in DDR3, its registers at 0x3e800000, the select at +0 and the data at +2, a byte in bits 15:8 of a 16-bit access, as the game makes them (MAME's unit mask allows the byte lanes of any s
- rtl/m2_cde.sv:1 m2_cde: the CDE, what MAME 0.289 makes of it (3dom2.cpp): its registers (slot 4, 0x04000000; +0x400 clears the bits given, on the ones that have it), and its two DMA channels, from the BioBus to memory.
- rtl/m2_dspp.sv:1 m2_dspp: the BDA's audio DSP ("Don's Super Performing Processor"), as MAME 0.289's dspp.cpp has it: a program of 16-bit words, 1K of them, working on 1K of 16-bit data with registers in it, FIFOs of samples filled by DMA, and two words a fr
- rtl/m2_dspp.sv:2 It doesn't need MAME's speed: the OS's program spends 90 % of its time waiting for room in the output FIFO, so a word takes a few clocks here.
- rtl/m2_dspp.sv:589 written at the place it's read from, as MAME
- rtl/m2_guns.sv:1 m2_guns: Evil Night's three light guns, MAME 0.289's konami_io0_r and INPUT_PORTS (evilngt); taken from the owner's Slap Shot core (rtl/ss_guns.sv, itself after the owner's Seta 2 core and ppriest's gx_guns.sv), the ports' scale, a third pl
- rtl/m2_guns.sv:15 The ports: X 0..639, Y 0..239, as MAME's; on the arcade monitor (arc: Hell Night) X 0..511, Y 0..383, as MAME's hellngt.
- rtl/m2_guns.sv:16 To reload, P1's and P3's guns are aimed up (a mercury switch, in MAME the top edge of the picture: here within the edge, in lines, half as many on the TV's raster), P2's has a button: Button 2 does each of these.
- rtl/m2_guns.sv:35 MAME's P5, the switches, as it's read
- rtl/m2_guns.sv:123 (aimed up reads 0: MAME's field is IP_ACTIVE_LOW, and a port's read inverts its custom fields as it does its buttons)
- rtl/m2_kio.sv:1 m2_kio: Konami's I/O on the BioBus, what MAME 0.289 makes of it (konamim2.cpp): the inputs (0x37e00000, IO1), the 003461's serial data register (0x37c0001e), the gun ports (0x37a00020, Evil Night's) and the 93C46 EEPROM (0x37400000).
- rtl/m2_kio.sv:22 the guns, as MAME's: 0 if off the screen (rtl/m2_guns.sv)
- rtl/m2_mpeg.sv:1 m2_mpeg: the BDA's MPEG unit, its control only, as the M2 emulator's (3dom2.cpp m2_mpeg_device) without the pictures: the registers, the video bitstream's DMA (the current and next buffers), the start codes, and the interrupts.
- rtl/m2_te.sv:1 m2_te: the BDA's Triangle Engine, what MAME 0.289 makes of it (3dom2_te.cpp), the same sums wherever they show in the pixels:
- rtl/m2_te.sv:3 the list instructions from memory at IRP: register writes (a line buffer's worth of memory at a time) and vertices setup a triangle's slopes in single precision, the same order of operations as MAME's C (te_fadd, te_fmul); X an
- rtl/m2_te.sv:11 A value that a span's first pixel has made negative goes to the texture sums as if 0, where MAME's are unsigned.
- rtl/m2_te.sv:351 a compressed load (BDA spec 6.8.8.1, as MAME's M2 driver has it): source bits, MSB first, in cx_acc's low cx_n bits; texels out, packed MSB first into whole words, in cx_out's low cx_on bits.
- rtl/m2_te.sv:881 The filter: the magnify one, or with more than a texel between this pixel and the next, the minify one (the BDA spec's; MAME 0.289 only ever read the magnify filter).
- rtl/m2_te.sv:926 (MAME's comparison: its names for the bits are the other way round)
- rtl/m2_te.sv:1781 the packer, a clock behind the decoder: the texel's bits at the top of cx_pv, put in after the cx_on bits at the top of cx_out; a word's the top 32 when there are 32 (and what's left at the end, padded with zeros, as MAME's)
- rtl/m2_tk.sv:1 m2_tk: the boards' M48T58 timekeeper: 8 KB of battery-backed RAM whose last eight bytes are a clock (ST's M48T58 data sheet; MAME 0.289's timekpr.cpp).
- rtl/m2_vdu.sv:1 m2_vdu: the VDU, what MAME 0.289 makes of it (3dom2.cpp, screen_update), a line at a time: it follows the display list (VDL) from FV0A, a block of lines at a time, each block a header (DMA control, the frame buffer's address, the next block
- rtl/m2_vdu.sv:5 Places are MAME's: a line's x from 0 at the start of a 768 pixel line, shown from 126; lines from 0, shown from 20, to 259.
- rtl/m2_vdu.sv:5 With arc (the arcade monitor's raster, set_arcres(): rtl/m2_vtiming.sv), x shown from 104 and lines from 26 to 409, as MAME's visible area.
- rtl/m2_vdu.sv:7 The VDU's other features (interpolation, dither, the second field) MAME doesn't draw, and nor does this.
- rtl/m2_vdu.sv:14 the registers: writes (reads are 0, as MAME's; VLOC and VINT are rtl/m2_bda.sv's)
- rtl/m2_vdu.sv:20 from 0 where a line starts being shown: pixels shown from MAME's x 126
- rtl/m2_vdu.sv:21 from 0 where a frame starts being shown: MAME's line - 20
- rtl/m2_vdu.sv:35 MAME's m_vtotal (the list's lines), m_vstart (the first shown), m_hstart, and the raster's last line
- rtl/m2_vtiming.sv:2 Near MAME's konamim2 set_ntsc() (768 x 262 at 59.36 Hz, a pixel clock of 11.944 MHz), but an even divide: the first build's fractional clock enable (pixels 5 or 6 clocks apart) made the letters' edges jitter on the board.
- rtl/m2_vtiming.sv:7 With arc (the board byte's bit 4: Hell Night's), the arcade monitor's raster, MAME's set_arcres() (684 x 416, 512 x 384 shown from (104, 26), a pixel clock of 16.93 MHz, 24.76 kHz, 59.52 Hz): here 673 x 416, 512 x 384 shown from (104, 26),
- rtl/m2_ymz280b.sv:1 m2_ymz280b: the Yamaha YMZ280B of Evil Night's sub board, MAME 0.289's device (sound/ymz280b.cpp, BSD-3): eight voices of ADPCM or PCM from a ROM, each resampled by a linear interpolator to the chip's 88.2 kHz (its 16.9344 MHz / 192).
- rtl/m2_ymz280b.sv:5 As MAME's stream, with a sample at a time: what's written between two ticks is acted on before the next tick's round.
- rtl/m2_ymz280b.sv:5 What MAME does for the rest of a stream update once a voice has ended (it ramps down, by 15/16 a sample, as far as that update goes) is done here until it reaches zero: the update's length is MAME's. The IRQ isn't here: nothing on the board
- rtl/m2_ymz280b.sv:7 The DSP registers aren't in MAME either.
- rtl/m2_ymz280b.sv:50 at 44.1 kHz: the mean of two rounds, at MAME's route of 0.5
- rtl/m2_ymz280b.sv:53 what the round added up: MAME's stream, times 32768 * 256
- rtl/m2_ymz280b.sv:466 (MAME's order: the latch from the address, then on)
- rtl/ppc_cache.sv:1 Lines of 32 bytes, KB each side, the instructions direct-mapped, the data two ways of KB / 2 with LRU (32: in stage 1 a quarter of 8 KB direct-mapped's instruction misses, half its data misses, on MAME traces), indexed by the virtual addres
- rtl/ppc_cache.sv:7 So memory is coherent, as in MAME, and dcbi and the like can stay what they are there, no-ops.
- rtl/ppc_fpu_pkg.sv:6 the same in double steps, then a round to single (MAME's PPCDRC_ACCURATE_SINGLES); F_RES: 1 / b in single
- rtl/ppc_fpu_pkg.sv:406 rnd_d's double (sign sd), then that rounded to single (sign ss: fnmadds negates between the two), as a double: MAME's two rounds at once.
- rtl/ppc_fpu_pkg.sv:408 A result under the single normals (e < -126) is a zero: the single denormals, which MAME would make, are left out.
- rtl/ppc_pipe.sv:11 Then: no TLB-miss exceptions (0x1000, 0x1100, 0x1200); an access no BAT maps with HID0[PO] clear and translation on takes DSI (DSISR 0x40000000, "not found", | 0x02000000 for a store) or for a fetch ISI (SRR1 0x40000000), as a PowerPC whose
- rtl/ppc_pipe.sv:67 the FP-unavailable exception (0: none, as MAME has it, for sim/ppcreplay's replay of its traces)
- rtl/ppc_pipe.sv:130 bench: while held, take an interrupt now (where MAME took it): 1 external, 2 decrementer
- rtl/ppc_pipe.sv:165 the SPRs this core keeps, by MAME's number.
- rtl/ppc_pipe.sv:165 Not kept (read 0, writes ignored, as any other SPR number): EAR 282, 346, 1011 and 1013, which MAME keeps and a 602 doesn't have (user's manual 2.1: EAR not implemented).
- rtl/ppc_pipe.sv:168 Those nothing but mfspr reads and nothing but mtspr (or the bench) writes are in xr_mem, not sprv (their slots constants too): SPRG0-3, IMISS, ICMP (mtspr leaves both alone, as MAME), RPA, TCR, SEBR, SER, HID1, IABR, SP, LT
- rtl/ppc_pipe.sv:296 BAT / protection-only translation (MAME's ppccom_translate_address_internal for a 602); type 0 read, 1 write, 2 fetch
- rtl/ppc_pipe.sv:332 MFSPR (MAME's ppccom_execute_mfspr for a 602)
- rtl/ppc_pipe.sv:1204 Written by X's mtsr / mtsrin / mtspr as it takes them (an mtspr of IMISS or ICMP does nothing, as MAME's), or the bench's load (while rst, or held; the clock's block's dbg_write conditions); read by X's mfsr (op's SR) and mfspr (its entry:
- rtl/ppc_pipe.sv:1709 (MAME's: its first time through zero is a whole count away)
- rtl/ppc_pipe.sv:2049 the update form's rA wins over rD (MAME writes it last)
- rtl/ppc_pipe.sv:2236 cache, TLB, sync: nothing in MAME (tlbia, 0x172, MAME's too, is illegal on a 602: user's manual table B-1)
- rtl/ppc_pipe.sv:2305 as MAME: (tb & ~0xffffffff00000000) | v and (tb & ~0x00000000ffffffff) | v << 32
- rtl/ppc_pipe.sv:2338 out to a float unit (fpp_issue, fpu_start); with Rc, but for fctiwz, CR1 is FPSCR's top (MAME), which they don't change
- rtl/ppc_pipe.sv:2345 FSEL: c if a >= 0.0 (not NaN, and positive or a zero), else b; no CR1 even with Rc (MAME)
- rtl/ppc_pipe.sv:2359 these leave CR1 alone even with Rc (MAME)
- rtl/ppc_pipe.sv:2364 the rounding mode the float unit uses (fmode) follows FPSCR[RN] only through these, as MAME's host mode does (mcrfs clearing RN leaves it)
- rtl/ppc_pipe.sv:2399 lsw clears each register before its first byte is read (MAME), even when the read faults
- README.md:3 A MiSTer FPGA core for Konami's M2 arcade board (1997-1998), the 3DO M2 hardware of MAME's `konami/konamim2.cpp` driver.
- README.md:9 Written from MAME 0.289's driver and its `3dom2.cpp` / `3dom2_te.cpp` devices, with MAME as the reference; the platform layer and the way each block is checked
- README.md:48 Battle Tryst's pictures are screenshots from a MiSTer; the others are from MAME 0.289.
- README.md:50 No ROMs or CD images are in this repository; you supply your own MAME sets.
- README.md:52 **Status.** All six games are supported, tested and working on a real MiSTer, with their music and sound effects: every game of MAME's Konami M2 driver, Total V
- README.md:77 | Total Vice (ver JAD, AAB, UAC, 1997) | `totlvicj`, `totlvica`, `totlvicu` | not supported: not working in MAME 0.289 |
- README.md:101 Make each game's disc files from the CHD in your MAME 0.289 set.
- README.md:118 **Or with this repository's `tools/m2disc.py`** (Python 3 and MAME's `chdman`, nothing else).
- README.md:130 `chdman` comes with MAME.
- README.md:130 If it isn't on the PATH, give it after the CHD; on Windows, for example, `py tools\m2disc.py totlvice\639eba01.chd C:\mame\chdman.exe`.
- README.md:138 **Polystars' music:** MAME marks `623jaa02.chd` as a bad dump: its music has 28 stretches of 0.35 s of silence, where the ripper's reads failed, 16 of them in t
- README.md:276 The EEPROMs in Evil Night's, Hell Night's and Total Vice's MAME sets hold the factory sound volume, which is just as quiet in MAME (Evil Night and Hell Night 12
- README.md:283 In MAME, Battle Tryst writes coin counts there on every coin, and Heat of Eleven's match lighting follows the clock's time of day; both games' service menus sho
- README.md:297 Its line and frame rates are MAME's within 0.1 %: 24.77 kHz and 59.53 Hz.
- README.md:299 **In MAME:** MAME 0.289 marks Battle Tryst and Heat of Eleven '98 as preliminary.
- README.md:305 From power-on, in simulation (`sim/m2boot`), the machine loads the OS from the CD image and shows the same boot checks and title screen as MAME.
- README.md:309 The video line count the M2 OS reads (VLOC) against the OS's own display code, followed in MAME's debugger: Polystars takes its picture line p to the count p +
- README.md:314 The CPUs against MAME's instruction traces (`sim/ppcreplay`) and against a reference model with random programs and interrupts (`sim/ppccore`), the caches' cohe
- README.md:317 The audio DSP against MAME's interpreter (`sim/dspp`); on MAME's dumps of each game's DSP program, each sample's work fits in the 1512 clocks it has (Total Vice
- README.md:320 For Hell Night, Battle Tryst and Heat of Eleven, MAME 0.289's own CHDs give the same data sectors as the Redump-based CHDs they were tested with, and the browse
- README.md:344 | `tools/` | the disc files' maker (`m2disc.py`, with `cdimage.py` and `cdfix.py`), MAME capture scripts (`tools/lua/`), the reports, the reference models (`too
- README.md:365 Capturing from MAME
- README.md:372 mame polystar -window -nothrottle -autoboot_script tools/lua/m2_capture.lua python3 tools/m2_report.py m2cap
- README.md:381 **MAME**: the konamim2 driver and the 3DO M2 devices (`3dom2.cpp`, `3dom2_te.cpp`; Phil Bennett), the PowerPC core (Aaron Giles, R. Belmont; `tools/ref/`'s refe
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 1
- README.md:307 The Triangle Engine's writes are the same as MAME's, byte for byte, on the lists dumped from the game (`sim/te`).
MAMEから移植・書き写した、または取り入れたと記載 — 1
- README.md:316 The YMZ280B against a port of MAME's device on Evil Night's sample ROM, sample for sample, on random voices and on the game's own writes (`sim/ymz`).
MAMEドライバと同じ文言を含む(出典の明記なし) — 1