2014-02-06 31 views
0

如果宏被重新定義,是否可能在Synopsys VCS編譯器中生成警告或錯誤?Synopsys VCS警告

`define DATWIDTH_SZ `DAT_SZ 
`define DATWIDTH_SZ 512 

回答

0

工作對我來說:

$ cat tb.v 
`define DATWIDTH_SZ `DAT_SZ 
`define DATWIDTH_SZ 512 

module tb; 
endmodule 

$ vcs tb.v 

         Chronologic VCS (TM) 
      Version H-2013.06-SP1 -- Thu Feb 6 14:06:48 2014 
       Copyright (c) 1991-2013 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. 

Parsing design file 'tb.v' 

Warning-[TMR] Text macro redefined 
tb.v, 2 
    Text macro (DATWIDTH_SZ) is redefined. The last definition will override 
    previous ones. 
    In tb.v, 1, it was defined as `DAT_SZ 

UPDATE:你使用+warn=none禁用警告?

+0

你可以發佈你的VCS命令行嗎? – Jean

+0

我已經在評論中做了。 – toolic

+0

Oh..So vcs默認報告它。可能是我用一些開關壓制它。 – Jean