Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PyFPGA examples

Tool-specific examples

Led blinking examples where a Bitstream is generated and transfer to a supported board. It shows the inclusion of Constraints files.

  • ghdl: VHDL synthesis with GDHL (--synth)
  • ise: Spartan-6 FPGA LX9 MicroBoard (Avnet)
  • libero: Digi-Key SmartFusion2 Maker Board (Digi-Key)
  • openflow:
    • IceStick (icestorm.py)
    • EDU-CIAA-FPGA (icestorm.py --board edu-ciaa-fpga)
    • OrangeCrab-r0.2 (prjtrellis.py)
    • ECP5 Evaluation Board (prjtrellis.py --board ecp5evn)
  • quartus: DE10Nano (Terasic)
  • vivado: Zybo (Digilent)
  • yosys:
    • Verilog synthesis with Yosys (using ghdl-yosys-plugin for VHDL)
    • Spartan-6 FPGA LX9 MicroBoard (ise.py)
    • Zybo (vivado.py)

Multi-project examples

Examples where more than a project is solved in the same script.

  • multi/projects.py: it uses a dict with three project names where different tools, part names, files and top-level names can be specified. In this manner, you can manage alternatives or sub-products of your design in a single place.
  • multi/verilog.py: here the same set of Verilog files are synthesised with all the available tools, which is useful to make comparations and check portability.
  • multi/vhdl.py: the same concept that the previous one, but using VHDL instead of Verilog files. The main difference is how to deal with VHDL libraries.
  • multi/parameters.py: VHDL and Verilog files are synthesized changing the value of its generics/parameters.
  • multi/memory.py: it tests the Memory Content Files inclusion capability of the supported tools.

Hooks examples

  • hooks/strategies.py: the same HDL is synthesized by different tools, changing the optimization strategy (area, power and speed).

Helpers

Examples to exercise developed helper tools such as hdl2bit, prj2bit and bitprog.

Miscellaneous examples