From 7da3653ce55f010c08fcebbfa7cedb8a51262248 Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 16 Oct 2020 16:59:51 -0700 Subject: [PATCH] Only output wmask to lib file in w or rw ports. --- compiler/characterizer/lib.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/characterizer/lib.py b/compiler/characterizer/lib.py index 92f8b167..96c464b7 100644 --- a/compiler/characterizer/lib.py +++ b/compiler/characterizer/lib.py @@ -131,18 +131,18 @@ class lib: self.write_header() - #Loop over all ports. + # Loop over all ports. for port in self.all_ports: - #set the read and write port as inputs. + # set the read and write port as inputs. self.write_data_bus(port) self.write_addr_bus(port) - if self.sram.write_size: + if self.sram.write_size and port in self.write_ports: self.write_wmask_bus(port) - self.write_control_pins(port) #need to split this into sram and port control signals + # need to split this into sram and port control signals + self.write_control_pins(port) self.write_clk_timing_power(port) self.write_footer() - def write_footer(self): """ Write the footer """