global: use new StrideConverter
This commit is contained in:
parent
51f56e79dd
commit
aff07c6809
|
@ -67,10 +67,10 @@ class LiteEthMACCore(Module, AutoCSR):
|
|||
# Converters
|
||||
if dw != phy.dw:
|
||||
reverse = endianness == "big"
|
||||
tx_converter = stream.Converter(eth_phy_description(dw),
|
||||
tx_converter = stream.StrideConverter(eth_phy_description(dw),
|
||||
eth_phy_description(phy.dw),
|
||||
reverse=reverse)
|
||||
rx_converter = stream.Converter(eth_phy_description(phy.dw),
|
||||
rx_converter = stream.StrideConverter(eth_phy_description(phy.dw),
|
||||
eth_phy_description(dw),
|
||||
reverse=reverse)
|
||||
self.submodules += ClockDomainsRenamer("eth_tx")(tx_converter)
|
||||
|
|
|
@ -35,14 +35,14 @@ class LiteEthUDPCrossbar(LiteEthCrossbar):
|
|||
user_port = LiteEthUDPUserPort(dw)
|
||||
internal_port = LiteEthUDPUserPort(8)
|
||||
if dw != 8:
|
||||
converter = stream.Converter(eth_udp_user_description(user_port.dw),
|
||||
converter = stream.StrideConverter(eth_udp_user_description(user_port.dw),
|
||||
eth_udp_user_description(8))
|
||||
self.submodules += converter
|
||||
self.comb += [
|
||||
user_port.sink.connect(converter.sink),
|
||||
converter.source.connect(internal_port.sink)
|
||||
]
|
||||
converter = stream.Converter(eth_udp_user_description(8),
|
||||
converter = stream.StrideConverter(eth_udp_user_description(8),
|
||||
eth_udp_user_description(user_port.dw))
|
||||
self.submodules += converter
|
||||
self.comb += [
|
||||
|
|
|
@ -18,7 +18,7 @@ class LiteEthPHYMIITX(Module):
|
|||
|
||||
if hasattr(pads, "tx_er"):
|
||||
self.sync += pads.tx_er.eq(0)
|
||||
converter = stream.Converter(converter_description(8),
|
||||
converter = stream.StrideConverter(converter_description(8),
|
||||
converter_description(4))
|
||||
self.submodules += converter
|
||||
self.comb += [
|
||||
|
@ -39,7 +39,7 @@ class LiteEthPHYMIIRX(Module):
|
|||
|
||||
# # #
|
||||
|
||||
converter = stream.Converter(converter_description(4),
|
||||
converter = stream.StrideConverter(converter_description(4),
|
||||
converter_description(8))
|
||||
converter = ResetInserter()(converter)
|
||||
self.submodules += converter
|
||||
|
|
|
@ -19,7 +19,7 @@ class LiteEthPHYRMIITX(Module):
|
|||
|
||||
# # #
|
||||
|
||||
converter = stream.Converter(converter_description(8),
|
||||
converter = stream.StrideConverter(converter_description(8),
|
||||
converter_description(2))
|
||||
self.submodules += converter
|
||||
self.comb += [
|
||||
|
@ -40,7 +40,7 @@ class LiteEthPHYRMIIRX(Module):
|
|||
|
||||
# # #
|
||||
|
||||
converter = stream.Converter(converter_description(2),
|
||||
converter = stream.StrideConverter(converter_description(2),
|
||||
converter_description(8))
|
||||
converter = ResetInserter()(converter)
|
||||
self.submodules += converter
|
||||
|
|
Loading…
Reference in New Issue