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