vcs-clean:
@if [ -e work ]; then \
rm -rf work; \
fi
@if [ -e comp.log ]; then \
rm -rf comp.log; \
fi
编译两个.v文件。
再执行make vcs时,出现一下问题:
vlogan +v2k +incdir+../src -nc -work work ../src/cnt.v
Parsing design file '../src/cnt.v'
vlogan +v2k +incdir+../src -nc -work work ../src/test.v
Parsing design file '../src/test.v'
vcs work.test -o ./simv_mx -l comp.log
Chronologic VCS (TM)
Version C-2009.06 -- Mon Dec 5 14:03:53 2016
Copyright (c) 1991-2008 by Synopsys Inc.
ALL RIGHTS RESERVED
This program is proprietary and confidential information of Synopsys Inc.
and may be used and disclosed only as authorized in a license agreement
controlling such use and disclosure.
Error-[SFCOR] Source file cannot be opened
Source file "work.test" cannot be opened for reading due to 'No such file or
directory'.
Please fix above issue and compile again.
1 error
CPU time: .342 seconds to compile
make: *** [vcs] Error 255