diff options
| author | jackbackrack | 2015-06-02 08:47:40 -0700 |
|---|---|---|
| committer | jackbackrack | 2015-06-02 08:47:40 -0700 |
| commit | b178ca42fd9d4f7b94d80c01cd810bf18da9ebc8 (patch) | |
| tree | 033e197aa2e297187e21712faf1957eb405b435b /test/chisel3/Tbl.fir | |
| parent | e668a13b285c87678a708a8af5bee2cfa0f7645b (diff) | |
| parent | 8fc826a2770f46d63d8d7b1bccf14d2bf6e6b7cd (diff) | |
merge + fix trim to use correct bits operands
Diffstat (limited to 'test/chisel3/Tbl.fir')
| -rw-r--r-- | test/chisel3/Tbl.fir | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/chisel3/Tbl.fir b/test/chisel3/Tbl.fir new file mode 100644 index 00000000..d64916f1 --- /dev/null +++ b/test/chisel3/Tbl.fir @@ -0,0 +1,19 @@ +; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s +;CHECK: Done! + +circuit Tbl : + module Tbl : + input i : UInt<16> + input d : UInt<16> + output o : UInt<16> + input we : UInt<1> + + mem m : UInt<10>[256] + o := UInt<1>(0) + when we : + accessor T_13 = m[i] + node T_14 = bits(d, 9, 0) + T_13 := T_14 + else : + accessor T_15 = m[i] + o := T_15 |
