Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
yonnorc42 committed Jul 12, 2024
1 parent 0301e92 commit 78377ff
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bfasst/utils/structural.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
from bfasst.utils import convert_verilog_literal_to_int
from bfasst.utils.general import log_with_banner
from bfasst.utils.sdn_helpers import SdnNetlistWrapper, SdnInstanceWrapper, SdnNet, SdnPinWrapper

# pylint: disable=wrong-import-order
from com.xilinx.rapidwright.design import Design

# pylint: enable=wrong-import-order


class StructuralCompareError(Exception):
"""Exception for structural comparison errors"""
Expand All @@ -26,9 +30,7 @@ class StructuralCompareError(Exception):
class StructuralCompare:
"""Structural compare and map"""

def __init__(
self, named_netlist_path, reversed_netlist_path, log_path, debug=False
) -> None:
def __init__(self, named_netlist_path, reversed_netlist_path, log_path, debug=False) -> None:
self.reversed_netlist_path = reversed_netlist_path
self.named_netlist_path = named_netlist_path
self.named_netlist = None
Expand Down Expand Up @@ -433,7 +435,8 @@ def potential_mapping_wrapper(self, instance):
instance.name, [cell.getName() for cell in cells], n=1
)[0]
)
# now that we have the cell's actual name, we can use that to access the cell object
# now that we have the cell's actual name,
# we can use that to access the cell object
cell = [cell for cell in cells if cell.getName() == actual_cell_name][0]

site = cell.getSite()
Expand Down

0 comments on commit 78377ff

Please sign in to comment.