-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (42 loc) · 1.19 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
XILINX_VERSION := 2018.3
XILINX_ENVPATH := /opt/xilinx/Vivado/${XILINX_VERSION}/settings64.sh
LIBRARY_PATH := /home/icer/.vscode-server/extensions/sterben.fpga-support-0.2.6/lib/com/Hardware/
ROOT_PATH:= /home/icer/Project/library
PRJ_PATH:= ${ROOT_PATH}/prj
USR_PATH:= ${ROOT_PATH}/user
# $(info $(test))
VERSION:=v0.3
SYN_SCRIPT:= ${USR_PATH}/script/synth.tcl
# 综合参数设置
SYN_PATH:= ${PRJ_PATH}/SYN${VERSION}
P&R_PATH:= ${PRJ_PATH}/P&R${VERSION}
SYN_ARGE:= -f ${SYN_SCRIPT}
SYN_ARGE+= -output_log_file synth.log
.PHONY: env
env :
sudo podman attach ab57f231a84b
.PHONY: tolib
tolib :
cd ${LIBRARY_PATH}
.PHONY: synth
synth :
-mkdir ${PRJ_PATH}
rm -rf command.log && rm -rf ${SYN_PATH} && mkdir ${SYN_PATH}
cd ${SYN_PATH} && dc_shell ${SYN_ARGE}
LIB2DB_SCRIPT:= ${USR_PATH}/script/lib2db.tcl
.PHONY: lib2db
lib2db :
lc_shell -f ${LIB2DB_SCRIPT}
rm -rf ${ROOT_PATH}/lc_shell_command.log
P&R_SCRIPT:= ${USR_PATH}/script/p&r.tcl
P&R_ARGE:= -f ${P&R_SCRIPT}
P&R_ARGE+= -output_log_file p&r.log
.PHONY: p&r
p&r :
-mkdir ${P&R_PATH}
rm -rf command.log && rm -rf ${P&R_PATH} && mkdir ${P&R_PATH}
cd ${P&R_PATH} && icc_shell ${SYN_ARGE}
include sim.mk
.PHONY: clean
clean :
rm -rf ${PRJ_PATH}