diff options
| author | azidar | 2015-03-23 16:12:38 -0700 |
|---|---|---|
| committer | azidar | 2015-03-23 16:12:38 -0700 |
| commit | 3e6d0e2b290aeb49aa9085b75b8a6c57fe1af28c (patch) | |
| tree | b99b309fed9b01210db1754f7148db915334c867 /test/passes/lower-to-ground | |
| parent | c61accd4f1c46fa24cf7354d6326141950d827c8 (diff) | |
Finished first two parts of expand-whens pass. Fixed inits by adding WRegInit and removing Null and initialize-register pass
Diffstat (limited to 'test/passes/lower-to-ground')
| -rw-r--r-- | test/passes/lower-to-ground/register.fir | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/passes/lower-to-ground/register.fir b/test/passes/lower-to-ground/register.fir new file mode 100644 index 00000000..9021d0c2 --- /dev/null +++ b/test/passes/lower-to-ground/register.fir @@ -0,0 +1,21 @@ +; RUN: firrtl %s abcdefghi c | tee %s.out | FileCheck %s + +; CHECK: Lower To Ground + circuit top : + module top : + input a : UInt(16) + input b : UInt(16) + output z : UInt + + reg r1 : { x : UInt, flip y : SInt } + wire q : { x : UInt, flip y : SInt } + r1.init := q + + ; CHECK: reg r1#x : UInt + ; CHECK: reg r1#y : SInt + ; CHECK: wire q#x : UInt + ; CHECK: wire q#y : SInt + ; CHECK: r1#init#x := q#x + ; CHECK: q#y := r1#init#y + +; CHECK: Finished Lower To Ground |
