aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorazidar2015-04-24 14:46:44 -0700
committerazidar2015-04-24 14:46:44 -0700
commitbd8b9669d1cdc4898be9d38ca9c492866d927d77 (patch)
treefbaac47d11092bbd61af38b6692e5dffc352028c /test
parent1652c3cf8329246fa372513fb0d2bdf53ddd227f (diff)
Fixed width inference bug where later constraints on the output width were not propogating to the input widths, for primops
Diffstat (limited to 'test')
-rw-r--r--test/passes/jacktest/Tlb.fir18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/passes/jacktest/Tlb.fir b/test/passes/jacktest/Tlb.fir
new file mode 100644
index 00000000..35442ac8
--- /dev/null
+++ b/test/passes/jacktest/Tlb.fir
@@ -0,0 +1,18 @@
+; RUN: firrtl -i %s -o %s.flo -x X -p cTwd | tee %s.out | FileCheck %s
+; CHECK: Done!
+circuit Tbl :
+ module Tbl :
+ output o : UInt(16)
+ input i : UInt(16)
+ input d : UInt(16)
+ input we : UInt(1)
+
+ mem m : UInt(10)[256]
+ node T_12 = UInt(0, 1)
+ o := Pad(T_12,?)
+ when we :
+ accessor T_13 = m[i]
+ T_13 := Pad(d,?)
+ else :
+ accessor T_14 = m[i]
+ o := Pad(T_14,?)