Skip to content

Commit 2254e39

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 471b8ac commit 2254e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public int[] getBitBlastedIndices() {
378378
if (isBus()) {
379379
int lastLeftBracket = getName().lastIndexOf('[');
380380
assert(lastLeftBracket != -1);
381-
return getName().contains(":") ?
381+
return getName().indexOf(':', lastLeftBracket) != -1 ?
382382
EDIFTools.bitBlastBus(getName().substring(lastLeftBracket)) :
383383
new int[] { Integer.parseInt(getName().substring(lastLeftBracket, getName().length() - 1)) };
384384
}

0 commit comments

Comments
 (0)