Skip to content

Commit

Permalink
Merge pull request #260 from jix/prepare-check
Browse files Browse the repository at this point in the history
sby_design: Also track fairness assumptions
  • Loading branch information
jix authored Feb 1, 2024
2 parents cde9e57 + 40bf8fc commit 5c649c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sbysrc/sby_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class Type(Enum):
ASSERT = auto()
COVER = auto()
LIVE = auto()
FAIR = auto()

def __str__(self):
return self.name
Expand All @@ -69,6 +70,8 @@ def from_cell(c, name):
return c.COVER
if name == "$live":
return c.LIVE
if name == "$fair":
return c.FAIR
raise ValueError("Unknown property type: " + name)

@classmethod
Expand All @@ -81,6 +84,8 @@ def from_flavor(c, name):
return c.COVER
if name == "live":
return c.LIVE
if name == "fair":
return c.FAIR
raise ValueError("Unknown property type: " + name)

name: str
Expand Down Expand Up @@ -198,7 +203,7 @@ def make_mod_hier(instance_name, module_name, hierarchy="", path=()):
raise ValueError(f"Cannot find module {module_name}")

for sort in cell_sorts:
if sort["type"] in ["$assume", "$assert", "$cover", "$live"]:
if sort["type"] in ["$assume", "$assert", "$cover", "$live", "$fair"]:
for cell in sort["cells"]:
try:
location = cell["attributes"]["src"]
Expand Down

0 comments on commit 5c649c8

Please sign in to comment.