0

What is the difference between -INcdir and +incdir+ options in NC simulator?

Below is the example command from the Makefile. As far as I know the testbench directories are included using -INcdir and the source code file directories are included using +incdir+ command

ncvlog -SV -INcdir ../include -INcdir ../src -64bit ../src/top.sv ../src/test.sv;
ncelab ncelab.log top +incdir+../../../sv/src +incdir+../../../sv/include

Please help me to understand the the significance of these options.

Sreejin TJ
  • 177
  • 12

2 Answers2

1

They both mean the same thing. The original Verilog simulator used arguments of the type +incdir+ to specify include paths. The options still exist for legacy reasons. You'll notice other tools also provide +incdir+, for the same reason.

Tudor Timi
  • 7,453
  • 1
  • 24
  • 53
1

I agree with Tudor. They actually mean the same thing.

The +incdir+arg is replaced with ncvlog -incdir arg, the same way in which +define+arg is replaced with ncvlog -define arg.

It is referred to as "Plus" option translation in the Cadence NC-Verilog Simulator user guide.

Snapshot from user guide