Skip to content

bboydt/scons-fpga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scons-fpga 👾

A collection of SCons tools for building bitstreams and testing designs.

Tools

You can specific tools with the following names:

How to use

  1. For each tool you want add <tool>.py into your SCons tools (i.e. site_scons/site_tools/).
    or
    Add this repo as a submodule to your repo and add its path to toolpath in your environment.
  2. Include the tools in your environment and configure flags. See the tool files for construction variable names.
env = Environment(tools = ['yosys', 'nextpnr.py', 'trellis.py', 'icarus', ...], ...)
  1. Build a bitstream!
ast = env.YosysScript("synth_soc.ys")
textcfg = env.Ecp5Pnr(ast)
bitstream = env.Ecp5Bitstream(textcfg)

Note on Yosys Tool

I'm not very happy with how this works atm. It will likely change.

About

A SCons tool for building ECP5 bitstreams.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages