aboutsummaryrefslogtreecommitdiff
path: root/src/main/stanza
diff options
context:
space:
mode:
authorazidar2016-02-08 22:47:43 -0800
committerazidar2016-02-09 18:57:07 -0800
commita9afec2145fe27a26c51fca7e169495114c5108d (patch)
tree39b232e7bd67cec9c8a65807d92c51b5a44ad764 /src/main/stanza
parent32f26d3939980644ddd573c1fcf1dd985a150947 (diff)
Added chirrtl passes, need to update parser
Diffstat (limited to 'src/main/stanza')
-rw-r--r--src/main/stanza/passes.stanza4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza
index 9d7a1b97..97302711 100644
--- a/src/main/stanza/passes.stanza
+++ b/src/main/stanza/passes.stanza
@@ -114,10 +114,10 @@ defmethod get-type (s:WDefInstance) -> Type : type(s)
defmethod equal? (e1:Expression,e2:Expression) -> True|False :
match(e1,e2) :
(e1:UIntValue,e2:UIntValue) :
- if value(e1) == value(e2) : width(e1) == width(e2)
+ if to-int(value(e1)) == to-int(value(e2)) : width(e1) == width(e2)
else : false
(e1:SIntValue,e2:SIntValue) :
- if value(e1) == value(e2) : width(e1) == width(e2)
+ if to-int(value(e1)) == to-int(value(e2)) : width(e1) == width(e2)
else : false
(e1:WRef,e2:WRef) : name(e1) == name(e2)
(e1:WSubField,e2:WSubField) :