-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile
94 lines (84 loc) · 3.34 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Copyright 2020-2022 F4PGA Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
NAME = ql-qlf
SOURCES = synth_quicklogic.cc \
ql-dsp.cc \
pp3_braminit.cc \
quicklogic_eqn.cc \
ql-edif.cc \
ql-dsp-simd.cc \
ql-dsp-macc.cc \
ql-bram-split.cc \
ql-dsp-io-regs.cc
DEPS = pmgen/ql-dsp-pm.h \
pmgen/ql-dsp-macc.h
include ../Makefile_plugin.common
COMMON = common
QLF_K4N8_DIR = qlf_k4n8
QLF_K6N10_DIR = qlf_k6n10
QLF_K6N10F_DIR = qlf_k6n10f
PP3_DIR = pp3
VERILOG_MODULES = $(COMMON)/cells_sim.v \
$(QLF_K4N8_DIR)/arith_map.v \
$(QLF_K4N8_DIR)/cells_sim.v \
$(QLF_K4N8_DIR)/ffs_map.v \
$(QLF_K6N10_DIR)/arith_map.v \
$(QLF_K6N10_DIR)/brams_map.v \
$(QLF_K6N10_DIR)/brams.txt \
$(QLF_K6N10_DIR)/cells_sim.v \
$(QLF_K6N10_DIR)/ffs_map.v \
$(QLF_K6N10_DIR)/dsp_map.v \
$(QLF_K6N10_DIR)/lut_map.v \
$(QLF_K6N10F_DIR)/arith_map.v \
$(QLF_K6N10F_DIR)/brams_map.v \
$(QLF_K6N10F_DIR)/brams_final_map.v \
$(QLF_K6N10F_DIR)/brams.txt \
$(QLF_K6N10F_DIR)/cells_sim.v \
$(QLF_K6N10F_DIR)/sram1024x18.v \
$(QLF_K6N10F_DIR)/TDP18K_FIFO.v \
$(QLF_K6N10F_DIR)/ufifo_ctl.v \
$(QLF_K6N10F_DIR)/ffs_map.v \
$(QLF_K6N10F_DIR)/dsp_map.v \
$(QLF_K6N10F_DIR)/dsp_final_map.v \
$(PP3_DIR)/abc9_map.v \
$(PP3_DIR)/abc9_model.v \
$(PP3_DIR)/abc9_unmap.v \
$(PP3_DIR)/cells_map.v \
$(PP3_DIR)/cells_sim.v \
$(PP3_DIR)/ffs_map.v \
$(PP3_DIR)/latches_map.v \
$(PP3_DIR)/lut_map.v \
$(PP3_DIR)/lutdefs.txt \
$(PP3_DIR)/brams_sim.v \
$(PP3_DIR)/brams_map.v \
$(PP3_DIR)/brams.txt \
$(PP3_DIR)/bram_init_8_16.vh \
$(PP3_DIR)/bram_init_32.vh \
$(PP3_DIR)/qlal4s3b_sim.v \
$(PP3_DIR)/mult_sim.v \
$(PP3_DIR)/qlal3_sim.v \
pmgen:
mkdir -p pmgen
pmgen/ql-dsp-pm.h: ../pmgen.py ql_dsp.pmg | pmgen
python3 ../pmgen.py -o $@ -p ql_dsp ql_dsp.pmg
pmgen/ql-dsp-macc.h: ../pmgen.py ql-dsp-macc.pmg | pmgen
python3 ../pmgen.py -o $@ -p ql_dsp_macc ql-dsp-macc.pmg
install_modules: $(VERILOG_MODULES)
$(foreach f,$^,install -D $(f) $(DATA_DIR)/quicklogic/$(f);)
install: install_modules
clean:
$(MAKE) -f ../Makefile_plugin.common $@
rm -rf pmgen