blob: e3d08b85b052c3ff07edea7f8b27913afb19bdd3 [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
32DEVICE = up5k
33PACKAGE = sg48
34
35NEXTPNR_ARGS = --pre-pack data/clocks.py --seed 19
36
37# Include default rules
Sylvain Munaut84717d62020-10-03 20:18:00 +020038NO2BUILD_DIR ?= ../build
Sylvain Munaut546493e2020-09-14 10:12:56 +020039include $(NO2BUILD_DIR)/project-rules.mk
40
41# Custom rules
42../common/fw/boot.hex:
43 make -C ../common/fw boot.hex
44
45$(BUILD_TMP)/boot.hex: ../common/fw/boot.hex
46 cp $< $@