Skip to content

Commit

Permalink
Update cp_builder.py fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bat52 authored Apr 29, 2024
1 parent a5e089b commit b54f31b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cheap_pie/cheap_pie_core/cp_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ def reg_exists(self,regname):
if not self.struct_register is None:
if self.struct_register.regname == regname:
return True
return regname in self.outdict.keys()

for key,val in self.outdict.items():
if key==regname:
return True

return False

def newfield(self, regfield, width, offset, comments):
""" add a new field to current register """
Expand Down

0 comments on commit b54f31b

Please sign in to comment.