diff options
| author | Adam Izraelevitz | 2015-07-29 15:00:37 -0700 |
|---|---|---|
| committer | Adam Izraelevitz | 2015-07-29 15:00:37 -0700 |
| commit | 7646c2e3edf90ea13a83b76c97f35877263c5e63 (patch) | |
| tree | 9d28739a22cd14996d53a4df808b18f3793e8949 /src/main/stanza/errors.stanza | |
| parent | 6ce20db7e2f81cd3ef8f859614f423bea897484b (diff) | |
Finished supporting Chisel 2.0 Ref Chip
Diffstat (limited to 'src/main/stanza/errors.stanza')
| -rw-r--r-- | src/main/stanza/errors.stanza | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/stanza/errors.stanza b/src/main/stanza/errors.stanza index 80ad3e56..6cdd1dca 100644 --- a/src/main/stanza/errors.stanza +++ b/src/main/stanza/errors.stanza @@ -278,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) < BigIntLit("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) |
