From 52adf240f9b18088e4d3648773e60e197f11d8e9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 10 Nov 2023 13:17:00 +0100 Subject: [PATCH] remote/etherbone/EtherbonePacket: Set default addr_width of 32 (To avoid breaking old code using EtherbonePacket()). --- litex/tools/remote/etherbone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/tools/remote/etherbone.py b/litex/tools/remote/etherbone.py index 59d679efb..3aeac5eb1 100644 --- a/litex/tools/remote/etherbone.py +++ b/litex/tools/remote/etherbone.py @@ -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)