From 6ba2a9bca772841f90a9d6b77a0b442ec07cb021 Mon Sep 17 00:00:00 2001 From: Bugra Onal Date: Wed, 10 Aug 2022 16:35:39 -0700 Subject: [PATCH] Make sure num_wmasks is 0 when no wmask is generated --- compiler/modules/write_driver_array.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/modules/write_driver_array.py b/compiler/modules/write_driver_array.py index 233b2326..5c3b664f 100644 --- a/compiler/modules/write_driver_array.py +++ b/compiler/modules/write_driver_array.py @@ -43,6 +43,8 @@ class write_driver_array(design): if self.write_size != self.word_size: self.num_wmasks = int(math.ceil(self.word_size / self.write_size)) + else: + self.num_wmasks = 0 self.create_netlist() if not OPTS.netlist_only: