aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/Tbl.fir
diff options
context:
space:
mode:
authorjackbackrack2015-05-20 03:52:53 -0700
committerjackbackrack2015-05-20 03:52:53 -0700
commit994fc58aa9a65eb4a5e287e121ee2e77d91db403 (patch)
tree5a75bfd8f4bd0040e577e20c928d2ee5bc56924b /test/passes/jacktest/Tbl.fir
parentf98ef93a1562357412fd1fce4b1f453f8a33572a (diff)
parent92e7da031a14df41ee0cab13a4a63b472fbdb5e1 (diff)
merge
Diffstat (limited to 'test/passes/jacktest/Tbl.fir')
-rw-r--r--test/passes/jacktest/Tbl.fir18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/passes/jacktest/Tbl.fir b/test/passes/jacktest/Tbl.fir
new file mode 100644
index 00000000..bf7635fb
--- /dev/null
+++ b/test/passes/jacktest/Tbl.fir
@@ -0,0 +1,18 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+;CHECK: Done!
+circuit Tbl :
+ module Tbl :
+ input i : UInt<16>
+ input d : UInt<16>
+ output o : UInt<16>
+ input we : UInt<1>
+
+ mem m : UInt<10>[256]
+ o := UInt<1>(0)
+ when we :
+ accessor T_13 = m[i]
+ node T_14 = bits(d, 9, 0)
+ T_13 := T_14
+ else :
+ accessor T_15 = m[i]
+ o := T_15