← コア一覧
Nostradamus (kyledlester)
MAMEのドライバにない実基板の資料を引用 — 3
MAMEのソースを引用 — 65
- Nostradamus.sv:23 Nostradamus is vertical (MAME ROT270): HDMI uses the framework screen_rotate (DDR3 framebuffer, counter-clockwise); native/analog output is the unrotated 15 kHz raster for a rotated CRT.
- Nostradamus.sv:57 The labels say what is done to the board's 320x224 raster: Horizontal raster as is (Magical Cat on a landscape screen; Nostradamus on a TATE / rotated monitor or CRT) Vertical CCW HDMI scaler rotates it 90 degrees counter-clockwise (Nos
- rtl/nost/nost_clocks.sv:7 phi1/phi2: FX68K phase enables, alternating on tick32 -> 68000 at 16 MHz (MAME XTAL 16 MHz).
- rtl/nost/nost_core.sv:9 nost_video -> 038 x2 tilemaps, sprites, mixer nost_sound -> Z80, YM2610 nost_sdram_arb -> SDRAM channel 1 (loader > 68000 ROM > ADPCM-A > Z80 ROM > tiles > sprites) Game select (MRA ioctl index 1 byte): 0 = Nostradamus (MAME no
- rtl/nost/nost_core.sv:12 Same board in MAME (mcatadv.cpp); differences: Z80 memory/I/O map and SSG level (nost_sound), inputs and unused DIP/input bits (below), tile ROM sizes (code wrap in the tilemap engines) and the screen orientation (top level).
- rtl/nost/nost_core.sv:74 ------------------------------------------------------------------ DIP switches (index 254) byte 0 = SW1 (MAME DSW1 bits 15-8), byte 1 = SW2 (DSW2 bits 15-8); MAME port values
- rtl/nost/nost_core.sv:89 ------------------------------------------------------------------ inputs (MAME active low) MiSTer joystick: 0 right, 1 left, 2 down, 3 up, 4-6 buttons 1-3, 7 start, 8 coin, 9 service, 10 pause (CONF_STR J1).
- rtl/nost/nost_core.sv:92 MAME INPUT_PORTS_START( nost ): P1/P2 bit 0 up, 1 down, 2 left, 3 right, 4 button 1, 5/6 "unknown" (buttons 2/3 in test mode only), 7 start, 8 coin; P2 bit 9 = SERVICE1.
- rtl/nost/nost_core.sv:94 P1 bit 11 is active high and must read 0 (MAME: "Must be LOW or startup freezes"; the boot code at 0x184 waits for it).
- rtl/nost/nost_core.sv:96 MAME INPUT_PORTS_START( mcatadv ): the same bits (button 2 = jump; P1 button 3 used by the test mode only; P2 bit 6 unknown = 1); all other bits read 1 (no bit 11 rule); DSW1/DSW2 bits 7-0 are IPT_UNKNOWN active low (read 1; nost does not d
- rtl/nost/nost_core.sv:176 Magical Cat's Z80 writes 01 while it takes a command and 00 otherwise (MAME trace), and the 68000 waits for 00 before each command.
- rtl/nost/nost_loader.sv:5 Every stream word goes to SDRAM: 000000-0FFFFF maincpu -> 0x0000000 + a (68000 words as delivered) 100000-13FFFF soundcpu -> 0x0100000 + a' ({byte 2k+1, byte 2k}); 100000-107FFF also to the Z80's block-RAM copy of 0000-7FFF (nost_sound)
- rtl/nost/nost_main.sv:4 MAME 0.289 mcatadv_state::main_map (docs/MEMORY_MAP.md): FX68K at 16 MHz (phi1/phi2 enables).
- rtl/nost/nost_main.sv:5 000000-0FFFFF program ROM: SDRAM through a direct-mapped cache (nost_rom_cache) 100000-10FFFF work RAM 200000-200005 / 300000-300005 038 #0 / #1 registers 400000-401FFF / 500000-501FFF 038 #0 / #1 RAM (tile map 000-FFF, line RAM
- rtl/nost/nost_main.sv:15 Unmapped reads return 0 (MAME unmap value); unmapped writes are ignored.
- rtl/nost/nost_main.sv:22 Sprite buffer: at vblank start the half selected by vidregs word 2 (MAME: == 1 -> second half) is copied (2048 clocks, 4 words per clock) to the display buffer read by the sprite engine, which is MAME's buffered_spriteram16 copy + buffered
- rtl/nost/nost_main.sv:265 unmapped: MAME unmap value 0
- rtl/nost/nost_rom_cache.sv:4 A direct-mapped cache of 2^IW lines of 8 bytes (one 4-word SDRAM burst) answers hits with the same latency as block RAM, so hits cost the 68000 no wait states; a miss fetches the line (the CPU waits; MAME has no wait states at all, docs/KNO
- rtl/nost/nost_rom_cache.sv:55 simulation only: zero-wait program ROM (MAME timing) for the bus-trace comparison bench
- rtl/nost/nost_sound.sv:4 mcat = 1: MAME 0.289 mcatadv_sound_map / mcatadv_sound_io_map (Magical Cat Adventure): 0000-3FFF ROM, 4000-BFFF ROM bank window (32 KB from bank * 0x4000 of the 128 KB ROM), C000-DFFF RAM, E000-E003 RW YM2610, F000 W bank; I/O 80 R sound la
- rtl/nost/nost_sound.sv:8 mcat = 0 (Nostradamus): MAME 0.289 mcatadv_state::nost_sound_map / nost_sound_io_map (docs/AUDIO.md): Z80 (T80s) at 4 MHz: 0000-7FFF ROM, 8000-BFFF ROM bank (16 KB pages of the 256 KB ROM, bank register = port 40, MAME's initial page 1, not
- rtl/nost/nost_sound.sv:13 NMI = sound latch pending (set by a 68000 write, cleared by the Z80 read: MAME generic_latch_8 data_pending -> INPUT_LINE_NMI); INT = YM2610 IRQ (the program runs IM 1 with a bare RETI).
- rtl/nost/nost_sound.sv:16 Mono mix as MAME's nost routes: SSG (ymfm: (a+b+c) * 2/3, channel amplitudes 0..16382) x 0.6 + FM/ADPCM left x 0.5 + right x 0.5, saturated to 16 bits.
- rtl/nost/nost_sound.sv:21 The Z80 program ROM and the ADPCM-A ROM are in SDRAM (clk_sys) behind small caches in this domain with a level handshake per line fill; a Z80 cache miss holds WAIT_n (MAME has no waits).
- rtl/nost/nost_sound.sv:150 MAME machine_start: set_entry(1); kept across resets
- rtl/nost/nost_sound.sv:181 Next-line prefetch: while the Z80 reads a line that hits, the following line is fetched if it is not present, so sequential code and data (e.g. the boot-time ROM checksum) do not stall the Z80 (the board's ROM has no wait states; MAME neith
- rtl/nost/nost_sound.sv:354 MAME unmapped read value
- rtl/nost/nost_sound.sv:363 ------------------------------------------------------------------ mix (clk_snd), output (clk) ymfm SSG amplitude ~ jt49 8-bit level * 64.25; MAME: ssg * 2/3 * 0.6 + (l + r) * 0.5 = (A + B + C) * 25.7 + (L + R) / 2 -> integer: ((A+B+C) *
- rtl/nost/nost_sprites.sv:4 Hardware form of MAME 0.289 mcatadv_state::draw_sprites (docs/VIDEO.md, scripts/refrender.py).
- rtl/nost/nost_sprites.sv:8 Pixels: nibble address tile*256 + row*width + column (low nibble of a byte first) in the 8 MB sprite region; the populated 5 MB are in SDRAM, the erased rest reads 0xF (MAME ROMREGION_ERASEFF).
- rtl/nost/nost_sprites.sv:12 MAME draws the last entry first and a sprite pixel masks every later one (priority bitmap bit 4), whatever its priority against the tiles; so the visible sprite pixel is the opaque pixel of the highest-numbered entry.
- rtl/nost/nost_sprites.sv:47 global offsets as MAME ints: global = vidreg - 0x184 / 0x1F1 (17-bit signed is plenty)
- rtl/nost/nost_sprites.sv:75 data row: MAME consumes rows in drawing order, so with flipy row k of the data is drawn at screen row height - 1 - k
- rtl/nost/nost_tilemap.sv:4 Hardware form of MAME 0.289 tmap038 (16x16 tile RAM only, as mapped for nost) + mcatadv_state::draw_tilemap_part, per render line y (0..223), layer 0 then layer 1 (docs/VIDEO.md, scripts/refrender.py tile_layer()): scrollx = (reg0 & 1FF) -
- rtl/nost/nost_tilemap.sv:19 Line RAM, tile RAM and registers are read live while the line is rendered (the game updates them in vblank: docs/MAME_REFERENCE.md), which equals MAME's render-at-vblank-start state.
- rtl/nost/nost_tilemap.sv:55 16-bit two's complement, as MAME's int (9 bits matter)
- rtl/nost/nost_tilemap.sv:67 MAME draws 8x8 element code * 4 + q modulo the region's element count (gfx_element get_data): 16x16 code % (region bytes / 128).
- rtl/nost/nost_tilemap_cave.sv:9 319 it presents the position, waits until the module's addresses are stable, reads tile RAM / line RAM (16-bit board RAM, two words per 32-bit read) and the tile-ROM word (SDRAM, MAME byte order copy of the region, 8 bytes = two 8-pixel row
- rtl/nost/nost_tilemap_cave.sv:14 Board adaptation (inputs only, nothing inside the Cave module changed): * scroll origin: the module computes x + scroll - spriteOffset - layerOffset (0x12 for 16x16); spriteOffset_x = 0x194 - 0x12 and spriteOffset_y = 0x1DF - 0x1EE give MAM
- rtl/nost/nost_tilemap_cave.sv:24 0: line RAM entries indexed as on this board (MAME mcatadv): row select at the scrolled line, row scroll at the selected line.
- rtl/nost/nost_tilemap_cave.sv:71 MAME drawline + scrolly
- rtl/nost/nost_tilemap_cave.sv:97 MAME draws 8x8 element code * 4 + q modulo the region's element count (gfx_element get_data): 16x16 code % (region bytes / 128).
- rtl/nost/nost_tilemap_cave.sv:112 ROM byte address: {code[15:0], y3, half, pair, 3'b000} (= MAME's 8x8 element code*4+q, row pair); code wrapped as MAME
- rtl/nost/nost_tilemap_cave.sv:165 MAME applies the flip after row select (scrolly = rowselect - line, then flipped: source row 223 + scrolly - 0x141 - line); the module uses the row-select value as the tile row directly, so flipped it gets rowselect - 2*line + 0x19E.
- rtl/nost/nost_tilemap_cave.sv:189 0x1200000 : 0x1000000) + rom_byte (MAME byte order copy)
- rtl/nost/nost_video.sv:6 Mixer = MAME mcatadv screen_update: background pen 0x3F0; the two 038 layers are drawn by category 0..3, layer 0 then layer 1 within a category, so the visible tile pixel is the opaque one with the highest (category, layer); the priority bi
- rtl/nost/nost_video.sv:10 Palette xGRB_555 (MAME palette_device::xGRB_555) read live from the 68000 board's palette RAM; 5-bit channels expanded as MAME's pal5bit (x << 3 | x >> 2).
- rtl/nost/nost_video_timing.sv:4 MAME logical raster (mcatadv.cpp): set_size(320, 256), visarea 0..319 x 0..223, 60 Hz, set_vblank_time(0): vblank = lines 224..255.
- rtl/nost/nost_video_timing.sv:5 MAME's raster has no horizontal blanking; this core uses a 456-dot line at 7.004160 MHz (dots 0..319 visible) so that lines run at MAME's 15.360 kHz and frames at 60.000 Hz.
- rtl/nost/nost_video_timing.sv:7 hcount/vcount: vcount is MAME's vpos; hcount 0..319 is MAME's hpos.
- rtl/nost/nost_video_timing.sv:12 Reset phase: MAME starts its screen at vblank begin (screen.cpp m_vblank_start_time = 0), i.e. the beam is at line 224, dot 0 at time 0 (measured: the 3.0 s watchdog reset lands on line 224 dot 0).
- rtl/nost/nost_video_timing.sv:14 The raster leaves reset at the same position so CPU time and the vblank interrupt keep MAME's phase.
- rtl/vendor/jt10/jt12_lfo.v:78 same values as in MAME
- README.md:9 Hardware: 68000 @ 16 MHz, Z80 @ 4 MHz, YMF286-K (YM2610 compatible) @ 8 MHz, two 038 tilemap chips and the FX1037 sprite custom (MAME driver `misc/mcatadv.cpp`)
- README.md:30 Use MAME 0.289 sets (`mame -verifyroms <set>` = good; `catt` reports "best available" because MAME lacks two PLD dumps the game does not need).
- README.md:40 Copy the ROM zips to `/media/fat/games/mame/`.
- README.md:46 **Expect a black screen for about 3 seconds at power-on.** Both programs write a signature to RAM on a cold start and wait for the board's watchdog to reset the
- README.md:81 Use *Flipped* rather than the games' own *Flip Screen* DIP: that DIP behaves as in MAME, which only flips the backgrounds (the drivers are marked "no cocktail")
- README.md:84 **Tilemap engine** — *Cave 038* (default) uses the 038 layer processor from the [Arcade-Cave](https://github.com/MiSTer-devel/Arcade-Cave_MiSTer) core, adapted
- README.md:96 320 x 224 visible, 456 x 256 total, 7.004 MHz dot clock: **15.36 kHz / 60.00 Hz**, MAME's raster for both games (the PCB's exact timing has not been measured).
- README.md:98 Sound: Z80 + YM2610 (jt10), mono, mixed with MAME's per-game levels.
- README.md:102 In short: the watchdog period (3 s), raster timing and sprite/tile priority follow MAME where the PCB is unmeasured; the YM2610 is jotego's jt10 rather than MAM
- README.md:127 ROM-derived images come from `python scripts/romtool.py --game <set> regions|stream|images` and MAME captures from `scripts/mame/*.lua` (via `scripts/mame/run.s
- README.md:132 Documentation: [architecture](docs/ARCHITECTURE.md), [memory map](docs/MEMORY_MAP.md), [ROM layout](docs/ROM_LAYOUT.md), [video](docs/VIDEO.md), [audio](docs/AU
- README.md:139 MAME driver `mcatadv.cpp` (Paul Priest, David Haywood) and `tmap038` — the behavioural reference for this core (no MAME code is included).
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 2
- README.md:16 Every set was checked in simulation against MAME 0.289 (ROM loading, CPU bus traffic, video frame by frame, sound chip writes and audio).
- README.md:86 Both produce pixel-identical pictures to MAME on every frame tested; the option exists for comparison and as a fallback.
MAMEの近似をそのまま採用 — 2
- rtl/nost/nost_main.sv:17 Watchdog (MAME: 3 s, "a guess, and certainly wrong"): 96,000,000 ticks of the 32 MHz time base without a write to B00018 (or read of B0001E) soft-resets the 68000 and the sound board (MAME schedule_soft_reset: CPUs and devices reset, RAM ke
- rtl/nost/nost_main.sv:27 watchdog period in 32 MHz ticks (3.0 s, MAME's guess)
MAMEドライバと同じ文言を含む(出典の明記なし) — 2