今天在cadence编译时发现怎么都无法读到我的其他代码,在你include文件之前
需要在当前cadence的workspace上添加一个文件去指引文件目录。
具体如下:
Answer
This can be achieved by creating an hdl.var file - e.g. in your working directory or home directory
, with contents such as (if using INCISIVE releases):
define NCVLOGOPTS -incdir /project/myproject/includeFiles
or if using XCELIUM releases:
define XMVLOGOPTS -incdir /project/myproject/includeFiles
Since the parser uses irun or xrun underneath, these will be picked up by the checker that is run when you hit the "Build a database" button.
CCR 1678017 has been filed to provide a means of specifying this in the text editor user interface, but in the meantime the hdl.var approach can be used