Skip to content

Commit

Permalink
gen/mac: Allow 16-bit data_width.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Apr 4, 2024
1 parent c18cfb8 commit b7443f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion liteeth/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def __init__(self, platform, core_config):
ip_address = ip_address,
clk_freq = core_config["clk_freq"],
dw = data_width,
with_sys_datapath = (data_width == 32),
with_sys_datapath = data_width in [16, 32],
tx_cdc_depth = tx_cdc_depth,
tx_cdc_buffered = tx_cdc_buffered,
rx_cdc_depth = rx_cdc_depth,
Expand Down
4 changes: 2 additions & 2 deletions liteeth/mac/crc.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __init__(self, description):
# Parameters.
data_width = len(sink.data)
ratio = 32//data_width
assert data_width in [8, 32, 64]
assert data_width in [8, 16, 32, 64]

# Signals.
crc_packet = Signal(32)
Expand Down Expand Up @@ -275,7 +275,7 @@ def __init__(self, description):
# Parameters.
data_width = len(sink.data)
ratio = ceil(32/data_width)
assert data_width in [8, 32, 64]
assert data_width in [8, 16, 32, 64]

# CRC32 Checker.
self.crc = crc = LiteEthMACCRC32(data_width)
Expand Down

0 comments on commit b7443f5

Please sign in to comment.