From 5475bbf62dc98d7858e36ad7741adaeafd2fe50e Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 6 Sep 2021 22:42:32 -0700 Subject: [PATCH] Fix issue that causes 'input None' if no reset is present for a field --- srdl2sv/components/field.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srdl2sv/components/field.py b/srdl2sv/components/field.py index 1c3d6d2..69cb700 100644 --- a/srdl2sv/components/field.py +++ b/srdl2sv/components/field.py @@ -1068,7 +1068,8 @@ class Field(Component): self.rst = Field.process_reset_signal( obj.get_property("resetsignal")) - self.resets.add(self.rst['name']) + if self.rst['name']: + self.resets.add(self.rst['name']) # Value of reset must always be determined on field level self.rst['value'] = \