aboutsummaryrefslogtreecommitdiff
path: root/test/errors/high-form/RemoveScope.fir
blob: 16498fd89f20e7a4cc0e00cb9a4f0a4509c13c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
; XFAIL: *
; 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))