soc/interconnect/packet: Add default values for HeaderField parameters.

This commit is contained in:
Florent Kermarrec 2024-06-17 10:54:53 +02:00
parent 81b70d1e37
commit a899c23f65
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class Dispatcher(LiteXModule):
# Header ------------------------------------------------------------------------------------------- # Header -------------------------------------------------------------------------------------------
class HeaderField: class HeaderField:
def __init__(self, byte, offset, width): def __init__(self, byte=0, offset=0, width=1):
self.byte = byte self.byte = byte
self.offset = offset self.offset = offset
self.width = width self.width = width