Skip to content

Commit

Permalink
resolve weird address contraint
Browse files Browse the repository at this point in the history
  • Loading branch information
pkotamnives committed Oct 25, 2023
1 parent d1cf81d commit ef151ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xml_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def overlaps(self, other):

def overloads(self):
"""check if the object overloads the register space"""
if self.start >= 237:
if self.start + self.size >= 255:
return True
return False

Expand Down Expand Up @@ -207,5 +207,5 @@ def overloads(self):
if entries[i].overlaps(entries[j]):
print(f"{entries[i].name} overlaps with {entries[j].name}")

if entries[len(entries)-1].overloads(entries[len(entries)-1]):
if entries[len(entries)-1].overloads():
print(f"{entries[len(entries)-1].name} overloads")

0 comments on commit ef151ce

Please sign in to comment.