From e6beb7b3bbb745a7c7fde616bb349df1bdb7b764 Mon Sep 17 00:00:00 2001 From: jackbackrack Date: Mon, 13 Apr 2015 18:24:37 -0700 Subject: new chisel3 tests --- test/chisel3/Tbl.fir | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/chisel3/Tbl.fir (limited to 'test/chisel3/Tbl.fir') diff --git a/test/chisel3/Tbl.fir b/test/chisel3/Tbl.fir new file mode 100644 index 00000000..273047b0 --- /dev/null +++ b/test/chisel3/Tbl.fir @@ -0,0 +1,16 @@ +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_13 : UInt(1) = UInt(0, 1) + o := T_13 + when we : + accessor T_14 = m[i] + T_14 := d + else : + accessor T_15 = m[i] + o := T_15 \ No newline at end of file -- cgit v1.2.3