From 8ce1cc49ae02af6ebf8d93c8a852124e5b30527c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Thu, 27 Oct 2022 20:14:17 +0200
Subject: [PATCH] Add hierarchy -libdir arith/lib when running yosys.

---
 hw/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/Makefile b/hw/Makefile
index dc67890..6302cd1 100644
--- a/hw/Makefile
+++ b/hw/Makefile
@@ -46,7 +46,7 @@ top-ice40.json: top-ice40.vl cpu-all.vl reg-file-ice40.vl mem-mux.vl \
 	instr-fetch.vl instr-decode.vl ctz.vl popc.vl srt-reciprocal.vl \
 	cpu.vl \
 	ram-unit.vl avr109rx.vl avr109tx.vl tty-ice40.vl random-bram.hex
-	yosys -q -p 'synth_ice40 -json top-ice40.json' \
+	yosys -q -p 'hierarchy -libdir arith/lib ; synth_ice40 -json top-ice40.json' \
 		-f 'verilog -sv -DICE40 -DRAM_HEX_FILE="random-bram.hex"' \
 		-L top-ice40.stats $<
 
-- 
GitLab