mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-12 16:28:17 +00:00
Fix variable name in find_property_by_cellname's error path
This commit is contained in:
parent
2e0087fd2f
commit
a78eaa57db
|
@ -97,7 +97,7 @@ class SbyModule:
|
||||||
for prop in self:
|
for prop in self:
|
||||||
if cell_name == prop.name.translate(str.maketrans(trans_dict)):
|
if cell_name == prop.name.translate(str.maketrans(trans_dict)):
|
||||||
return prop
|
return prop
|
||||||
raise KeyError(f"No such property: {smt2_name}")
|
raise KeyError(f"No such property: {cell_name}")
|
||||||
|
|
||||||
def design_hierarchy(filename):
|
def design_hierarchy(filename):
|
||||||
design_json = json.load(filename)
|
design_json = json.load(filename)
|
||||||
|
|
Loading…
Reference in a new issue