aboutsummaryrefslogtreecommitdiff
path: root/test/passes/infer-widths/simple.fir
blob: f88afcd617d72a15ded3104c16ac00becb85176e (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
; RUN: firrtl -i %s -o %s.flo -X flo -p cTwd 2>&1 | tee %s.out | FileCheck %s

;CHECK: Infer Widths
circuit top :
   module top :
      input clk : Clock
      input reset : UInt<1>
      wire e : UInt<30>
      e := UInt(1)
      reg y : UInt,clk,reset
      y := e

      wire a : UInt<20>
      a := UInt(1)
      wire b : UInt<10>
      b := UInt(1)
      wire c : UInt
      c := UInt(1)
      wire z : UInt
       
      z := mux(c,a,b)

   

; CHECK: Finished Infer Widths