From 44c87af8cb178b1746c90798f70feeff5567bd29 Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 24 May 2021 11:49:51 +0200 Subject: [PATCH] Fix active_low/active_high reset bug A negation was added for active_high, rather than an active_low reset. --- srdl2sv/components/field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srdl2sv/components/field.py b/srdl2sv/components/field.py index e716844..7271fd0 100644 --- a/srdl2sv/components/field.py +++ b/srdl2sv/components/field.py @@ -239,7 +239,7 @@ class Field(Component): Field.templ_dict['rst_field_assign']['rtl'].format( path = self.path_underscored, rst_name = self.rst['name'], - rst_negl = "!" if self.rst['active'] == "active_high" else "", + rst_negl = "!" if self.rst['active'] == "active_low" else "", rst_value = self.rst['value'], genvars = self.genvars_str))