aboutsummaryrefslogtreecommitdiff
path: root/test/passes/make-explicit-reset/mix-reset.fir
blob: 2f740fa2b010719fb9974acf146a521c306356af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
; RUN: firrtl -i %s -o %s.flo -x abcd -p c | tee %s.out | FileCheck %s

; CHECK: Make Explicit Reset
circuit top :
   module A :
      ;CHECK: input reset : UInt(1)
      input x : UInt(16)
      output y : UInt(16)
      inst b of B
      ;CHECK: b.reset := reset
   module B :
      input reset : UInt(1)
      ;CHECK: input reset : UInt(1)
      input x : UInt(16)
      output y : UInt(16)
      inst c of C
      ;CHECK: c.reset := reset
   module C :
      ;CHECK: input reset : UInt(1)
      input a : UInt(16)
      input b : UInt(16)
   module top :
      ;CHECK: input reset : UInt(1)
      input a : UInt(16)
      input b : UInt(16)
      output z : UInt
      inst a of A
      ;CHECK: a.reset := reset
;CHECK: Finished Make Explicit Reset