soc/interconnect/packet: Add default values for HeaderField parameters.
This commit is contained in:
parent
81b70d1e37
commit
a899c23f65
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue