# 使用 Homebrew, apk, apt 安装 nextpnr-ice40

查看 nextpnr-ice40 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:nextpnr-ice40
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nextpnr-ice40
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add nextpnr-ice40
```

  证据: Alpine Linux edge package indexes: nextpnr-ice40 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install nextpnr-ice40
```

  证据: Debian stable package indexes: nextpnr-ice40 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:nextpnr-ice40
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nextpnr-ice40>
- **版本:** 0.10
- **来源摘要:** Portable FPGA place and route tool for Lattice iCE40
- **主页:** <https://github.com/YosysHQ/nextpnr>
- **仓库:** <https://github.com/YosysHQ/nextpnr>
- **许可证:** ISC
- **源码归档:** <https://github.com/YosysHQ/nextpnr/archive/refs/tags/nextpnr-0.10.tar.gz>
- **最后更新:** 2026-06-22T14:05:37-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- nextpnr-ice40 (cli)
- nextpnr-ice40 (别名)

## 依赖

- boost
- eigen
- icestorm
- python@3.14

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.10
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/YosysHQ/nextpnr
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

nextpnr-ice40 is the Lattice iCE40 build of nextpnr, YosysHQ's portable FPGA place-and-route tool. In the open FPGA stack it sits after synthesis: Yosys emits a JSON netlist, nextpnr-ice40 performs pack/place/route against the iCE40 architecture database, and IceStorm turns the routed ASCII bitstream into a programmable binary.

The project matters because it helped move the iCE40 flow away from one-off place-and-route tooling toward a retargetable FOSS framework. Public project material describes nextpnr as vendor-neutral and timing-driven, with iCE40 support backed by Project IceStorm and later support for ECP5, Nexus, Gowin, GateMate, and experimental back ends.

### 项目历史

A 35C3 talk described nextpnr as the next step after Project IceStorm, replacing arachne-pnr in the open-source iCE40 flow while opening a path to multiple FPGA vendors. The 2019 Yosys+nextpnr paper framed the combination of Yosys and nextpnr as an architecture-neutral open-source Verilog-to-bitstream framework for commercial FPGAs, with iCE40 and ECP5 as hardware-proven early targets.

### 采用历史

Adoption is strongest among people using small Lattice iCE40 boards, open hardware examples, CI-able FPGA builds, and education/hobbyist workflows where the vendor IDE is too heavy. GitHub showed about 1.7k stars and 318 forks on the nextpnr repository when researched, and the Homebrew API generated on 2026-04-23 reported 50 installs-on-request in the preceding 365 days for the separate nextpnr-ice40 formula.

### 使用方式

Package nerd usage is usually scripted: synthesize Verilog with `yosys -p 'synth_ice40 ... -json design.json'`, run `nextpnr-ice40 --json design.json --pcf pins.pcf --asc design.asc`, then use `icepack` and `iceprog` from IceStorm. The Homebrew formula encodes that relationship directly by depending on `icestorm` and using `yosys` for its test dependency.

### 为什么软件包爱好者会关心

The formula is intentionally architecture-specific rather than a monolithic all-FPGA build. That packaging shape mirrors nextpnr's build system, where `-DARCH=ice40` builds the iCE40 executable and keeps users from pulling every supported architecture database when they only need Lattice iCE40.

### 时间线

- 2018-12: 35C3 talk presented nextpnr as a retargetable FOSS place-and-route tool replacing arachne-pnr in the IceStorm flow.
- 2019-03: Yosys+nextpnr paper described the framework for open Verilog-to-bitstream flows.
- 2026-03-12: GitHub release listing showed nextpnr 0.10 as the latest release.
- 2026-04-23: Homebrew formula API generated data for nextpnr-ice40 0.10.

### Related projects

- Yosys
- Project IceStorm
- arachne-pnr
- Project Trellis
- Project Oxide

### 来源

- <https://arxiv.org/pdf/1903.10407>
- <https://formulae.brew.sh/api/formula/nextpnr-ice40.json>
- <https://github.com/YosysHQ/nextpnr>
- <https://media.ccc.de/v/35c3-9612-the_nextpnr_foss_fpga_place-and-route_tool>
- <https://prjicestorm.readthedocs.io/en/latest/overview.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nextpnr-ice40
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Debian apt - nextpnr-ice40 - 0.7-1+b2: normalized package name match | Debian stable package indexes: nextpnr-ice40 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FPGA place and route tool for Lattice iCE40 | https://github.com/YosysHQ/nextpnr
- Ubuntu apt - nextpnr-ice40 - 0.6-3build5: normalized package name match | Ubuntu 24.04 LTS package indexes: nextpnr-ice40 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FPGA place and route tool for Lattice iCE40 | https://github.com/YosysHQ/nextpnr
- apk - nextpnr-ice40 - 0.7-r0: normalized package name match | Alpine Linux edge package indexes: nextpnr-ice40 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | portable FPGA place and route tool for ice40 | https://github.com/YosysHQ/nextpnr


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [icestorm](https://pkg.so/zh-hans/brew/icestorm/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [openfpgaloader](https://pkg.so/zh-hans/brew/openfpgaloader/) - Shares pkgdb curated category or tags: cli, developer-tools, fpga, hardware.
- [prjtrellis](https://pkg.so/zh-hans/brew/prjtrellis/) - Shares pkgdb curated category or tags: cli, developer-tools, fpga, hardware.
- [sigrok-cli](https://pkg.so/zh-hans/brew/sigrok-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, hardware.
- [rggen](https://pkg.so/zh-hans/brew/rggen/) - Shares pkgdb curated category or tags: cli, developer-tools, fpga, hardware.
- [yosys](https://pkg.so/zh-hans/brew/yosys/) - Shares pkgdb curated category or tags: cli, developer-tools, eda, fpga.
- [icarus-verilog](https://pkg.so/zh-hans/brew/icarus-verilog/) - Shares pkgdb curated category or tags: cli, developer-tools, eda.
- [gerbv](https://pkg.so/zh-hans/brew/gerbv/) - Shares pkgdb curated category or tags: cli, developer-tools, eda.
- [easyeda2kicad](https://pkg.so/zh-hans/brew/easyeda2kicad/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, eda, python.

## Combined YAML source

View the package source record on GitHub. [combined/nextpnr-ice40.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nextpnr-ice40.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
