Reference | All - Docs - Libraries - Soft Processors - Cores

Papilio Arcade Kit Usage

The Papilio One Arcade kit ships with an Open Source Pong demo loaded to the SPI Flash. When power is applied to the board it will automatically load this design from the SPI Flash and start running it. The Pong demo is designed to run on the original Pac-Man hardware. So the preloaded design is an actual recreation of the Pac-Man hardware that is running an open source game written for the Pac-Man hardware. The Pong Demo is included because no copyrighted ROMs are included with any of the Papilio Arcade files. Pac-Man is still copyrighted by Namco and a legal copy of the game is required to run the Pac-Man ROM on the hardware.

Loading Pong Demo

The Open Source Pong Demo game is loaded by default on the Papilio Arcade Hardware. These directions step through how to reload the Pong Demo game to the SPI Flash.

Ensure you have the Papilio Loader installed and associated with .bit files. Follow the Papilio One Quickstart Guide to set this up:

  • Choose 500K Papilio
  • The project should now be loaded to SPI Flash for start upon power up.

Synthesizing Pac-Man Project

The Papilio One Arcade kit comes preloaded with the Pac-Man hardware running an Open Source demo game. In order to run the Pac-Man ROMs the end user must have a legal version of the Pac-Man game and must synthesize the Pac-Man ROMs into the hardware design. The follows describes the process.

Download source

Start out by downloading the VHDL source package that describes the Pac-Man hardware from the Gadget Factory Papilio Arcade project page.

Unzip the source into any desired directory.

Provide ROMs

Locate the roms directory and copy legal versions of the ROM files that have been obtained from a Pac-Man arcade game.

Run the “build_roms.bat” file to convert the ROM files into the VHDL files needed by the project.

Change Settings

There are several settings that can be controlled at the time of synthesis. To modify the following setting open the source/pacman.vhd file.

Free Play

To require a coin to play or to set Freeplay where simply pressing the start button is required search for and set the following line:

                                 dipsw_reg(3 downto 2) <= "10"; -- pacman (3)

Set the “10” portion of the line according to Table 1.

Mode Setting
1 Coin = 1 Play “11”
1 Coin = 2 Play “01”
2 Coin = 1 Play “10”
Freeplay “00”

Upright/Cocktail table

Search for the following line:

                                     in1_reg(7) <= '0'; -- table

Set the ‘0’ portion of the line to either ‘1’ or ‘0’ according to Table 2.

Mode Setting
Cocktail Table ‘0’
Upright ‘1’

Two Joysticks

The design is setup by default for an upright cabinet with one single joystick for both players. Both joystick ports are connected to the same physical joystick. To switch

[Write a section about how to connect two joysticks]

Number of lives per play

To set the number of lives per play search for the following line:

                                     dipsw_reg(3 downto 2) <= "10"; -- pacman (3)

Set the “10” portion of the line according to Table 3.

Mode Setting
1 Packman “11”
2 Packmen “01”
3 Packmen “10”
5 Packmen “00”

Points until extra life

To set the number of lives per play search for the following line:

                                     dipsw_reg(3 downto 2) <= "10"; -- pacman (3)

Set the “10” portion of the line according to Table 4.

Mode Setting
Bonus at 10,000 “11”
Bonus at 15,000 “01”
Bonus at 20,000 “10”
No Bonus “00”
Synthesize

Once the ROM files are generated and all the desired settings are set then it is time to synthesize the design. It can take quite some time to synthesize the design so be prepared to wait a while.

  • Open the ISE project file from the following path.
                                     Papilio_build\Pacman.xise
  • Make sure the top level Pacman module is selected and then double click on “Generate Programming File”.

Load Bitstream

Once the design is synthesized there will be a pacman.bit file generated.

Ensure you have the Papilio Loader installed and associated with *.bit files. Follow the Papilio One Quickstart Guide to set this up.

  • Double click on the Pacman.bit file that is generated.
  

Share |