Fix active_low/active_high reset bug

A negation was added for active_high, rather than an active_low reset.
This commit is contained in:
Dennis Potter 2021-05-24 11:49:51 +02:00
parent b7c1a12179
commit 44c87af8cb
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -239,7 +239,7 @@ class Field(Component):
Field.templ_dict['rst_field_assign']['rtl'].format( Field.templ_dict['rst_field_assign']['rtl'].format(
path = self.path_underscored, path = self.path_underscored,
rst_name = self.rst['name'], 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'], rst_value = self.rst['value'],
genvars = self.genvars_str)) genvars = self.genvars_str))