aboutsummaryrefslogtreecommitdiff
path: root/src/main/stanza/ir-parser.stanza
diff options
context:
space:
mode:
authorazidar2015-08-20 14:19:02 -0700
committerazidar2015-08-20 14:19:26 -0700
commit5bf451acbe03ecfd6407d7376cbb782ac0dd0f11 (patch)
treedddff083fe2e733bec114b34aadae5070714bcc7 /src/main/stanza/ir-parser.stanza
parent9175d99c622ca9b8c85ff733dbf9f0aa3ec8e266 (diff)
Added rsh to BigInt library. Const Prop now works on rsh's on constants. #19.
Diffstat (limited to 'src/main/stanza/ir-parser.stanza')
-rw-r--r--src/main/stanza/ir-parser.stanza4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/stanza/ir-parser.stanza b/src/main/stanza/ir-parser.stanza
index 71236795..13b23906 100644
--- a/src/main/stanza/ir-parser.stanza
+++ b/src/main/stanza/ir-parser.stanza
@@ -284,8 +284,8 @@ defsyntax firrtl :
(t:UIntType) :
if (v as Int) < 0 :
FPE(form, "UIntValue cannot be negative.")
- UIntValue(BigIntLit(v as Int,32), width(t))
- (t:SIntType) : SIntValue(BigIntLit(v as Int,32), width(t))
+ UIntValue(BigIntLit(v as Int), width(t))
+ (t:SIntType) : SIntValue(BigIntLit(v as Int), width(t))
expterm = (?op:#sym(?es:#exp ... ?ints:#int ... ?rest ...)) :
if not empty?(rest) :