ncverilog +ncvlogargs+'-DEFINE NAME="abc.log"'
The preprocessor seems to strip away the inner quotation automatically.
I doubt this is a shell issue, but I'm using tcsh. Does anyone have a clue?
Here's the test program that I used:
`timescale 1ns / 100ps
module test;
initial
$display (`NAME);
endmodule // test
Thanks in advance.
ncverilog +ncvlogargs+'-DEFINE NAME=\\"abc.log\\"'
There may be a better way of doing it, but I'm not an expert on this.
It was simpler not to use +ncvlogargs to pass the option to ncvlog.
Since the purpose of ncverilog is to handle Verilog-XL command line
options and translate them into options for the NC-Verilog tools, you
can use the Verilog-XL option that defines a macro. This avoids some
quoting and double-escaping:
ncverilog '+define+NAME="abc.log"'
or
ncverilog +define+NAME=\"abc.log\"