aboutsummaryrefslogtreecommitdiff
path: root/test/passes/initialize-regs
diff options
context:
space:
mode:
authorazidar2015-04-27 11:14:06 -0700
committerazidar2015-04-27 11:14:06 -0700
commit2d2120a05549a5d31072aa792dc96fb7e6e7c629 (patch)
tree900e95aecdd6af6dc0e62a889ab2b81c8b4d2f80 /test/passes/initialize-regs
parent55a4ce521e06aa51aa005eb37c47918c0eece57c (diff)
Added on-reset
Diffstat (limited to 'test/passes/initialize-regs')
-rw-r--r--test/passes/initialize-regs/bundle-init.fir21
-rw-r--r--test/passes/initialize-regs/nested-whens.fir26
2 files changed, 0 insertions, 47 deletions
diff --git a/test/passes/initialize-regs/bundle-init.fir b/test/passes/initialize-regs/bundle-init.fir
deleted file mode 100644
index 7e9af8df..00000000
--- a/test/passes/initialize-regs/bundle-init.fir
+++ /dev/null
@@ -1,21 +0,0 @@
-; RUN: firrtl -i %s -o %s.flo -x abcdefghij -p c | tee %s.out | FileCheck %s
-; CHECK: Done!
-circuit top :
- module A :
- reg r : { x : UInt, flip y : UInt}
- wire a : UInt
- wire b : UInt
- wire w : { x : UInt, flip y : UInt}
-
- r.x := a
- r.y := b
- on-reset r := w
-
-; CHECK: reg r : { x, flip y}
-; CHECK: r.x := a
-; CHECK: r.y := b
-; CHECK: when reset :
-; CHECK: r.x := w.x
-; CHECK: w.y := r.y
-
-
diff --git a/test/passes/initialize-regs/nested-whens.fir b/test/passes/initialize-regs/nested-whens.fir
deleted file mode 100644
index 28cbc53d..00000000
--- a/test/passes/initialize-regs/nested-whens.fir
+++ /dev/null
@@ -1,26 +0,0 @@
-; RUN: firrtl -i %s -o %s.flo -x abcdefghij -p c | tee %s.out | FileCheck %s
-; CHECK: Done!
-circuit top :
- module A :
- wire p : UInt
- wire q : UInt
- reg r : UInt
- wire a : UInt
- wire b : UInt
- wire x : UInt
- wire y : UInt
- wire z : UInt
-
- on-reset r := w
- when p
- on-reset r := x
- r := a
- when q
- on-reset r := y
- r := b
- r := z
-
-; CHECK: r := z
-; CHECK: when reset
-; CHECK: r := q?b:(p?a:w)
-