.PHONY的作用
https://www.cnblogs.com/yangjiquan/p/11475638.html
https://zhuanlan.zhihu.com/p/81305878
makelist 示例1
.PHONY:com cov clean debug
OUTPUT = cpu_top
#compile command
VCS = vcs -sverilog +v2k -timescale=1ns/1ns \
-debug_all \
+notimingcheck \
+nospecify \
+vcs+flush+all \
-o ${
OUTPUT} \
-l compile.log \
#simulation command
SIM = ./${
OUTPUT} -l ${
OUTPUT}.log
#start compile
com:
${
VCS} -f file_list.f
#start simulation
sim:
${
SIM}
#show the coverage
cov:
dve -covdir *vdb &
#start debug commnd
debug:
dve -vpd ${
output}.vpd &
#clean some file
clean:
rm -rf .

本文介绍了Makefile中的.PHONY目标的作用,它用于指示Make命令即使目标文件存在也不跳过编译。文章还详细展示了如何配置和使用VCS进行编译和仿真,包括编译命令、仿真命令、覆盖率检查和调试步骤。通过输入特定指令,如'make com'进行编译,'make sim'进行仿真,以及'make clean'清理文件。
最低0.47元/天 解锁文章
1233

被折叠的 条评论
为什么被折叠?



