Skip to content

Collection of IP and information on how to develop for openFPGA and Analogue Pocket

License

Notifications You must be signed in to change notification settings

agg23/analogue-pocket-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collection of Analogue Pocket Utilities

A collection of useful IP and information on how to develop openFPGA cores for the Analogue Pocket.

For tips, tricks, and various learnings from a software dev's perspective, check out the wiki.

IP

When possible, IPs will be provided with test benches.

HDL File Usage
mem/psram.sv Generic PSRAM controller, configured with timing for the Pocket's PSRAM. Supports synchronous access in async mode.
debug_key.v Enables LED/button/UART usage for the debug key included with Analogue Pocket Dev Kits
data_loader.sv Converts APF writes into configurable single or two byte words. TB tests both 8 and 16 bit writes
data_unloader.sv Connects APF reads into memory fetches, with configurable single or two byte words. TB tests both 8 and 16 bit reads
hex_loader.v Converts APF writes representing a hex file into bytes. Can be converted for use outside of APF. Has an involved TB
sound_i2s.sv Provides audio over the i2s bridge. Supports signed and unsigned audio
sync_fifo.sv An easily reusable method for synchronizing multiple bits across clock domains

Debug Key

You must set "cartridge_adapter": 0 in the core.json file, otherwise - the dev key doesn't work, and be careful when you distribute as well, or you will waste power.

This example demonstrates controlling the Debug Key's LED with the button.

wire LED;
wire button;

assign LED = button;

debug_key key (
    .cart_tran_bank0_dir(cart_tran_bank0_dir),
    .cart_tran_bank0(cart_tran_bank0),
    .cart_tran_bank3_dir(cart_tran_bank3_dir),
    .cart_tran_bank3(cart_tran_bank3),
    .LED(LED),
    .button(button)
);

Tools

CHIP32

Image Processing

Updaters

Cores

A sample of open source cores are provided here. This list updates rapidly and is likely incomplete. You can see the complete list at https://joshcampbell191.github.io/openfpga-cores-inventory/analogue-pocket.html

Arcade

Core Author URL
Asteroids ericlewis https://github.com/ericlewis/openfpga-asteroids
Dig Dug boogermann https://github.com/opengateware/arcade-digdug
Dominos ericlewis https://github.com/ericlewis/openfpga-dominos
Galaga boogermann https://github.com/opengateware/arcade-galaga
Green Beret boogermann https://github.com/opengateware/arcade-gberet
Lunar Lander ericlewis https://github.com/ericlewis/openfpga-lunarlander
Pong agg23 https://github.com/agg23/analogue-pong
Space Race ericlewis https://github.com/ericlewis/openfpga-spacerace
Super Breakout ericlewis https://github.com/ericlewis/openfpga-superbreakout
Tecmo nullobject https://github.com/nullobject/openfpga-tecmo
Xevious boogermann https://github.com/opengateware/arcade-xevious

Console/Handheld

Core Author URL
Arduboy agg23 https://github.com/agg23/analogue-arduboy
Genesis ericlewis https://github.com/ericlewis/openFPGA-Genesis
Neo Geo Mazamars312 https://github.com/Mazamars312/Analogue_Pocket_Neogeo
NES agg23 https://github.com/agg23/openfpga-NES
PC Engine agg23 https://github.com/agg23/openfpga-pcengine
PDP-1 spacemen3 https://github.com/spacemen3/PDP-1
PC Engine agg23 https://github.com/agg23/openfpga-pcengine
Pokemon Mini agg23 https://github.com/agg23/openfpga-pokemonmini
SNES agg23 https://github.com/agg23/openfpga-SNES