v2x: Reduce a level of indenting. Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/vlog_to_pbtype.py b/vlog_to_pbtype.py index 6769586..0717968 100755 --- a/vlog_to_pbtype.py +++ b/vlog_to_pbtype.py
@@ -292,6 +292,7 @@ .format(pb_name, pin) ) for drv_cell, drv_pin in drvs: + print(pin, net, drv_cell, drv_pin) # check if we're driven by multi instance cell drive_instance = INVALID_INSTANCE drv_cell_type = [ @@ -313,15 +314,16 @@ for pin, net in out_cons: sinks = mod.net_sinks(net) for sink_cell, sink_pin in sinks: - if sink_cell == mod.name: - #Only consider outputs from cell to top level IO. Inputs to other cells will be dealt with - #in those cells. - interconn.append( - ( - (cname, pin), (sink_cell, sink_pin), instance, - INVALID_INSTANCE - ) + if sink_cell != mod.name: + continue + # Only consider outputs from cell to top level IO. Inputs to other cells will be dealt with + # in those cells. + interconn.append( + ( + (cname, pin), (sink_cell, sink_pin), instance, + INVALID_INSTANCE ) + ) # Direct pin->pin connections for net in mod.nets: