Makefile 444 B

123456789101112131415161718192021222324252627
  1. # Project config
  2. PROJ = hdmi_text
  3. PROJ_DEPS := video spi_slave
  4. PROJ_RTL_SRCS := $(addprefix rtl/, \
  5. sysmgr.v \
  6. )
  7. PROJ_TOP_SRC := rtl/top.v
  8. PROJ_TOP_MOD := top
  9. # Target config
  10. BOARD ?= icebreaker
  11. DEVICE = up5k
  12. PACKAGE = sg48
  13. NEXTPNR_ARGS = --freq 75 --no-promote-globals
  14. # Include default rules
  15. include ../../build/project-rules.mk
  16. # Custom rules
  17. # SPI core selection
  18. SPI ?= fast
  19. ifeq ($(SPI),fast)
  20. YOSYS_READ_ARGS += -DSPI_FAST=1
  21. endif