Reputation: 27
I insert a verilog file into another verilog file by using "`include " And when I used the synplify script(*.tcl) to try to synthesize, one error occured:
invalid command name "+incdir+<...>"
It seems like I have to use the command "+incdir+" according to online documents, but what something wrong happened?
If your project has Verilog files with `include statements, you must use
the +incdir+ <file name> argument when you specify the vlogan
command. You enter the +incdir+ in the Verilog Compile field in the VCS
Options dialog box, as shown below:
Upvotes: -2
Views: 704
Reputation: 1
quoting from the documentation : if you have an include file,
`include "component.v"
module Top (input a, output x);
...
endmodule
you need to tell the relative directory of the include file (component.v) with respect to the directory of synplify script(.tcl) :
vlogan -work work Top.v +incdir+ ./ +incdir+ ../include_dir1
etc.
Upvotes: -1