Skip to content

piso77/pif2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIF_2 - FPGA on a Raspberry Pi

This is the software for Bugblat's PIF_2 Raspberry Pi FPGA board.

The PIF_2 is 100% compatible with all Pi boards with a 40-pin connector - all reasonably recent Raspberry Pi models. It is bigger than the very small Pi Zero, a PIF_Z could be a better solution for that Pi model.

What is the PIF_2 board?

A pif board, which plugs into a Raspberry Pi, carries a non-volatile Lattice Semiconductor MachXO2 FPGA.

To program the FPGA, you start by writing a firmware program, usually in VHDL or Verilog though there are other options. The firmware program can be simulated and compiled to a JEDEC bitstream with Lattice's free Diamond software.

Then you have to inject the bitstream into the pif's FPGA, and that's the job of the software in this repo. Primarily in Python, there are programs to

  • program the onboard FPGA with a compiled bitstream
  • control the FPGA firmware from the Raspberry Pi processor

Example FPGA firmware programs are also included, plus an example of controlling the FPGA from a web application.

Many flavors of Linux are available for the Raspberry Pi. This software is written for the Raspbian/jessie distribution.

More Information

The pif product pages, including links to the full documentation, are here.

About

FPGA on a 40-pin Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 51.9%
  • VHDL 23.6%
  • C++ 14.2%
  • Python 8.7%
  • HTML 0.7%
  • CSS 0.6%
  • Makefile 0.3%