From 2824315f79fe79e76ade41cfbebfe217104b169a Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Sat, 27 Jul 2019 11:51:40 -0700 Subject: [PATCH] Fix error in wmask if --- compiler/sram/sram_1bank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/sram/sram_1bank.py b/compiler/sram/sram_1bank.py index 2f6760d0..355ca769 100644 --- a/compiler/sram/sram_1bank.py +++ b/compiler/sram/sram_1bank.py @@ -190,7 +190,7 @@ class sram_1bank(sram_base): self.data_dff_insts[port].place(data_pos[port], mirror="MX") # Add the write mask flops to the left of the din flops. - if (self.write_size != self.word_size): + if self.write_size is not None: if port in self.write_ports: wmask_pos[port] = vector(self.bank.bank_array_ur.x - self.data_dff_insts[port].width, self.bank.height + max_gap_size + self.data_dff_insts[port].height)