Sylvain Munaut | 546493e | 2020-09-14 10:12:56 +0200 | [diff] [blame] | 1 | # Project config |
| 2 | PROJ=e1-tracer |
| 3 | |
| 4 | PROJ_DEPS := no2e1 no2ice40 no2misc no2usb |
| 5 | PROJ_RTL_SRCS := $(addprefix rtl/, \ |
| 6 | misc.v \ |
| 7 | sysmgr.v \ |
| 8 | ) |
| 9 | PROJ_RTL_SRCS += $(addprefix ../common/rtl/, \ |
| 10 | dfu_helper.v \ |
| 11 | picorv32.v \ |
Sylvain Munaut | c75f71e | 2020-10-03 20:01:58 +0200 | [diff] [blame^] | 12 | picorv32_ice40_regs.v \ |
Sylvain Munaut | 546493e | 2020-09-14 10:12:56 +0200 | [diff] [blame] | 13 | 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 | ) |
| 22 | PROJ_PREREQ = \ |
| 23 | $(BUILD_TMP)/boot.hex \ |
| 24 | $(NULL) |
| 25 | PROJ_TOP_SRC := rtl/top.v |
| 26 | PROJ_TOP_MOD := top |
| 27 | |
| 28 | # Target config |
| 29 | BOARD ?= e1-tracer |
| 30 | DEVICE = up5k |
| 31 | PACKAGE = sg48 |
| 32 | |
| 33 | NEXTPNR_ARGS = --pre-pack data/clocks.py --seed 19 |
| 34 | |
| 35 | # Include default rules |
| 36 | NO2BUILD_DIR := ../build |
| 37 | include $(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 $< $@ |