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

Put pragmas around assertions #104

Open
Blebowski opened this issue Apr 28, 2024 · 2 comments
Open

Put pragmas around assertions #104

Blebowski opened this issue Apr 28, 2024 · 2 comments
Labels
feature request New feature or request

Comments

@Blebowski
Copy link

Hi,

when trying to synthesize the generated register map with Design compiler, I get warnings due to
assertions that check the generated block behavior:

Line 1289: Warning:  /tmp/dummy_block.sv:83: The construct 'immediate assertion' is not supported in synthesis; it is ignored. (VER-708)

I think it would be good to put synthesis translate on/off around these assertions.

@amykyta3
Copy link
Member

amykyta3 commented May 1, 2024

Comment pragmas are not ideal since they have extremely poor standardization and have numerous variations across different toolchains, so they are generally not considered good practice.

I would be open to wrapping these assertions with ifndef SYNTHESIS preprocessor directives instead.

@Blebowski
Copy link
Author

Agreed, this is a better approach. SYNTHESIS define sounds good.

@amykyta3 amykyta3 added the feature request New feature or request label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Development

No branches or pull requests

2 participants