Makefile 568 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Project config
  2. PROJ = nano-pmod-up5k
  3. PROJ_DEPS := no2misc spi_slave
  4. PROJ_RTL_SRCS := $(addprefix rtl/, \
  5. nano_dsi_clk.v \
  6. nano_dsi_data.v \
  7. pkt_fifo.v \
  8. pkt_spi_write.v \
  9. sysmgr.v \
  10. )
  11. PROJ_TESTBENCHES := \
  12. dsi_tb \
  13. pkt_fifo_tb \
  14. pkt_spi_write_tb
  15. PROJ_TOP_SRC := rtl/top.v
  16. PROJ_TOP_MOD := top
  17. # Target config
  18. BOARD ?= icebreaker
  19. DEVICE = up5k
  20. PACKAGE = sg48
  21. NEXTPNR_ARGS = --freq 55
  22. # Include default rules
  23. include ../../build/project-rules.mk
  24. # Custom rules
  25. # SPI core selection
  26. SPI ?= fast
  27. ifeq ($(SPI),fast)
  28. YOSYS_READ_ARGS += -DSPI_FAST=1
  29. endif