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 missing features to the {-# properties foo = {...} #-} syntax in Classic #626

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

nanavati
Copy link
Collaborator

No description provided.

{-# properties mkFoo = {..} #-} syntax.

Add a testcase that checks that the properties are applied even if a module
is synthesized via the -g option.

Also add expected Verilog output for mkPragmas.v from Pragmas test.
{-# properties mkFoo = {..} #-} syntax.
@quark17
Copy link
Collaborator

quark17 commented Oct 14, 2023

Thank you again! I'm happy to merge this when the checks finish. A couple observations, though:

I was confused why you were comparing the Verilog for mkSynthesize, but it dawned on me that you need something to confirm that the module was synthesized (and decided to do that check this way?). Maybe a comment would avoid the risk of someone in the future removing that comparison, thinking that it was unnecessary (as I did).

Also, FYI, BSV module attributes for clock and reset are tested in bsc.mcd/Pragmas/ and bsc.names/portRenaming/moduleArgs/. I don't have a proposal for how we could better organize the tests (to not be in multiple places and asymmetric between BH and BSV), so this current structure is fine. The BSV tests are mostly testing behavior, so it's OK for the BH tests to just focus on syntax.

@nanavati
Copy link
Collaborator Author

Added a comment about the mkSynthesize.v comparison.

@quark17 quark17 merged commit 71eec9b into B-Lang-org:main Oct 17, 2023
33 checks passed
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

Successfully merging this pull request may close these issues.

2 participants