-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SV] Move emitAsComment to SVAttributeAttr; remove SVAttributesAttr (#…
…4743) * [SV] Move emitAsComment to SVAttributeAttr; remove SVAttributesAttr Move the `emitAsComments` flag from `SVAttributesAttr` (plural) to `SVAttributeAttr` (singular). Then remove `SVAttributesAttr` (plural) since it only contains a single array field after `emitAsComments` is gone. Add add, remove, and read-modify-write functions to deal with SV attributes on operations more conveniently. Also enforce deduplicated SV attributes where easily possible. The new functions now allow for easy addition and removal of individual SV attributes. Adapt ExportVerilog to handle the fact that emission as comments is now a per-attribute option. The emission code now can emit multiple `/*...*/` and `(*...*)` groups if needed, but tries to pack as many consecutive attributes with the same `emitAsComment` flag into one group. * [ExportVerilog] PP-ify SV attribute emission. * Test pretty-printing of SV attributes on statements. * Tweak whitespaces between SV attributes --------- Co-authored-by: Will Dietz <[email protected]>
- Loading branch information
1 parent
38b1f39
commit 811f79d
Showing
15 changed files
with
415 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.