From 77a6b2dd26ac1a1638264434f019aedd385d3a39 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Wed, 14 Feb 2018 16:45:10 -0600 Subject: 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 --- scripts/icestorm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit