diff options
author | Austin Seipp <aseipp@pobox.com> | 2018-02-14 16:45:10 -0600 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2018-02-14 16:54:47 -0600 |
commit | 77a6b2dd26ac1a1638264434f019aedd385d3a39 (patch) | |
tree | 0360e4fcbe4148013fa4ede6555c9aa12723e30d /scripts | |
parent | 2260d2ab8a04dfa1a8b2d60d052770ea50f2472f (diff) | |
download | picorv32-77a6b2dd26ac1a1638264434f019aedd385d3a39.tar.gz picorv32-77a6b2dd26ac1a1638264434f019aedd385d3a39.zip |
scripts/icestorm: use 'yosys-config' to find data directory
This fixes the icestorm script to query yosys-config itself for the
right data directory. Not only does this fix installs where yosys was
not installed into /usr/local, it also ensures Icarus picks up a data
directory consistent with the version of yosys that you're using.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/icestorm/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/icestorm/Makefile b/scripts/icestorm/Makefile index cd3b018..b86995f 100644 --- a/scripts/icestorm/Makefile +++ b/scripts/icestorm/Makefile @@ -35,7 +35,7 @@ example_sim_vcd: example_tb.vvp vvp -N example_tb.vvp +vcd synth_tb.vvp: example_tb.v synth.blif - iverilog -o synth_tb.vvp -s testbench synth.v example_tb.v /usr/local/share/yosys/ice40/cells_sim.v + iverilog -o synth_tb.vvp -s testbench synth.v example_tb.v `yosys-config --datdir/ice40/cells_sim.v` chmod -x synth_tb.vvp synth_sim: synth_tb.vvp @@ -48,7 +48,7 @@ route.v: example.asc icebox_vlog -L -n top -sp example.pcf example.asc > route.v route_tb.vvp: example_tb.v route.v - iverilog -o route_tb.vvp -s testbench route.v example_tb.v /usr/local/share/yosys/ice40/cells_sim.v + iverilog -o route_tb.vvp -s testbench route.v example_tb.v `yosys-config --datdir/ice40/cells_sim.v` chmod -x route_tb.vvp route_sim: route_tb.vvp |