nextpnr portable FPGA place and route tool
Go to file
David Shah 67a5cedbe3 ice40: Pack constants to LCs
Signed-off-by: David Shah <davey1576@gmail.com>
2018-06-12 13:09:36 +02:00
3rdparty Made gtest work on MINGW with solution from https://github.com/google/googletest/issues/606 2018-06-12 08:06:27 +02:00
common ice40: Start working on a packer, currently not tested 2018-06-12 12:13:11 +02:00
dummy Add "nextpnr.h" 2018-06-11 20:12:57 +02:00
frontend/json Add "nextpnr.h" 2018-06-11 20:12:57 +02:00
gui Clang format to ignore 3rdparty and fix one file 2018-06-11 21:36:54 +02:00
ice40 ice40: Pack constants to LCs 2018-06-12 13:09:36 +02:00
python ice40: Debugging the packer 2018-06-12 12:46:30 +02:00
tests Added dummy tests per arch 2018-06-11 21:30:22 +02:00
.clang-format Fix clang-format include order issues 2018-06-07 12:48:53 +02:00
.gitignore Fix gitignore 2018-06-11 21:30:22 +02:00
CMakeLists.txt Clang format to ignore 3rdparty and fix one file 2018-06-11 21:36:54 +02:00
README.md Updating README.md 2018-06-08 11:24:32 +02:00

nextpnr -- a portable FPGA place and route tool

Supported Architectures

  • iCE40

Prequisites

  • CMake 3.3 or later
  • Modern C++11 compiler, clang recommended (clang-format required for development)
  • Qt5 or later (qt5-default for Ubuntu 16.04)
  • Python 3.5 or later, including development libraries (python3-dev for Ubuntu)
  • Boost libraries (libboost-dev or libboost-all-dev for Ubuntu)
  • Icestorm, with chipdbs installed in /usr/local/share/icebox
  • Latest git Yosys is required to synthesise the demo design

Building

  • Use CMake to generate the Makefiles (only needs to be done when CMakeLists.txt changes)
    • For a debug build, run cmake -DCMAKE_BUILD_TYPE=Debug .
    • For a debug build with HX1K support only, run cmake -DCMAKE_BUILD_TYPE=Debug -DICE40_HX1K_ONLY=1 .
    • For a release build, run cmake .
  • Use Make to run the build itself
    • For all targets, just run make
    • For just the iCE40 CLI binary, run make nextpnr-ice40
    • For just the iCE40 Python module, run make nextpnrpy_ice40
    • Using too many parallel jobs may lead to out-of-memory issues due to the significant memory needed to build the chipdbs

Running

  • To run the CLI binary, just run ./nextpnr-ice40 (you should see command line help)
  • To start the UI, run ./nextpnr-ice40 --gui
  • The Python module is called nextpnrpy_ice40.so. To test it, run PYTHONPATH=. python3 python/python_mod_test.py

Notes

  • All code is formatted using clang-format according to the style rules in .clang-format (LLVM based with increased indent widths and brace wraps after classes).
  • To automatically format all source code, run make clangformat.