aboutsummaryrefslogtreecommitdiff
path: root/test/features
diff options
context:
space:
mode:
Diffstat (limited to 'test/features')
-rw-r--r--test/features/InitAccessor.fir10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/features/InitAccessor.fir b/test/features/InitAccessor.fir
new file mode 100644
index 00000000..983cbd94
--- /dev/null
+++ b/test/features/InitAccessor.fir
@@ -0,0 +1,10 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c 2>&1 | tee %s.out | FileCheck %s
+;CHECK: Done!
+circuit Top :
+ module Top :
+ input in : UInt<1>
+ wire b : UInt<1>[3]
+ node c = UInt(1)
+ infer accessor a = b[c]
+ when in :
+ a := UInt(1)