diff options
Diffstat (limited to 'src/main/stanza/flo.stanza')
| -rw-r--r-- | src/main/stanza/flo.stanza | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/stanza/flo.stanza b/src/main/stanza/flo.stanza index d8fe705f..f4b453ba 100644 --- a/src/main/stanza/flo.stanza +++ b/src/main/stanza/flo.stanza @@ -4,6 +4,7 @@ defpackage firrtl/flo : import firrtl/ir-utils import firrtl/ir2 import firrtl/passes + import bigint ;============= Flo Backend ================ @@ -72,9 +73,6 @@ defn prim-width (type:Type) -> Int : (t:ClockType) : 1 (t) : error("Bad prim width type") -defn sizeof (in: Int) -> Int : - max(1, ceil-log2(in + 1)) - defn emit-all (es:Streamable, top:Symbol) : for e in es do : match(e) : @@ -171,7 +169,7 @@ defn emit-s (s:Stmt, flokinds:HashTable<Symbol,FloKind>, top:Symbol,sh:HashTable (s:DefNode) : emit-all([top "::" name(s) " = " maybe-mov(value(s)) value(s) "\n"], top) (s:Begin) : do(emit-s{_, flokinds, top,sh}, body(s)) - (s:Connect) : emit-connect(s,UIntValue(to-long(1),IntWidth(1))) + (s:Connect) : emit-connect(s,UIntValue(BigIntLit("1"),IntWidth(1))) (s:Conditionally) : emit-connect(conseq(s) as Connect,pred(s)) (s) : s |
