Add iverilog syntax check target
This commit is contained in:
parent
22bce1bdeb
commit
0306c4dc72
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
|
@ -20,7 +20,7 @@ AS = $(TARGET)-as
|
|||
ASFLAGS = -march=rv32i -mabi=ilp32
|
||||
OBJCOPY = $(TARGET)-objcopy
|
||||
|
||||
.PHONY: all clean time stat flash
|
||||
.PHONY: all clean check time stat flash
|
||||
|
||||
all: $(TOP).bin
|
||||
|
||||
|
|
@ -41,6 +41,9 @@ $(PLL):
|
|||
$(BLIF): $(YS) $(SRC) progmem_syn.hex
|
||||
yosys $(QUIET) -s $<
|
||||
|
||||
check: $(SRC)
|
||||
iverilog -Wall -t null -g2012 `yosys-config --datdir/ice40/cells_sim.v` top.sv
|
||||
|
||||
$(ASC_SYN): $(BLIF) $(PCF)
|
||||
arachne-pnr $(QUIET) -d $(DEVICE) -P $(PACKAGE) -o $@ -p $(PCF) $<
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue