VCS-Makefile

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

.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 .
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值