Package Details: nextpnr-git 0.8.r2.g7a3a43e-1

Git Clone URL: https://aur.archlinux.org/nextpnr-git.git (read-only, click to copy)
Package Base: nextpnr-git
Description: Portable FPGA place and route tool
Upstream URL: https://github.com/YosysHQ/nextpnr
Licenses: ISC
Conflicts: nextpnr
Provides: nextpnr
Submitter: grahamedgecombe
Maintainer: xiota (thotypous)
Last Packager: xiota
Votes: 26
Popularity: 0.30
First Submitted: 2018-08-02 17:35 (UTC)
Last Updated: 2025-04-16 23:43 (UTC)

Required by (5)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

xiretza commented on 2021-05-16 07:59 (UTC)

@rpls: thanks, added!

rpls commented on 2021-05-15 23:56 (UTC)

Nextpnr now support GowinSemi FPGAs with "Project Apicula". I added a package for the requirements and validated it on a FPGA with the examples provided by prjapicula.

diff --git a/PKGBUILD b/PKGBUILD
index 15571c6..572b12c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ url='https://github.com/YosysHQ/nextpnr'
 license=('custom:ISC')
 depends=('boost-libs' 'python' 'qt5-base')
 makedepends=('boost' 'cmake' 'eigen' 'git' 'icestorm' 'prjtrellis'
-             'prjtrellis-db' 'prjoxide')
+             'prjtrellis-db' 'prjoxide' 'prjapicula')
 provides=('nextpnr')
 conflicts=('nextpnr')
 source=('nextpnr::git+https://github.com/YosysHQ/nextpnr.git')
@@ -26,10 +26,11 @@ build() {
   cd build

   cmake \
-    -DARCH=generic\;ice40\;ecp5\;nexus \
+    -DARCH=generic\;ice40\;ecp5\;nexus\;gowin \
     -DICESTORM_INSTALL_PREFIX=/usr \
     -DTRELLIS_INSTALL_PREFIX=/usr \
     -DOXIDE_INSTALL_PREFIX=/usr \
+    -DGOWIN_BBA_EXECUTABLE=/usr/bin/gowin_bba \
     -DBUILD_TESTS=ON \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
     -DCMAKE_INSTALL_PREFIX=/usr \

xiretza commented on 2021-03-12 21:39 (UTC)

@jamonterrell: see my comment below yours, the VCS package guidelines actually tell you how to add the submodules to source=() properly.

jamonterrell commented on 2021-03-12 21:30 (UTC)

This is currently not working due to git submodules not being updated before build (causes -lpthreads error).

Fix below:

diff --git a/PKGBUILD b/PKGBUILD
index f2d607c..a1fe78c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,6 +22,8 @@ pkgver() {
 build() {
   cd "$srcdir/nextpnr"

+  git submodule init
+  git submodule update
   mkdir -p build
   cd build

xiretza commented on 2021-03-10 22:45 (UTC)

Since https://github.com/YosysHQ/nextpnr/pull/607, nextpnr now has a submodule for abseil-cpp that has to be added to source and initialized accordingly. Also there's a warning about -DICEBOX_ROOT= being deprecated, see @rpls' comment.

rpls commented on 2021-01-18 20:46 (UTC) (edited on 2021-01-18 20:46 (UTC) by rpls)

nextpnr now supports another FPGA architecture with "Project Oxide". I added a package for the requirements and validated it with the examples provided by prjoxide. Also the icestorm requirement is now referenced as ICESTORM_INSTALL_PREFIX in the CMake script.

diff --git a/PKGBUILD b/PKGBUILD
index f2d607c..4c33916 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ url='https://github.com/YosysHQ/nextpnr'
 license=('custom:ISC')
 depends=('boost-libs' 'python' 'qt5-base')
 makedepends=('boost' 'cmake' 'eigen' 'git' 'icestorm' 'prjtrellis'
-             'prjtrellis-db')
+             'prjtrellis-db' 'prjoxide')
 provides=('nextpnr')
 conflicts=('nextpnr')
 source=('nextpnr::git+https://github.com/YosysHQ/nextpnr.git')
@@ -26,9 +26,10 @@ build() {
   cd build

   cmake \
-    -DARCH=generic\;ice40\;ecp5 \
-    -DICEBOX_ROOT=/usr/share/icebox \
+    -DARCH=generic\;ice40\;ecp5\;nexus \
+    -DICESTORM_INSTALL_PREFIX=/usr \
     -DTRELLIS_INSTALL_PREFIX=/usr \
+    -DOXIDE_INSTALL_PREFIX=/usr \
     -DBUILD_TESTS=ON \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
     -DCMAKE_INSTALL_PREFIX=/usr \

zoe1337 commented on 2020-12-18 19:30 (UTC)

shouldn't this PKGBUILD depend on prjtrellis instead of trellis?

xiretza commented on 2020-12-08 12:06 (UTC)

nextpnr now no longer builds the GUI by default, could you add a -DBUILD_GUI=ON to the cmake invocation?

ignilux commented on 2020-11-12 14:02 (UTC)

For what it's worth, I had the same build error with a fresh icestorm-git build/install. When I aborted nextpnr-git and installed trellis-git FIRST, then nextpnr-git builds fine.

marzoul commented on 2020-03-21 09:37 (UTC)

Follow-up : python issue is caused by wrong detection of python version from repo. No known solution yet. https://github.com/YosysHQ/nextpnr/issues/411