aboutsummaryrefslogtreecommitdiff
path: root/test/parser/node.fir
blob: 193aed883f4a0ac47b3fbbce67cc6bec1153ffd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: firrtl -i %s -o %s.out -X firrtl && cat %s.out | FileCheck %s
; CHECK: Done!
circuit GCD : 
   module GCD : 
      input x : UInt<128>
      input p : UInt<1>
      input q : UInt<1>
      input clk : Clock
      reg addr : UInt, clk with :         
         reset => (UInt<1>("h0"), addr)
      when p :
         node T_1234 = bits(x, 63, 24)
         addr <= T_1234
      when q :
         node T_1380 = tail(x, 1)
         addr <= T_1380