From af3b1bb75de312db5e7c3c840787b96b0e5853d9 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Fri, 11 Jan 2019 16:49:18 -0600 Subject: scripts/icestorm: dedupe calls to yosys-config Signed-off-by: Austin Seipp --- scripts/icestorm/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/icestorm') diff --git a/scripts/icestorm/Makefile b/scripts/icestorm/Makefile index 2337600..a9391fc 100644 --- a/scripts/icestorm/Makefile +++ b/scripts/icestorm/Makefile @@ -1,5 +1,7 @@ TOOLCHAIN_PREFIX = riscv32-unknown-elf- +ICE40_SIM_CELLS=$(shell yosys-config --datdir/ice40/cells_sim.v) + # set to 4 for simulation FIRMWARE_COUNTER_BITS=18 @@ -52,7 +54,7 @@ example_sim_vcd: example_tb.vvp ## post-synth simulation synth_tb.vvp: example_tb.v synth.json - iverilog -o $@ -s testbench synth.v example_tb.v `yosys-config --datdir/ice40/cells_sim.v` + iverilog -o $@ -s testbench synth.v example_tb.v $(ICE40_SIM_CELLS) chmod -x $@ synth_sim: synth_tb.vvp @@ -68,7 +70,7 @@ route.v: example.asc example.pcf icebox_vlog -L -n top -sp example.pcf $< > $@ route_tb.vvp: route.v example_tb.v - iverilog -o $@ -s testbench $^ `yosys-config --datdir/ice40/cells_sim.v` + iverilog -o $@ -s testbench $^ $(ICE40_SIM_CELLS) chmod -x $@ route_sim: route_tb.vvp -- cgit