Skip to content

Hacking around on a CPU+friends for a TinyFPGA BX

Notifications You must be signed in to change notification settings

benclifford/shittycpu40

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shittycpu40

A hobby CPU+stuff for FPGA.

For a TinyFPGA BX, which contains an iCE40.

To build

  • Build firmware

The firmware is compiled into a .vh file which will initialise the firmware memory with assembled code. The assembler and assemby language firmware are in shittyasm/app/Main.hs

Use Haskell stack:

cd shittyasm
stack build && stack exec shittyasm-exe > ../ram.vh 
  • Build FPGA bitstream

Uses apio to for the FPGA tool stack:

rm hardware.* ; apio build 
# remove hardware.* because the build system doesn't detect changes
# in the firmware file, ram.vh
  • Install bitstream into TinyFPGA BX
tinyprog --program hardware.bin 

About

Hacking around on a CPU+friends for a TinyFPGA BX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published