Makefile 640 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Project config
  2. PROJ = riscv_usb
  3. PROJ_DEPS := usb misc
  4. PROJ_RTL_SRCS := $(addprefix rtl/, \
  5. bridge.v \
  6. picorv32.v \
  7. soc_bram.v \
  8. soc_spram.v \
  9. sysmgr.v \
  10. )
  11. PROJ_SIM_SRCS := $(addprefix sim/, \
  12. spiflash.v \
  13. )
  14. PROJ_SIM_SRCS += rtl/top.v
  15. PROJ_TESTBENCHES := \
  16. top_tb
  17. PROJ_PREREQ = \
  18. $(BUILD_TMP)/boot.hex
  19. PROJ_TOP_SRC := rtl/top.v
  20. PROJ_TOP_MOD := top
  21. # Target config
  22. BOARD ?= icebreaker
  23. DEVICE = up5k
  24. PACKAGE = sg48
  25. NEXTPNR_ARGS = --pre-pack data/clocks.py --seed 2
  26. # Include default rules
  27. include ../../build/project-rules.mk
  28. # Custom rules
  29. fw/boot.hex:
  30. make -C fw boot.hex
  31. $(BUILD_TMP)/boot.hex: fw/boot.hex
  32. cp $< $@