29 lines
651 B
Makefile
29 lines
651 B
Makefile
GHDL_FLAGS += --std=08
|
|
GHDL ?= ghdl
|
|
GHDLSYNTH ?= ghdl
|
|
YOSYS ?= yosys
|
|
ICEPACK ?= icepack
|
|
ECPPACK ?= ecppack
|
|
OPENOCD ?= openocd
|
|
COPY ?= cp -a
|
|
|
|
DEVICE_SERIES ?= ice40
|
|
DEVICE_LIB ?= $(DEVICE_SERIES)
|
|
YOSYSSYNTH ?= $(DEVICE_SERIES)
|
|
NEXTPNR ?= nextpnr-$(DEVICE_SERIES)
|
|
|
|
ifeq ($(DEVICE_SERIES),ice40)
|
|
YOSYSPIPE ?= -dsp
|
|
CONSTRAINTS_FORMAT ?= pcf
|
|
NEXTPNR_OUT ?= asc
|
|
PNR2BIT_EXT ?= asc
|
|
PACKTOOL ?= $(ICEPACK)
|
|
PACKARGS ?=
|
|
else
|
|
CONSTRAINTS_FORMAT ?= lpf
|
|
NEXTPNR_OUT ?= textcfg
|
|
PNR2BIT_EXT ?= cfg
|
|
PACKTOOL ?= $(ECPPACK)
|
|
PACKARGS ?= --compress
|
|
endif
|