Skip to content

Commit d43f464

Browse files
[NetlistBrowser] Fix extra click issue with instances (#1229)
* [Netlist Browser] GUI Widget to browse a loaded netlist Signed-off-by: Chris Lavin <[email protected]> * Address review comments Signed-off-by: Chris Lavin <[email protected]> * Fix bug on second click of instances Signed-off-by: Chris Lavin <[email protected]> * Adding NetlistBrowser to import list in Jython Signed-off-by: Chris Lavin <[email protected]> * [NetlistBrowser] Exit with 1 if wrong # args Signed-off-by: Eddie Hung <[email protected]> --------- Signed-off-by: Chris Lavin <[email protected]> Signed-off-by: Eddie Hung <[email protected]> Co-authored-by: Eddie Hung <[email protected]>
1 parent 1474985 commit d43f464

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/com/xilinx/rapidwright/gui/NetlistBrowser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public static void main(String[] args) {
109109

110110
if (args.length != 1) {
111111
System.out.println("USAGE: <input.dcp|input.edf>");
112+
System.exit(1);
112113
}
113114

114115
EDIFNetlist netlist = null;

src/com/xilinx/rapidwright/gui/NetlistTreeWidget.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public NetlistTreeWidget(String header, EDIFNetlist netlist) {
6060
}
6161

6262
public QTreeWidgetItem populateCellInst(QTreeWidgetItem curr, EDIFHierCellInst inst) {
63+
if (curr.childCount() > 1) {
64+
return curr;
65+
}
6366
// Remove DUMMY
6467
curr.removeChild(curr.child(0));
6568

src/com/xilinx/rapidwright/util/Jython.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public static void main(String[] args) {
162162
com.xilinx.rapidwright.design.DesignTools.class,
163163
com.xilinx.rapidwright.design.tools.LUTTools.class,
164164
com.xilinx.rapidwright.device.helper.TileColumnPattern.class,
165+
com.xilinx.rapidwright.gui.NetlistBrowser.class,
165166
};
166167

167168
args = new String[3];

0 commit comments

Comments
 (0)