diff options
| author | azidar | 2015-07-29 20:07:36 -0700 |
|---|---|---|
| committer | azidar | 2015-07-29 20:07:36 -0700 |
| commit | c8e06e9b3b0945d0b8634aa3ab1fd71a600a7e01 (patch) | |
| tree | ffc36b60e08653ff28a34d70998a85e0294e4808 /src/main/stanza/errors.stanza | |
| parent | e4552dcbc844b00e7e4799c882eb00a8be165e9f (diff) | |
| parent | 7646c2e3edf90ea13a83b76c97f35877263c5e63 (diff) | |
Merge branch 'master' of github.com:ucb-bar/firrtl into new-low-firrtl
Diffstat (limited to 'src/main/stanza/errors.stanza')
| -rw-r--r-- | src/main/stanza/errors.stanza | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/stanza/errors.stanza b/src/main/stanza/errors.stanza index d8969dd3..6cdd1dca 100644 --- a/src/main/stanza/errors.stanza +++ b/src/main/stanza/errors.stanza @@ -6,6 +6,7 @@ defpackage firrtl/errors : import firrtl/primops import firrtl/passes import firrtl-main + import bigint ; TODO ; make sure it compiles, write tests, look over code to make sure its right @@ -277,7 +278,7 @@ public defn check-high-form (c:Circuit) -> Circuit : (e) : add(errors,InvalidIndex(info)) (e:DoPrim) : check-high-form-primop(e,errors,info) (e:UIntValue) : - if value(e) < to-long $ 0 : add(errors,NegUInt(info)) + if value(e) < BigIntLit("h0",length(value(e))) : add(errors,NegUInt(info)) (e) : false map(check-high-form-w{info,_:Width},e) map(check-high-form-t{info,_:Type},e) |
