aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/Rom.fir
blob: db76b9c7297a68ee4c984805bbd1d47ec3461ff3 (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.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
;CHECK: Done!
circuit Rom : 
  module Rom : 
    output out : UInt<5>
    input addr : UInt<4>
    
    wire r : UInt<5>[16]
    r[0] <= UInt<5>(0)
    r[1] <= UInt<5>(2)
    r[2] <= UInt<5>(4)
    r[3] <= UInt<5>(6)
    r[4] <= UInt<5>(8)
    r[5] <= UInt<5>(10)
    r[6] <= UInt<5>(12)
    r[7] <= UInt<5>(14)
    r[8] <= UInt<5>(16)
    r[9] <= UInt<5>(18)
    r[10] <= UInt<5>(20)
    r[11] <= UInt<5>(22)
    r[12] <= UInt<5>(24)
    r[13] <= UInt<5>(26)
    r[14] <= UInt<5>(28)
    r[15] <= UInt<5>(30)
    node T_39 = r[addr]
    out <= T_39