From a9afec2145fe27a26c51fca7e169495114c5108d Mon Sep 17 00:00:00 2001 From: azidar Date: Mon, 8 Feb 2016 22:47:43 -0800 Subject: Added chirrtl passes, need to update parser --- src/main/stanza/passes.stanza | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/stanza') 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) : -- cgit v1.2.3