File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/com/xilinx/rapidwright/edif Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments