Merge pull request #19 from nbuchwitz/fix/scope-bitaddress

Scope bit address with byte address
This commit is contained in:
2021-10-16 10:47:07 +02:00
committed by GitHub

View File

@@ -176,7 +176,7 @@ class IOList(object):
if type(oldio) == StructIO: if type(oldio) == StructIO:
# Hier gibt es schon einen neuen IO # Hier gibt es schon einen neuen IO
if oldio._bitshift: if oldio._bitshift:
if io._bitshift == oldio._bitshift: if io._bitshift == oldio._bitshift and io._slc_address == oldio._slc_address:
raise MemoryError( raise MemoryError(
"bit {0} already assigned to '{1}'".format( "bit {0} already assigned to '{1}'".format(
io._bitaddress, oldio._name io._bitaddress, oldio._name