gen/mac: Allow 16-bit data_width.
This commit is contained in:
parent
c18cfb8bc0
commit
b7443f5fd3
|
@ -559,7 +559,7 @@ class UDPCore(PHYCore):
|
|||
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,
|
||||
|
|
|
@ -155,7 +155,7 @@ class LiteEthMACCRC32Inserter(LiteXModule):
|
|||
# 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)
|
||||
|
@ -275,7 +275,7 @@ class LiteEthMACCRC32Checker(LiteXModule):
|
|||
# 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)
|
||||
|
|
Loading…
Reference in New Issue