From 48fce6485d212f6bb39e9b19679db5796121e059 Mon Sep 17 00:00:00 2001 From: Bugra Onal Date: Thu, 4 Aug 2022 16:37:21 -0700 Subject: [PATCH] write_size None initialization fixed --- compiler/modules/write_driver_array.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/modules/write_driver_array.py b/compiler/modules/write_driver_array.py index 01cca117..233b2326 100644 --- a/compiler/modules/write_driver_array.py +++ b/compiler/modules/write_driver_array.py @@ -29,7 +29,10 @@ class write_driver_array(design): self.columns = columns self.word_size = word_size - self.write_size = write_size + if write_size is None: + self.write_size = word_size + else: + self.write_size = write_size self.offsets = offsets self.column_offset = column_offset self.words_per_row = int(columns / word_size)