Make sure num_wmasks is 0 when no wmask is generated

This commit is contained in:
Bugra Onal 2022-08-10 16:35:39 -07:00
parent f743b1f068
commit 6ba2a9bca7
1 changed files with 2 additions and 0 deletions

View File

@ -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: