Skip to content

Commit ef6fc24

Browse files
Update src/com/xilinx/rapidwright/edif/EDIFPort.java
Co-authored-by: eddieh-xlnx <[email protected]> Signed-off-by: Chris Lavin <[email protected]>
1 parent 1b67d55 commit ef6fc24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/com/xilinx/rapidwright/edif/EDIFPort.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,10 @@ public int[] getBitBlastedIndicies() {
377377
public int[] getBitBlastedIndices() {
378378
if (isBus()) {
379379
int lastLeftBracket = getName().lastIndexOf('[');
380-
if (getName().contains(":"))
381-
return EDIFTools.bitBlastBus(getName().substring(lastLeftBracket));
382-
if (getName().contains("["))
383-
return new int[] { Integer.parseInt(getName().substring(lastLeftBracket, getName().length() - 1)) };
380+
assert(lastLeftBracket != -1);
381+
return getName().contains(":") ?
382+
EDIFTools.bitBlastBus(getName().substring(lastLeftBracket)) :
383+
new int[] { Integer.parseInt(getName().substring(lastLeftBracket, getName().length() - 1)) };
384384
}
385385
return SINGLE_BIT_INDICES;
386386
}

0 commit comments

Comments
 (0)