← コア一覧
Polygonet (decoryah)
MAMEのドライバにない実基板の資料を引用 — 1
- rtl/pn_main.sv:260 -------------------------------------------------------- memories work RAM 16K x 16, byte lanes
MAMEとの相違点を記載 — 3
- rtl/pn_core.sv:288 MAME ignores it.
- rtl/pn_core.sv:346 K054321 master volume (Q4.12 table) and channel enables, and sys0 bit 3, MUTE on the schematic labels MAME quotes (MAME ignores it).
- rtl/pn_video.sv:34 Screen flip (sys1 VFLIP / HFLIP, D19 / D18 of 4c0000; MAME ignores them): the game's VIDEO SCREEN FLIP setting sets both and changes nothing else (the DSP sets the polygon chips' own flip bits; with flip forced on, MAME's picture is identic
MAMEのソースを引用 — 71
- Polygonet.sv:5 The machine (rtl/) follows MAME 0.289's plygonet.cpp.
- Polygonet.sv:201 keyboard: 5 coin 1, 6 coin 2, 9 service, F2 test (MAME's defaults)
- rtl/dsp56156/dsp56156.sv:1212 ABS (MAME saturates -1.0)
- rtl/dsp56156/dsp56156_periph.sv:3 Behaviour is the reference model's (sim/dsp/ref/dsp56156_iss.cpp), which follows MAME's dsp56mem.cpp: only the registers listed in periph_read / periph_write exist, everything else reads 0 and ignores writes, and the HI transfer chain (HTX
- rtl/dsp56156/dsp56156_periph.sv:81 IVR is never written in MAME's model (host register 3 writes are ignored), so it is the constant 0 here.
- rtl/dsp56156/dsp56156_periph.sv:96 ---------------------------------------------- MAME's flag setters htx_to_host / host_to_htx set the destination flag through the setter with v = 1, which never chains further, so the recursion is one level.
- rtl/dsp56156/dsp56156_ram.sv:3 PRAM needs the byte lanes because the host-interface bootstrap writes TXH and TXL into a program word separately (MAME keeps the other byte); XRAM simply writes both lanes.
- rtl/er5911.sv:2 ER5911 serial EEPROM, 128 x 8, as MAME's eeprom_serial_er5911_device models it (eepromser.cpp): a start bit, a 2-bit opcode and a 9-bit address field (only the low 7 bits select a cell) on rising CLK while CS is high; READ shifts data out M
- rtl/er5911.sv:8 the Pocket repository's tools/eeprom_replay.py checks this protocol against MAME's pin traffic.
- rtl/er5911.sv:98 a 1 on DI at a rising clock is the start bit (edges that coincide with CS rising are ignored, as MAME does)
- rtl/k054321.sv:6 MAME models the gain as 2^((volume - 40) / 10) with 40 as "normal"; mw_core applies it.
- rtl/k054539.sv:3 Modelled on MAME's k054539.cpp.
- rtl/k054539.sv:16 Rendering follows sound_stream_update: per 48 kHz sample, each keyed channel steps its 16.16 position by the 24-bit delta, fetching 8-bit PCM, 16-bit PCM or 4-bit DPCM from the ROM (looping at the end marker if reg 0x201 bit 0 is set, else
- rtl/k054539.sv:25 While 0x22f bit 0 is set (MAME's UPDATE_AT_KEYON, its default) a write to a channel's position registers is held in a latch and only copied into the registers by that channel's key-on.
- rtl/k054539.sv:28 Volumes are Q2.14 tables from tools/gen_k054539_tables.py; the per-channel gain MAME applies at reset for this game (chip 1 channels 4-7 x2.0, the "voice" channels) comes in through GAIN_Q14.
- rtl/k054539.sv:78 UPDATE_AT_KEYON (MAME's default for every game, k054539.cpp): while the chip is enabled (0x22f bit 0) a write to a channel's position registers (0x0c-0x0e of its 0x20 block) is held in a latch and the register keeps its value; the key-on wr
- rtl/k054539.sv:260 Every position step fetches a sample, as MAME does, so a pitch above 1.0 costs one ROM read per step; DPCM depends on that.
- rtl/k054539.sv:309 the Q2.14 fraction bits of the product are dropped, as MAME does
- rtl/k054539.sv:353 16-bit samples are read as two bytes at cur_pos and cur_pos + 1, whatever the alignment (MAME: read_byte(pos) | read_byte(pos + 1) << 8); an odd start address is common in this game's music
- rtl/k054539.sv:430 a 16-bit sample steps two bytes (MAME: pdelta <<= 1)
- rtl/k054539.sv:475 MAME adds the ring position twice: rdelta = (delay + pos) & 0x3fff, then the entry is rbase[(rdelta + pos) & 0x1fff].
- rtl/k054539.sv:483 the ring holds int16; MAME truncates the scaled sample the same way
- rtl/pn_clk.sv:3 cen_16m : 96 / 6 68EC020 (32 MHz / 2) cen_8m : 96 / 12 Z80, and the pixel clock cen_pix : 96 / 12 8 MHz pixel clock (a guess: 24 MHz video crystal / 3 gives 512 clocks per 64 us line, the 512-wide raster MAME declares); 96 / 13 7.
- rtl/pn_core.sv:6 MAME 0.289's plygonet.cpp is the reference.
- rtl/pn_core.sv:8 pn_main 68EC020 (TG68K in 68020 mode), its memory map, palette, VRAMs, IRQs pn_dsp_board DSP56156 + the B board's banked RAMs, page flips pn_poly polygon pages A/B (MAME's process_polys / draw_poly), display fetch pn_roz
- rtl/pn_core.sv:15 Composite (MAME screen_update): palette[0x100], then the K053936 layer, then page A over page B, then the text plane.
- rtl/pn_core.sv:99 IN1 as MAME lists it (active high here)
- rtl/pn_core.sv:181 MAME IN0..IN3 (active low on the bus) IN0: service, test, coin 1, (start 1), the network ID switches as they are (red = 00), two unknown
- rtl/pn_dsp_board.sv:2 Polygonet B board, the DSP side: DSP56156 @ 40 MHz with its external memories, as MAME 0.289 maps them (polygonet_state::dsp_program_map / dsp_data_map / dsp_portc_write).
- rtl/pn_dsp_board.sv:124 Port C as last written (MAME acts on the write callback; the output register is the same thing)
- rtl/pn_dsp_board.sv:343 MAME dsp_ram_a_e_write: render the new buffer, show the old one; once every queued SDRAM write (the span tables the renderer reads) is in the SDRAM
- rtl/pn_main.sv:4 Address decode follows MAME 0.289's polygonet_state::main_map (konami/plygonet.cpp):
- rtl/pn_main.sv:6 000000-1fffff program ROM (2 MB, four interleaved 8-bit EPROMs) 200000-21ffff palette RAM, 32768 x 32 bit xRGB_888 (MAME write32) 400000-40001f K053936 control registers (16 x 16 bit) 440000-440fff K053936 tile map RAM (2048 x 16) 48000
- rtl/pn_main.sv:30 Each instruction is charged MAME's 68020 cycle count, which is the real chip's time with its instruction cache hit and no wait states: two ROMs (rtl/data/m68k_cyc_grp.hex, m68k_cyc_shp.hex: per opcode group of 64, a base and one of 25 addre
- rtl/pn_main.sv:38 Charging each TG68K step by its kind instead (1.5 clocks a fetched word, 3 a data word, 1 an internal step) is close to MAME on average, but runs a DBRA loop in 4 clocks an iteration against the chip's 6 (the games' boot delays 1.5 times sh
- rtl/pn_main.sv:47 Interrupts (MAME): IRQ5 at vblank, raised only while sys1 bit 5 (/L5MAS) is set and held (ASSERT_LINE) until a sys1 write with bit 5 clear; IRQ3 from the K056230 (no network here: it only rises if the game pokes the control register itself)
- rtl/pn_main.sv:85 inputs, active low as the board sees them (MAME's IN0..IN3); IN2 bits 1:0 are replaced by the EEPROM's DO / READY
- rtl/pn_main.sv:200 ---- the cost of a step (see the header): MAME's cycles of an instruction at its decode step
- rtl/pn_main.sv:283 While reset is held these two and the palette copy are swept to 0, one word a clock (2,048 clocks; the MiSTer top holds a reset at least that long), as MAME starts them: a reset (the OSD's, or a new Player Color) would otherwise leave the l
- rtl/pn_main.sv:491 Polygonet Commanders keeps its mode in ff8008 (MAME, written at PC 13bc): 0 the attract, 2 the name entry, 8 a game, 9 the ranking after it.
- rtl/pn_main.sv:510 K056230 control (byte 1): bit 5 raises IRQ3, bit 0 low drops it (MAME's literal model)
- rtl/pn_main.sv:528 dsp_w_lines: D24 is the DSP's reset (1 = run), D26 COMBNK (no effect in MAME)
- rtl/pn_poly.sv:2 Polygonet polygon pages: the job of the B board's two K054009/K054010 pairs, done the way MAME 0.289 models it (polygonet_state::process_polys / draw_poly):
- rtl/pn_poly.sv:7 One difference from MAME: the list drawn is the OTHER buffer's, the one the DSP finished in its last job.
- rtl/pn_poly.sv:10 MAME draws list X (written two jobs before) in no time at the flip, so that does not matter there; drawing takes the core (and the board) far longer, and drawing list X would let the DSP overwrite it underneath: polygons late in the list wo
- rtl/pn_poly.sv:13 The framebuffers are still X (drawn) and ~X (shown); the picture is one 3D frame fresher than MAME's. * the polygon list of page p, buffer b sits at word offset {{0,0x2000},{0x1000,0x3000}}[p][b] of the b6 and b7 banks (16K words each).
- rtl/pn_poly.sv:26 The bits make clearing cheap (6,144 words) and give first-pixel-wins without reading SDRAM back; they are also the page's transparency at scan-out (MAME: a pixel is transparent if its RGB is 0 -- a drawn black pixel is transparent there; th
- rtl/pn_poly.sv:268 MAME's s_info_bank_offsets[page][buf]
- rtl/pn_roz.sv:2 Polygonet K053936 (PSAC2) background, as MAME draws it for this board: k053936_device::zoom_draw with wrap on, no offsets, no line-control RAM (Polygonet maps none, so the "line" mode of ctrl[7] bit 6 reads zeros there).
- rtl/pn_roz.sv:11 Simple mode (ctrl[7] bit 6 clear), all values 32-bit with 11 fraction bits: startx = 256 * (s16)ctrl[0], starty = 256 * (s16)ctrl[1] incyx/incyy = (s16)ctrl[2]/ctrl[3] (x256 if ctrl[6] bit 14) incxx/incxy = (s16)ctrl[4]/ctrl[5] (x256 if c
- rtl/pn_roz.sv:195 code is v & 0x7ff in MAME
- rtl/pn_sound.sv:2 Polygonet sound board: Z80 @ 8 MHz, one K054539 @ 18.432 MHz, the K054321 latch (MAME 0.289 polygonet_state::sound_map): 0000-7fff ROM 8000-bfff ROM bank (8 x 16 KB of the 128 KB ROM, sound_ctrl bits 2:0)
- rtl/pn_sound.sv:8 NMI is the K054539 timer output's level (MAME's update_sound_nmi: polynetw dislikes gating it with sound_ctrl bit 4).
- rtl/pn_sound.sv:113 MAME machine_reset: bank 0
- rtl/pn_sound.sv:197 x 0.75 (MAME add_route gain), output 0 left and 1 right (the K054539 module's snd_l / snd_r)
- rtl/pn_ttl.sv:2 Polygonet TTL text plane: 64 x 32 tiles of 8 x 8, 4 bpp, no scroll, pen 0 transparent (MAME ttl_get_tile_info: code = v & 0xfff, colour = v >> 12, the gfx element's colour granularity 16, so palette index = colour * 16 + pen).
- rtl/pn_ttl.sv:6 Screen pixel px (0..383) is tilemap x = px + 64 (MAME's visarea starts at 64), so a line covers tile columns 8..55.
- rtl/pn_ttl.sv:11 Pixel 0 is file byte 0's high nibble, pixel 7 file byte 3's low nibble (packed 4 bpp, MSB first): what MAME draws with the real ROM.
- rtl/pn_video.sv:4 MAME: screen 512 x 256, visible x 64..447, all 256 lines, 60 Hz, no vblank time.
- rtl/pn_video.sv:13 The picture at hcount 64 (MAME's visarea); front porch 14 dots, hsync 36 (4.5 us), back porch 66; vsync lines 258-260.
- README.md:3 A MiSTer FPGA core for Konami's Polygonet board (GX305, 1993), Konami's first 3D arcade hardware, the board of MAME's `konami/plygonet.cpp` driver.
- README.md:7 Written from MAME 0.289's driver and its DSP56156 core, with MAME as the reference; the platform layer, the SDRAM controller and the sound chips come from the m
- README.md:22 The pictures are from MAME 0.289.
- README.md:24 No ROMs are in this repository; you supply your own MAME sets.
- README.md:103 **3D timing:** the renderer draws the polygon list the DSP finished last, so the 3D picture is one 3D frame (2 or 4 video frames) fresher than MAME's, which dra
- README.md:106 **Speed:** the 68020 runs at MAME's cycle counts (the chip's with its cache hit and no wait states; the board's wait states are unknown).
- README.md:109 **Warriors' attract:** its demo fights play out a little differently from MAME's; there is no footage of a real board's Warriors attract to say which is right.
- README.md:111 **Not in the core:** the DSP's timer and SSI/codec, and the K056230 network beyond MAME's register behaviour, so linked play is not possible.
- README.md:119 The whole board on the games' ROMs against MAME 0.289 (`sim/game`, with the MiSTer's memory path and an SDRAM model): the RAM and ROM check, the attract, Comman
- README.md:123 The polygon renderer (`sim/poly`), the K053936 (`sim/roz`) and the text plane (`sim/ttl`) against transcriptions of MAME's code, pixel for pixel; TG68K's 68020
- README.md:163 **MAME**: the Polygonet driver (R. Belmont, Andrew Gardner, Ryan Holtz), the DSP56156 core (Andrew Gardner), the 68020 core's cycle tables, the K053936 and K054
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 1
- rtl/pn_ttl.sv:79 pixel n of the row: the file's bytes in order, high nibble first (checked against MAME's picture with the real ROM: the region's dword reversal and the big-endian 32-bit region cancel out)
MAMEの近似をそのまま採用 — 1