This repository lets you install various toolchains for Lattice's Nexus, iCE40 and ECP5 FPGAs via Homebrew.
It's been forked and extended from Kate Temkin's repository which can be found here.
You can run these formulas depending on which chip families you require. They will also install the relevant dependencies such as Yosys, icestorm and Project Oxide.
For Nexus parts:
brew install --HEAD siliconwitchery/oss-fpga/nextpnr-nexus
For iCE40 parts:
brew install --HEAD siliconwitchery/oss-fpga/nextpnr-ice40
For ECP5 parts:
brew install --HEAD siliconwitchery/oss-fpga/nextpnr-ecp5
That's it! You should be able to run all the development tools directly from the command line.
For simulation, verification and programming, gtkwave, iverilog, openFPGALoader can be quite useful, and some of our examples use them.
brew install gtkwave icarus-verilog openfpgaloader
To run gtkwave, you may need to install the Switch module for Perl
sudo perl -MCPAN -e 'install Switch'
You can install Nordic's nRF and ARM Cortex related tools from homebrew too! Here's how to install the JLink drivers, nRF command line tools and the ARM GCC toolchain.
brew install homebrew/cask-drivers/segger-jlink
brew install homebrew/cask-drivers/nordic-nrf-command-line-tools
brew install --cask gcc-arm-embedded
Note for Apple Silicon Macs. The latest GCC ARM is currently broken. It will install but not run correctly. In that case install the 2021 version version using the command:
brew install siliconwitchery/oss-fpga/gcc-arm-embedded
The forked files remain copyrighted to Kate as per the original license which is included in this repository. The new additions are licensed under the ISC Licence as follows:
ISC License
Copyright 2021 Silicon Witchery AB
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.