Add yosys-config --datdir workaround
The yosys-git AUR package doesn't set the PREFIX variable correctly.
This commit is contained in:
parent
9f8ca8c496
commit
d97f8c5e8e
2 changed files with 3 additions and 2 deletions
|
|
@ -6,4 +6,4 @@ stages:
|
|||
build:
|
||||
stage: build
|
||||
script:
|
||||
- make syntax time stat
|
||||
- make YS_ICE40=/usr/share/yosys/ice40/cells_sim.v syntax time stat
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -4,6 +4,7 @@ SRC = $(sort $(wildcard *.sv) $(PLL))
|
|||
TOP = top
|
||||
SV = $(TOP).sv
|
||||
YS = $(TOP).ys
|
||||
YS_ICE40 = `yosys-config --datdir/ice40/cells_sim.v`
|
||||
BLIF = $(TOP).blif
|
||||
ASC_SYN = $(TOP)_syn.asc
|
||||
ASC = $(TOP).asc
|
||||
|
|
@ -43,7 +44,7 @@ $(BLIF): $(YS) $(SRC) progmem_syn.hex
|
|||
yosys $(QUIET) -s $<
|
||||
|
||||
syntax: $(SRC) progmem_syn.hex
|
||||
iverilog -Wall -t null -g2012 `yosys-config --datdir/ice40/cells_sim.v` $(SV)
|
||||
iverilog -Wall -t null -g2012 $(YS_ICE40) $(SV)
|
||||
|
||||
$(ASC_SYN): $(BLIF) $(PCF)
|
||||
arachne-pnr $(QUIET) -d $(DEVICE) -P $(PACKAGE) -o $@ -p $(PCF) $<
|
||||
|
|
|
|||
Loading…
Reference in a new issue