[go: up one dir, main page]

Skip to content

Commit

Permalink
Fix typo in field suffix generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanstraten committed Sep 5, 2019
1 parent 1bbe287 commit 6dcab25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vhdmmio/core/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def __init__(self, resources, register, index, count):
mnem_suffix = 'HL'[index]
name_suffix = '_low' if mnem_suffix == 'L' else '_high'
elif count <= 26:
suffix = chr(ord('A') + index)
name_suffix = '_' + suffix.lower()
mnem_suffix = chr(ord('A') + index)
name_suffix = '_' + mnem_suffix.lower()
else:
raise ValueError('cannot have more than 26 blocks per register')

Expand Down

0 comments on commit 6dcab25

Please sign in to comment.