diff options
| author | Adam Izraelevitz | 2015-07-28 13:29:55 -0700 |
|---|---|---|
| committer | Adam Izraelevitz | 2015-07-28 13:29:55 -0700 |
| commit | 0c7aca561aef907314b0d9c9737fcea04ae6ce82 (patch) | |
| tree | 1b5a4da96413bd34d6b5e05ed2cbb2312d1a4b1d /src/main/stanza/errors.stanza | |
| parent | 69e4bc2c4f4e7c2940633f12a40a5550205eb75e (diff) | |
Integrated bigint. Mostly works, but getting "cast" error for make Test.
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..80ad3e56 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("0") : add(errors,NegUInt(info)) (e) : false map(check-high-form-w{info,_:Width},e) map(check-high-form-t{info,_:Type},e) |
