aboutsummaryrefslogtreecommitdiff
path: root/test/passes/lower-to-ground/register.fir
blob: a3c4f0ae7e94aa976983bd9b15978d834444d9f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; RUN: firrtl -i %s -o %s.flo -X flo -p 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 }
               on-reset r1 := q    

      ; CHECK: reg r1$x : UInt
      ; CHECK: reg r1$y : SInt
      ; CHECK: wire q$x : UInt
      ; CHECK: wire q$y : SInt
      ; CHECK: on-reset r1$x := q$x
      ; CHECK: on-reset q$y := r1$y   

; CHECK: Finished Lower To Ground