blob: a86b53d6a7261a3bc6ef478af72ccba2bc09b020 (
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.flo -X flo -p cTwd | tee %s.out | FileCheck %s
; CHECK: Done!
circuit Tbl :
module Tbl :
output o : UInt<16>
input i : UInt<16>
input d : UInt<16>
input we : UInt<1>
mem m : UInt<10>[256]
node T_12 = UInt<1>(0)
o := Pad(T_12,?)
when we :
accessor T_13 = m[i]
T_13 := Pad(d,?)
else :
accessor T_14 = m[i]
o := Pad(T_14,?)
|