-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing macro #300
Comments
If I add additional var: string full_name;
full_name = {name, " CHECK DATA: output data is equal to benchmark"};
`scsMsg(full_name) There is no warning. |
The warning is not printed by Modelsim but by VUnit. Thus you only see it when running VUnit. VUnit has a Verilog preprocessor since it it is necessary to perform preprocessing to scan for module dependencies since module can be defined or instantiated in a macro. You have discovered a bug in the VUnit Verilog preprocessor. It has no consequence for you other than seeing the warning if the macro was not defining an item which effects compile dependencies which it seems your macro does not. |
Nice explanation. Will you consider adding a unique prefix to your preprocessor messages so that it is easier for users to isolate? Thanks |
Sure we could add a prefix so that the user does not get confused. Note though that these warnings occur before any compilation (and output for compiling file ...) started so it could not come from the vendor tool. |
I made a fix for this now. |
Now part of 2.4.2 release. |
When I use such macro directly in Modelsim simulation, I don't get any warning. When I use VUnit I get a warning.
Macro:
Usage of this macro
'name' is string
Warning
The text was updated successfully, but these errors were encountered: