Makefile 744 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Project config
  2. PROJ = usb_amr
  3. PROJ_DEPS := no2usb no2misc no2ice40
  4. PROJ_RTL_SRCS := $(addprefix rtl/, \
  5. mc97.v \
  6. mc97_fifo.v \
  7. mc97_wb.v \
  8. dfu_helper.v \
  9. picorv32.v \
  10. picorv32_ice40_regs.v \
  11. soc_bram.v \
  12. soc_picorv32_base.v \
  13. soc_picorv32_bridge.v \
  14. soc_spram.v \
  15. soc_usb.v \
  16. sysmgr.v \
  17. )
  18. PROJ_TESTBENCHES := \
  19. mc97_tb \
  20. $(NULL)
  21. PROJ_PREREQ = \
  22. $(BUILD_TMP)/boot.hex
  23. PROJ_TOP_SRC := rtl/top.v
  24. PROJ_TOP_MOD := top
  25. # Target config
  26. BOARD ?= icebreaker
  27. DEVICE = up5k
  28. PACKAGE = sg48
  29. YOSYS_SYNTH_ARGS = -dffe_min_ce_use 4
  30. NEXTPNR_ARGS = --pre-pack data/clocks.py --seed 2
  31. # Include default rules
  32. include ../../build/project-rules.mk
  33. # Custom rules
  34. fw/boot.hex:
  35. make -C fw boot.hex
  36. $(BUILD_TMP)/boot.hex: fw/boot.hex
  37. cp $< $@