diff --git a/vhdmmio/core/block.py b/vhdmmio/core/block.py index 35bceca..417c3e6 100644 --- a/vhdmmio/core/block.py +++ b/vhdmmio/core/block.py @@ -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')