How To Install nextpnr on Fedora 34

nextpnr is FPGA place and route tool

Introduction

In this tutorial we learn how to install nextpnr on Fedora 34.

What is nextpnr

nextpnr aims to be a vendor neutral, timing driven, FOSS FPGA place and route tool.

We can use yum or dnf to install nextpnr on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install nextpnr.

Install nextpnr on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install nextpnr using dnf by running the following command:

sudo dnf -y install nextpnr

Install nextpnr on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install nextpnr using yum by running the following command:

sudo yum -y install nextpnr

How To Uninstall nextpnr on Fedora 34

To uninstall only the nextpnr package we can use the following command:

sudo dnf remove nextpnr

nextpnr Package Contents on Fedora 34

/usr/bin/nextpnr-ecp5
/usr/bin/nextpnr-generic
/usr/bin/nextpnr-ice40
/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/1e5487e146d9f5106808d9f49bcb97731e724e
/usr/lib/.build-id/94
/usr/lib/.build-id/94/eea901a6943fcecbcc19669f12e407b24a8dac
/usr/lib/.build-id/db
/usr/lib/.build-id/db/56fb4ace1f25fab868a67e584d431612b7af6b
/usr/share/doc/nextpnr
/usr/share/doc/nextpnr/README.md
/usr/share/doc/nextpnr/docs
/usr/share/doc/nextpnr/docs/archapi.md
/usr/share/doc/nextpnr/docs/coding.md
/usr/share/doc/nextpnr/docs/constraints.md
/usr/share/doc/nextpnr/docs/faq.md
/usr/share/doc/nextpnr/docs/generic.md
/usr/share/doc/nextpnr/docs/ice40.md
/usr/share/doc/nextpnr/docs/netlist.md
/usr/share/doc/nextpnr/docs/nexus.md
/usr/share/doc/nextpnr/docs/python.md
/usr/share/doc/nextpnr/examples
/usr/share/doc/nextpnr/examples/ice40
/usr/share/doc/nextpnr/examples/ice40/blinky
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.pcf
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.proj
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.sh
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.v
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.ys
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky_tb.v
/usr/share/doc/nextpnr/examples/ice40/floorplan
/usr/share/doc/nextpnr/examples/ice40/floorplan/.gitignore
/usr/share/doc/nextpnr/examples/ice40/floorplan/floorplan.py
/usr/share/doc/nextpnr/examples/ice40/floorplan/floorplan.sh
/usr/share/doc/nextpnr/examples/ice40/floorplan/floorplan.v
/usr/share/doc/nextpnr/examples/ice40/floorplan/icebreaker.pcf
/usr/share/licenses/nextpnr
/usr/share/licenses/nextpnr/COPYING
/usr/share/licenses/nextpnr/LICENSE-imgui.txt
/usr/share/licenses/nextpnr/LICENSE-python-console.txt
/usr/share/licenses/nextpnr/LICENSE-qtimgui.txt
/usr/bin/nextpnr-ecp5
/usr/bin/nextpnr-generic
/usr/bin/nextpnr-ice40
/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/f6421b6c4e28f0fc9c286abcf5f158b16426b2
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/1ba544db7da33bec6cba1d8281b266214f040f
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/8c2af4bb7b0b4cb107919e94761b1d7a737296
/usr/share/doc/nextpnr
/usr/share/doc/nextpnr/README.md
/usr/share/doc/nextpnr/docs
/usr/share/doc/nextpnr/docs/archapi.md
/usr/share/doc/nextpnr/docs/coding.md
/usr/share/doc/nextpnr/docs/constraints.md
/usr/share/doc/nextpnr/docs/faq.md
/usr/share/doc/nextpnr/docs/generic.md
/usr/share/doc/nextpnr/docs/ice40.md
/usr/share/doc/nextpnr/docs/netlist.md
/usr/share/doc/nextpnr/docs/nexus.md
/usr/share/doc/nextpnr/docs/python.md
/usr/share/doc/nextpnr/examples
/usr/share/doc/nextpnr/examples/ice40
/usr/share/doc/nextpnr/examples/ice40/blinky
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.pcf
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.proj
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.sh
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.v
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky.ys
/usr/share/doc/nextpnr/examples/ice40/blinky/blinky_tb.v
/usr/share/doc/nextpnr/examples/ice40/floorplan
/usr/share/doc/nextpnr/examples/ice40/floorplan/.gitignore
/usr/share/doc/nextpnr/examples/ice40/floorplan/floorplan.py
/usr/share/doc/nextpnr/examples/ice40/floorplan/floorplan.sh
/usr/share/doc/nextpnr/examples/ice40/floorplan/floorplan.v
/usr/share/doc/nextpnr/examples/ice40/floorplan/icebreaker.pcf
/usr/share/licenses/nextpnr
/usr/share/licenses/nextpnr/COPYING
/usr/share/licenses/nextpnr/LICENSE-imgui.txt
/usr/share/licenses/nextpnr/LICENSE-python-console.txt
/usr/share/licenses/nextpnr/LICENSE-qtimgui.txt

References

Summary

In this tutorial we learn how to install nextpnr on Fedora 34 using yum and dnf.