blob: b92a25876f1e53881ec319272e3b5b21d32173c5 [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/, \
10 dfu_helper.v \
11 picorv32.v \
Sylvain Munautc75f71e2020-10-03 20:01:58 +020012 picorv32_ice40_regs.v \
Sylvain Munaut546493e2020-09-14 10:12:56 +020013 soc_base.v \
14 soc_bram.v \
15 soc_iobuf.v \
16 soc_picorv32_bridge.v \
17 soc_spram.v \
18 wb_arbiter.v \
19 wb_dma.v \
20 wb_epbuf.v \
21)
22PROJ_PREREQ = \
23 $(BUILD_TMP)/boot.hex \
24 $(NULL)
25PROJ_TOP_SRC := rtl/top.v
26PROJ_TOP_MOD := top
27
28# Target config
29BOARD ?= e1-tracer
30DEVICE = up5k
31PACKAGE = sg48
32
33NEXTPNR_ARGS = --pre-pack data/clocks.py --seed 19
34
35# Include default rules
36NO2BUILD_DIR := ../build
37include $(NO2BUILD_DIR)/project-rules.mk
38
39# Custom rules
40../common/fw/boot.hex:
41 make -C ../common/fw boot.hex
42
43$(BUILD_TMP)/boot.hex: ../common/fw/boot.hex
44 cp $< $@