How to install NextPnR with Docker ?

nextpnr

Today’s post is a short one, more like a ticket than a proper article. It’s part of a larger series that shows how to install Yosys and Icestorm with docker, and how to use them for a full open-source project.

This article is a prerequisite for the bigger article : From HDL to FPGA Bitstream with Open Source toolchain

NextPnR Dockerfile

The dockerfile are available on the blog github here and under.

To install docker check the “get Docker” page.

FROM icestorm:latest

RUN git clone https://github.com/YosysHQ/nextpnr nextpnr

RUN cd nextpnr; \ 
    git submodule init && git submodule update; \
    cmake . -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/usr/local; \
    make -j$(nproc); \
    make install

To build a docker image here is the template command:

docker build -t <image_name>:<version> .

The following command will create a “nextpnr:latest” image (no version give the “latest” version by default):

docker build -t nextpnr .

Leave a Reply

Your email address will not be published. Required fields are marked *

How to install NextPnR with Docker ?

dark blue dot

Summary

Share it !

Get my Ebook ?

ebook_hero-home

Jumpstart you FPGA journey by

• Understanding the place of FPGA in industry
• Learn about internal composition of an FPGA
• A simple beginner friendly project
• An overview of the FPGA workflow
ebook_banner_11