Skip to content

Commit

Permalink
soc/interconnect/packet: Add default values for HeaderField parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jun 17, 2024
1 parent 81b70d1 commit a899c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/interconnect/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self, master, slaves, one_hot=False, **kwargs):
# 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
Expand Down

0 comments on commit a899c23

Please sign in to comment.