aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorazidar2015-04-30 10:38:31 -0700
committerazidar2015-04-30 10:38:31 -0700
commit27cf24baf580527fbddbdc4dce81c46a9ac768c7 (patch)
tree06cc0a93b66531b390e31a409f52094b72914bcd /src
parent0608bfbe363780132c0baf1e7098013ab4352f34 (diff)
Fixed bug that added multiple arguements to OR, instead of a reduce-or
Diffstat (limited to 'src')
-rw-r--r--src/main/stanza/passes.stanza3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza
index 5d2abb81..5d1848f0 100644
--- a/src/main/stanza/passes.stanza
+++ b/src/main/stanza/passes.stanza
@@ -1168,8 +1168,7 @@ defn get-read-enable (sym:Symbol,table:HashTable<Symbol,SymbolicValue>) -> Expre
val e2 = get-single-read-enable(sym,alt(sv))
if e1 == e2 : OR(e0,e1)
else : OR(e0,OR(AND(pred(sv),e1),AND(NOT(pred(sv)),e2)))
- DoPrim{BIT-OR-OP,_,list(),UIntType(IntWidth(1))} $ to-list $
- for y in table stream : get-single-read-enable(sym,value(y))
+ reduce-or $ to-list $ for y in table stream : get-single-read-enable(sym,value(y))
defn get-write-enable (sv:SymbolicValue) -> SymbolicValue :
match(map(get-write-enable,sv)) :