-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add skipIfAlreadyInBlock arg to layer.block (#4327)
Add an argument to `layer.block` which can be used to prevent a layer block from being created if the current builder state indicates that we are already inside a layer block. This API is intended to be used for library writers to provide a way to _maybe_ put an operation into a layer block. Specifically, this is intended for verification statements which should go into a default layer block (e.g., `Verification.Assert`), but should not do this if the Chisel user is already in another layer block. Signed-off-by: Schuyler Eldridge <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
2 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