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