blob: 5718966e6bcd9fe097d6e78069c42ea191e60f71 [file] [log] [blame]
Sylvain Munaut546493e2020-09-14 10:12:56 +02001# Project config
2PROJ=e1-tracer
3
4PROJ_DEPS := no2e1 no2ice40 no2misc no2usb
5PROJ_RTL_SRCS := $(addprefix rtl/, \
6 misc.v \
7 sysmgr.v \
8)
9PROJ_RTL_SRCS += $(addprefix ../common/rtl/, \
Sylvain Munautff0ab3e2020-10-03 20:15:28 +020010 capcnt.v \
11 capcnt_sb_mac16.v \
Sylvain Munaut546493e2020-09-14 10:12:56 +020012 dfu_helper.v \
13 picorv32.v \
Sylvain Munautc75f71e2020-10-03 20:01:58 +020014 picorv32_ice40_regs.v \
Sylvain Munaut546493e2020-09-14 10:12:56 +020015 soc_base.v \
16 soc_bram.v \
17 soc_iobuf.v \
18 soc_picorv32_bridge.v \
19 soc_spram.v \
20 wb_arbiter.v \
21 wb_dma.v \
22 wb_epbuf.v \
23)
24PROJ_PREREQ = \
25 $(BUILD_TMP)/boot.hex \
26 $(NULL)
27PROJ_TOP_SRC := rtl/top.v
28PROJ_TOP_MOD := top
29
30# Target config
31BOARD ?= e1-tracer
Sylvain Munaut0f29d6a2020-10-09 13:22:58 +020032DEVICE := up5k
33PACKAGE := sg48
Sylvain Munaut546493e2020-09-14 10:12:56 +020034
Sylvain Munaut0f29d6a2020-10-09 13:22:58 +020035SEED ?= 19
36NEXTPNR_ARGS := --no-promote-globals --pre-pack data/clocks.py --seed $(SEED)
37
38ifeq ($(IGNORE_TIMING),1)
39 NEXTPNR_ARGS += --timing-allow-fail
40endif
Sylvain Munaut546493e2020-09-14 10:12:56 +020041
42# Include default rules
Sylvain Munaut84717d62020-10-03 20:18:00 +020043NO2BUILD_DIR ?= ../build
Sylvain Munaut546493e2020-09-14 10:12:56 +020044include $(NO2BUILD_DIR)/project-rules.mk
45
46# Custom rules
47../common/fw/boot.hex:
48 make -C ../common/fw boot.hex
49
50$(BUILD_TMP)/boot.hex: ../common/fw/boot.hex
51 cp $< $@