mirror of
https://github.com/Gehstock/Mist_FPGA.git
synced 2026-02-17 04:56:58 +00:00
Arcade: Time Pilot port to MiST Working games: Time Pilot Power Surge Not working yet: Chance Kun Bikkuri Card - Create ARC and ROM file from the MRA file using the MRA utility. Example: mra -A -z /path/to/mame/roms "Time Pilot.mra" - Copy the ARC and ROM files to the root of the SD Card - Copy the RBF file to the SD Card --------------------------------------------------------------------------------- -- Time pilot by Dar (darfpga@aol.fr) (29/10/2017) -- http://darfpga.blogspot.fr --------------------------------------------------------------------------------- -- gen_ram.vhd & io_ps2_keyboard -------------------------------- -- Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com) -- http://www.syntiac.com/fpga64.html --------------------------------------------------------------------------------- -- T80/T80se - Version : 0247 ----------------------------- -- Z80 compatible microprocessor core -- Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org) --------------------------------------------------------------------------------- -- YM2149 (AY-3-8910) -- Copyright (c) MikeJ - Jan 2005 --------------------------------------------------------------------------------- -- Educational use only -- Do not redistribute synthetized file with roms -- Do not redistribute roms whatever the form -- Use at your own risk --------------------------------------------------------------------------------- -- Features : -- TV 15KHz mode only (atm) -- Coctail mode ok -- Sound ok -- No external RAM/SDRAM required -- Use with MAME roms from timeplt.zip -- -- Use make_time_pilot_proms.bat to build vhd file from binaries -- Time Pilot Hardware caracteristics : -- -- VIDEO : 1xZ80@3MHz CPU accessing its program rom, working ram, -- sprite data ram, I/O, sound board register and trigger. -- 24Kx8bits program rom -- -- One char tile map 32x28 -- 8Kx8bits graphics rom 2bits/pixel -- 4 colors/32sets among 16 colors -- -- 24 sprites with priorities and flip H/V -- 16Kx8bits graphics rom 2bits/pixel -- 3 colors/64sets among 16 colors (different of char colors). -- -- Char/sprites color palette 2x16 colors among 32768 colors -- 15bits 5red/5green/5blue -- -- Working ram : 4Kx8bits -- Sprites data ram : 256x16bits -- Sprites line buffer rams : 1 scan line delay flip/flop 2x256x4bits -- SOUND : 1xZ80@1.79MHz CPU accessing its program rom, working ram, 2x-AY3-8910 -- 8Kx8bits program rom -- -- 1xAY-3-8910 -- I/O noise input and command/trigger from video board. -- 3 sound channels -- -- 1xAY-3-8910 -- 3 sound channels -- -- 6 RC filters with 4 states : transparent or cut 600Hz, 700Hz, 3.4KHz -- --------------------------------------------------------------------------------- -- -- Uses 1 pll for 12MHz and 14MHz generation from 50MHz -- -- Board key : -- 0 : reset game -- -- Keyboard players inputs : -- -- F3 : Add coin -- F2 : Start 2 players -- F1 : Start 1 player -- SPACE : Fire -- RIGHT arrow : rotate right -- LEFT arrow : rotate left -- UP arrow : rotate up -- DOWN arrow : rotate down -- -- Other details : see time_pilot.vhd --------------------------------------------------------------------------------- -- Use time_pilot_lite.sdc to compile (Timequest constraints) -- /!\ -- Don't forget to set device configuration mode with memory initialization -- (Assignments/Device/Pin options/Configuration mode) --------------------------------------------------------------------------------- +----------------------------------------------------------------------------------+ ; Fitter Summary ; +------------------------------------+---------------------------------------------+ ; Fitter Status ; Successful - Sun Nov 05 10:17:02 2017 ; ; Quartus Prime Version ; 16.1.0 Build 196 10/24/2016 SJ Lite Edition ; ; Revision Name ; time_pilot_de10_lite ; ; Top-level Entity Name ; time_pilot_de10_lite ; ; Family ; MAX 10 ; ; Device ; 10M50DAF484C6GES ; ; Timing Models ; Preliminary ; ; Total logic elements ; 6,231 / 49,760 ( 13 % ) ; ; Total combinational functions ; 6,005 / 49,760 ( 12 % ) ; ; Dedicated logic registers ; 1,579 / 49,760 ( 3 % ) ; ; Total registers ; 1579 ; ; Total pins ; 105 / 360 ( 29 % ) ; ; Total virtual pins ; 0 ; ; Total memory bits ; 475,648 / 1,677,312 ( 28 % ) ; ; Embedded Multiplier 9-bit elements ; 2 / 288 ( < 1 % ) ; ; Total PLLs ; 1 / 4 ( 25 % ) ; ; UFM blocks ; 0 / 1 ( 0 % ) ; ; ADC blocks ; 0 / 2 ( 0 % ) ; +------------------------------------+---------------------------------------------+ --------------- VHDL File list --------------- de_10/max10_pll_12M_14M.vhd Pll 12MHz and 14 MHz from 50MHz altera mf rtl_dar/time_pilot_de10_lite.vhd Top level for de10_lite board rtl_dar/time_pilot.vhd Main video board logic rtl_dar/time_pilot_sound_board.vhd Main sound board logic rtl_mikej/YM2149_linmix_sep.vhd Copyright (c) MikeJ - Jan 2005 rtl_T80/T80se.vhdT80 Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org) rtl_T80/T80_Reg.vhd rtl_T80/T80_Pack.vhd rtl_T80/T80_MCode.vhd rtl_T80/T80_ALU.vhd rtl_T80/T80.vhd rtl_dar/kbd_joystick.vhd Keyboard key to player/coin input rtl_dar/io_ps2_keyboard.vhd Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com) rtl_dar/gen_ram.vhd Generic RAM (Peter Wendrich + DAR Modification) rtl_dar/decodeur_7_seg.vhd 7 segments display decoder rtl_dar/time_pilot_prog.vhd Time pilot video board PROMs rtl_dar/time_pilot_char_grphx.vhd rtl_dar/time_pilot_char_color_lut.vhd rtl_dar/time_pilot_sprite_grphx.vhd rtl_dar/time_pilot_sprite_color_lut.vhd rtl_dar/time_pilot_palette_green_red.vhd rtl_dar/time_pilot_palette_blue_green.vhd rtl_dar/time_pilot_sound_prog.vhd Time pilot sound board PROM ---------------------- Quartus project files ---------------------- de10_lite/time_pilot_de10_lite.sdc Timequest constraints file de10_lite/time_pilot_de10_lite.qsf de10_lite settings (files,pins...) de10_lite/time_pilot_de10_lite.qpf de10_lite project ----------------------------- Required ROMs (Not included) ----------------------------- You need the following 11 ROMs binary files from timeplt.zip (MAME) tm1, tm2,tm3, tm4, tm5, tm6, tm7 timeplt.b4 timeplt.b5 timeplt.e9 timeplt.e12 ------ Tools ------ You need to build vhdl files from the binary file : - Unzip the roms file in the tools/time_pilot_unzip directory - Double click (execute) the script tools/make_time_pilot_proms.bat to get the following files time_pilot_prog.vhd : tm1, tm2,tm3 time_pilot_sprite_grphx.vhd : tm4, tm5 time_pilot_char_grphx.vhd : tm6 time_pilot_sound_prog.vhd : tm7 time_pilot_palette_blue_green.vhd : timeplt.b4 time_pilot_palette_green_red.vhd : timeplt.b5 time_pilot_sprite_color_lut.vhd : timeplt.e9 time_pilot_char_color_lut.vhd : timeplt.e12 *DO NOT REDISTRIBUTE THESE FILES* VHDL files are needed to compile and include roms into the project The script make_time_pilot_proms.bat uses make_vhdl_prom executables delivered both in linux and windows version. The script itself is delivered only in windows version (.bat) but should be easily ported to linux. Source code of make_vhdl_prom.c is also delivered. --------------------------------- Compiling for de10_lite --------------------------------- You can build the project with ROM image embeded in the sof file. *DO NOT REDISTRIBUTE THESE FILES* 3 steps - put the VHDL ROM files (.vhd) into the rtl_dar directory - build time_pilot_de10_lite - program time_pilot_de10_lite.sof ------------------------ ------------------------ End of file ------------------------