aboutsummaryrefslogtreecommitdiff
path: root/test/passes/lower-to-ground/test.fir
blob: 7e123fc3aa5967b88cdd85b32d022728221733a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: firrtl -i %s -o %s.flo -X flo -p cdt | tee %s.out | FileCheck %s
; CHECK: Done!

circuit Top :
  module Queue :
    output out : {valid : UInt<1>, flip ready : UInt<1>}
    out.valid := UInt(1)
  module Top :
    output this : {out : {valid : UInt<1>, flip ready : UInt<1>}}
    inst queue of Queue
    this.out := queue.out
    wire w : { x : UInt<5>, flip y : UInt<5>}
    w.x := UInt(1)
    wire a : UInt<5>
    a := UInt(1)
    w.y := a