Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot define real values in macros when using underscore #863
I discovered a very minor bug in verilator related to real values. You cannot define a real number using a macro if you also use underscores.
For example, the following macro works:
But the following macro generates a parsing error when used somewhere in the design:
The error message is:
I have attached an example in test_regress format.
Original Redmine Comment
Sorry, so this is not actually specific to macros. I was just using macros in my original design. It's actually just a problem with real-type numeric literals. I have fixed the test case. Sorry for the confusion.