From a899c23f653bc66a3d6a000a2cbe3a47a6757807 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 17 Jun 2024 10:54:53 +0200 Subject: [PATCH] soc/interconnect/packet: Add default values for HeaderField parameters. --- litex/soc/interconnect/packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/interconnect/packet.py b/litex/soc/interconnect/packet.py index 348875ac2..123a587e1 100644 --- a/litex/soc/interconnect/packet.py +++ b/litex/soc/interconnect/packet.py @@ -101,7 +101,7 @@ class Dispatcher(LiteXModule): # Header ------------------------------------------------------------------------------------------- class HeaderField: - def __init__(self, byte, offset, width): + def __init__(self, byte=0, offset=0, width=1): self.byte = byte self.offset = offset self.width = width