aboutsummaryrefslogtreecommitdiff
path: root/test/errors/high-form/RemoveScope.fir
blob: 395c64925c79d63f54949ebed928f59d5483d817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
; CHECK: Done!

circuit Top :
  module Top :
    wire x : UInt<1>
    node p = UInt(1)
    when p :
       wire x : UInt<1>
       x := UInt(1)
       node y = add(x,UInt(1))
    else :
       wire x : UInt<1>
       x := UInt(1)
       node z = add(x,UInt(1))
    x := UInt(1)
    node w = add(x,UInt(1))