remote/etherbone/EtherbonePacket: Set default addr_width of 32 (To avoid breaking old code using EtherbonePacket()).

This commit is contained in:
Florent Kermarrec 2023-11-10 13:17:00 +01:00
parent 5672a9dd2a
commit 52adf240f9
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ class EtherboneRecord(Packet):
# Etherbone Packet ---------------------------------------------------------------------------------
class EtherbonePacket(Packet):
def __init__(self, addr_width, init=[]):
def __init__(self, addr_width=32, init=[]):
assert addr_width in [8, 16, 32, 64]
Packet.__init__(self, init)