From 6e898b3cecdc3a6f65e58930beb13857c7e36c31 Mon Sep 17 00:00:00 2001 From: azidar Date: Sun, 17 Jan 2016 15:51:43 -0800 Subject: Fixed error where memory of size 1 would create an index of size 0. This can be fixed in the future with a pass that removes these memories --- test/features/MemSize1.fir | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/features/MemSize1.fir (limited to 'test') diff --git a/test/features/MemSize1.fir b/test/features/MemSize1.fir new file mode 100644 index 00000000..a29d3fc5 --- /dev/null +++ b/test/features/MemSize1.fir @@ -0,0 +1,11 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s +;CHECK: Done! +circuit Top : + module Top : + input clk : Clock + output out : UInt<32> + input i : UInt<1> + cmem m : UInt<32>[1] + read mport r = m[i],clk + out <= r + -- cgit v1.2.3