-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from adwait/adwait/svacontext
enh: cleanup SVAGen <-> Jasper interface with SVAContext that maintai…
- Loading branch information
Showing
6 changed files
with
117 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
""" | ||
Namespace for properties | ||
""" | ||
|
||
# Properties for top module | ||
TOP_INPUT_2T_PROP = "input" | ||
TOP_STATE_2T_PROP = "state" | ||
TOP_OUTPUT_2T_PROP = "output" | ||
|
||
TOP_INPUT_1T_PROP = "input_inv" | ||
TOP_STATE_1T_PROP = "state_inv" | ||
TOP_OUTPUT_1T_PROP = "output_inv" | ||
|
||
STEP_PROP = "step" | ||
def TOP_STEP_PROP(k: int) -> str: | ||
"""Get the property name for a given step""" | ||
return f"{STEP_PROP}_{k}" | ||
|
||
def get_as_assm(prop: str) -> str: | ||
"""Get the assumption name for a given property""" | ||
return f"A_{prop}" | ||
|
||
def get_as_prop(prop: str) -> str: | ||
"""Get the assertion name for a given property""" | ||
return f"P_{prop}" |
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.