We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f6fe3 commit 914194eCopy full SHA for 914194e
src/PSSIntInst.java
@@ -49,6 +49,14 @@ public PSSVal toVal () {
49
50
@Override
51
public PSSInst indexOf (PSSVal index) {
52
+ /** [9.6.1 Bit-selects]: It shall be illegal for a bit-select to access on out-of-bounds bit index. */
53
+ if (index.toInt() > m_width) {
54
+ String errObj = "'" + getHierarchyId() + "[" + index.getText() + "]" + "'";
55
+ String errMsg = "Bit-selects access out-of-bounds bit index.";
56
+ String errExt = "sizeof(" + getHierarchyId() + ") = " + m_width;
57
+ PSSMessage.Error("ILLEGAL USAGE", errObj + " " + errMsg + " //" + errExt);
58
+ }
59
+
60
m_BitSelect = new PSSIntVal(index.toBigInteger());
61
return this;
62
}
0 commit comments