Skip to content
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

Add support for `undef #124

Open
gjcoram opened this issue May 17, 2024 · 3 comments
Open

Add support for `undef #124

gjcoram opened this issue May 17, 2024 · 3 comments

Comments

@gjcoram
Copy link

gjcoram commented May 17, 2024

[root@5033e3bcb6f9 io]# target/release/openvaf r3_cmc.va
error: macro 'undef' has not been declared --> /io/r3_cmc.va:127:9 | 127 | undef VAMS_COMPACT_MODELING
| ^^^^^^ macro not found here

error: unexpected token identifier; expected 'discipline', 'nature' or 'module'
--> /io/r3_cmc.va:127:16
|
127 | `undef VAMS_COMPACT_MODELING
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected 'discipline', 'nature' or 'module'

error: could not compile r3_cmc.va due to 2 previous errors

@gjcoram
Copy link
Author

gjcoram commented Jun 22, 2024

Also `resetall is not supported.

gjcoram added a commit to gjcoram/OpenVAF that referenced this issue Jul 11, 2024
@gjcoram
Copy link
Author

gjcoram commented Jul 11, 2024

Actually, per IEEE Std 1364:
The text macro facility is not affected by the compiler directive 'resetall.
I had been under the impression that it was supposed to undefine all macros, but that was incorrect. The things it affects are not generally relevant to compact models, so OpenVAF can probably just ignore it.

gjcoram added a commit to gjcoram/OpenVAF that referenced this issue Jul 11, 2024
@gjcoram
Copy link
Author

gjcoram commented Jul 11, 2024

I checked in changes to support undef and ignore resetall into my fork. Let me create a pull request.

arpadbuermen pushed a commit to arpadbuermen/OpenVAF that referenced this issue Jul 15, 2024
arpadbuermen pushed a commit to arpadbuermen/OpenVAF that referenced this issue Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant