UPGRADE YOUR BROWSER
We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!
03-03-2019 04:58 PM
I seem to be unable to do something very simple:
C:\>xvlog test.sv
INFO: [VRFC 10-2263] Analyzing Verilog file "C:/test.sv" into library work
INFO: [VRFC 10-311] analyzing module test
C:\>xvlog --define A=B test.sv
ERROR: [XSIM 43-4316] Can not find file: B
This is on Windows 10, using both "new" and "legacy" consoles (properties->options). Works just fine in Linux. I think perhaps the various .bat wrappers that get called are not handling the "=".
Note that it seems to work if I add quotes:
xvlog --define "A=B" test.sv
INFO: [VRFC 10-2263] Analyzing Verilog file "C:/test.sv" into library work
INFO: [VRFC 10-311] analyzing module test
Is this expected behavior? I didn't see this in the docs (UG900 etc). It's hard/impossible to find any command line example of defining a macro *to a value* (there's lots of "-d MACRO" examples).
03-04-2019 12:53 AM
Yes, the behavior is specific in Windows.
As you've mentioned, please enclose the macro definition in quotes.
03-04-2019 12:53 AM
Yes, the behavior is specific in Windows.
As you've mentioned, please enclose the macro definition in quotes.