# Installing the Open Source FPGA tool chain on Mac [[ICE Breaker FPGA Development Board]] ## Installing the Open Source FPGA tool chain on Mac Following instructions from:https://www.twam.info/software/using-the-icebreaker-with-an-open-source-fpga-toolchain-on-os-x How I did it 2022-11-05 >Note: some of these steps are slow with no visual indication of progress. 1. `brew tap twam/openfpga` 2. `brew install yosys` 3. `brew install icestorm` 4. `brew install nextpnr --with-gui --without-arch-ecp5` 5. Navigate to a project directory 6. `git clone https://github.com/icebreaker-fpga/icebreaker-examples.git` 7. Go to your favorite example, e.g. using - `cd icebreaker-examples/blink_count_shift` 8. `make` 9. Connect your iCEBreaker via USB and run the example using - `make prog` #### Installing nextpnr with a gui, after the fact on [[2023-05-18]] - Tryin to get glasgow to comminicate on the LVDS pins, see [[Glasgow board definition in Amaranth]] - Want to see what we are actually wiring things to - My install of next PNR that I did for glasgow does not have the gui, so I am trying to reinstall with GUI - BUT when I ran `brew install nextpnr --with-gui --without-arch-ecp5` - I got `Error: invalid option: --with-gui` - From the readme, I need QT5 installed, do I have qt5? - I dont see it in brew... - I also dont see it in my path where it says it would be - I remembered that for Glasgow I tapped ktempkin open FPGA, so I am going to try trapping TWAM and see what that does - Beacuse I have multiple taps: `**>** brew install twam/openfpga/icestorm/nextpnr --with-gui --without-arch-ecp5` - Ok still got the invalid option error - Installing QT5 now - Ran install again, did not work for same error - Untapped TWAM again, leaving ktempkin - Looking in KTEMKINs formula, in the cmake line, the build with gui flag is not sellected - [[building nextpnr with GUI]] ### Errors Encountered Ran `brew install nextpnr --with-gui --without-arch-ecp5` ``` Error: Your Xcode (13.1) is outdated. Please update to Xcode 13.4 (or delete it). Xcode can be updated from the App Store. ``` Resolved by updating xcode in the app store.