Build Problems and OS X Support
I'm trying to get this toolchain (minus vivado) running on Mac OS 10.14.6, and have run into a few problems; some may be Mac related, and perhaps that's unsupported, but some seem more general.
Following the Readme:
Set up all tools and added them to my path, set appropriate environment variables.
$ source settings.sh
no such file. From the git history, it looks like it's been renamed env.sh, so I used that instead.
$ make env
no such target. Looks like make conda might be appropriate, since we're setting up a python environment. So I ran that, and did some manual setup that I don't recall at the moment to get things running.
$ python3 fpgaperf.py --toolchain arachne --project oneblink --device "hx8k" --package "ct256" --board "breakout"
fpgaperf.py: error: --family argument required. Looks like it's missing a required flag. Looking at the next example, I set family to xc7. This may well be wrong, but it made the tool run.
That ran the Yosys portion successfully, but then generated the following error:
This looks like something I've run into before when trying to read hierarchical blifs with tools that don't support them. But at this point I decided to ask for help. It seems like the readme is out of date; if anyone could direct me on how to properly get started with this tool, I'd really appreciate it.
Thanks, Scott
Thanks for filing this @srtemp.
Regarding the various README issues you are right, there have been quite some changes lately and the README is out of date, I will update it accordingly.
Currently, ice40 tests are not being run in CI, therefore it may be that the blif error is a latent bug in fpga-tool-perf. I'll try to add that as well to the benchmarks run in CI.
@srtemp FYI, the README has been updated
Thanks @acomodi I'll give it another try! I appreciate you working on this so promptly
@srtemp If you don't mind using Nix on your Mac, you could try: https://github.com/HackerFoo/nix-symbiflow
Then, in your checked out repo, run:
nix-shell /path/to/nix-symbiflow -A fpga-tool-perf --use-prebuilt-symbiflow false
It will take a while.
GitHub
Nix packages for SymbiFlow projects and dependencies - HackerFoo/nix-symbiflow
@HackerFoo Thank you; I'll give that a try. I just moved to using a VM with 16.04 and have gotten it running, but a native install would be much better. I appreciate it.