From d27d77bcf8d1ea8b3ffe49b1e2ac1455635b4657 Mon Sep 17 00:00:00 2001 From: Bugra Onal Date: Tue, 17 Jan 2023 10:40:44 -0800 Subject: [PATCH] fix din size in fake sram --- compiler/characterizer/fake_sram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/characterizer/fake_sram.py b/compiler/characterizer/fake_sram.py index 9d2a409c..001e1398 100644 --- a/compiler/characterizer/fake_sram.py +++ b/compiler/characterizer/fake_sram.py @@ -94,9 +94,9 @@ class fake_sram(sram_config): self.num_rw_ports + self.num_r_ports + self.num_w_ports)]) for port in range(self.num_rw_ports): self.pins.extend(['din{0}[{1}]'.format(port, bit) - for bit in range(self.num_cols)]) + for bit in range(self.word_size)]) self.pins.extend(['dout{0}[{1}]'.format(port, bit) - for bit in range(self.num_cols)]) + for bit in range(self.word_size)]) self.pins.extend(['addr{0}[{1}]'.format(port, bit) for bit in range(self.addr_size)]) if self.num_wmasks != 0: