diff options
| author | azidar | 2015-08-19 17:14:15 -0700 |
|---|---|---|
| committer | azidar | 2015-08-19 17:14:15 -0700 |
| commit | be50b579346da77f4e94adc1c1d0f9a492be038e (patch) | |
| tree | 8ecbcbeac57520c6077311f7d0fa8936ef13dd73 /src/main/stanza/passes.stanza | |
| parent | 8eec7cf373bdf02f23164cd7bbf0d02354cbc31f (diff) | |
Switched to new bigint library
Diffstat (limited to 'src/main/stanza/passes.stanza')
| -rw-r--r-- | src/main/stanza/passes.stanza | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza index 89f77694..8bf35915 100644 --- a/src/main/stanza/passes.stanza +++ b/src/main/stanza/passes.stanza @@ -6,7 +6,7 @@ defpackage firrtl/passes : import firrtl/primops import firrtl-main import firrtl/errors - import bigint + import bigint2 ;============== Pass List ================ public val standard-passes = to-list $ [ @@ -1978,14 +1978,14 @@ defn gen-constraints (m:Module, h:HashTable<Symbol,Type>, v:Vector<WGeq>) -> Mod match(width(e)) : (w:UnknownWidth) : val w* = VarWidth(firrtl-gensym(`w,width-name-hash)) - add(v,WGeq(w*,IntWidth(length(to-bin(value(e)))))) + add(v,WGeq(w*,IntWidth(num-bits(value(e))))) UIntValue(value(e),w*) (w) : e (e:SIntValue) : match(width(e)) : (w:UnknownWidth) : val w* = VarWidth(firrtl-gensym(`w,width-name-hash)) - add(v,WGeq(w*,IntWidth(1 + length(to-bin(value(e)))))) + add(v,WGeq(w*,IntWidth(1 + num-bits(value(e))))) SIntValue(value(e),w*) (w) : e (e) : e |
