Skip to content

Commit

Permalink
Fix address selection for regfiles with 32 bit width and two entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Feinberg committed Jan 30, 2020
1 parent bf56b73 commit 87c2647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ordt/output/AddressableInstanceProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public void setExtLowBit(int extLowBit) {

/** return index range for a group of replicated external registers */
public String getExtAddressArrayString() {
if (getExtAddressWidth() > 1) return " [" + (getExtLowBit() + getExtAddressWidth() - 1) + ":" + getExtLowBit() + "] ";
if (getExtAddressWidth() >= 1) return " [" + (getExtLowBit() + getExtAddressWidth() - 1) + ":" + getExtLowBit() + "] ";
else return "";
}

Expand Down

0 comments on commit 87c2647

Please sign in to comment.