mirror of https://github.com/YosysHQ/nextpnr.git
|
|
||
|---|---|---|
| common | ||
| dummy | ||
| frontend/json | ||
| gui | ||
| ice40 | ||
| python | ||
| .clang-format | ||
| .gitignore | ||
| CMakeLists.txt | ||
| README.md | ||
README.md
nextpnr -- a portable FPGA place and route tool
Supported Architectures
- iCE40
Prequisites
- CMake 3.3 or later
- Modern C++11 compiler, clang recommended
- Qt5 or later (
qt5-defaultfor Ubuntu 16.04) - Python 3.5 or later, including development libraries (
python3-devfor Ubuntu) - Boost libraries (
libboost-devorlibboost-all-devfor Ubuntu) - Icestorm, with chipdbs installed in
/usr/local/share/icebox
Building
- Use CMake to generate the Makefiles (only needs to be done when
CMakeLists.txtchanges)- 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 .
- For a debug build, run
- 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
- For all targets, just run
Running
- To run the CLI binary, just run
./nextpnr-ice40 - The Python module is called
nextpnrpy_ice40.so. To test it, runPYTHONPATH=. python3 python/python_test.py