Makefile 647 B

12345678910111213141516171819202122232425262728293031323334
  1. # Project name
  2. NAME := pyprofibusphy
  3. # Target board configuration
  4. TARGET := tinyfpga_bx
  5. PLL_HZ := 24000000
  6. DEBUG := 0
  7. # Source files
  8. TOP_FILE := main.v
  9. TOP_MODULE := top_module
  10. PCF_FILE := $(TARGET).pcf
  11. # Generated files
  12. PLL_MOD_V_FILE := pll_mod.v
  13. GENERATED_V := crc8_func.v
  14. # Extra dependencies
  15. EXTRA_DEP_V :=
  16. EXTRA_DEP_PY :=
  17. # Additional cleanup
  18. CLEAN_FILES := crcgen.stamp
  19. include fpgamakelib/fpgamakelib.mk
  20. crcgen.stamp:
  21. $(TEST) -f ./crcgen/crcgen || $(GIT) submodule update --init
  22. $(TOUCH) $@
  23. crc8_func.v: crcgen.stamp
  24. PYTHONPATH=./crcgen $(PYTHON) ./crcgen/crcgen --algorithm CRC-8-CCITT --verilog-function --name crc8 > $@