From 042d3aee3e7b3dbb75204801611629f39c947a92 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 15 Jul 2017 22:10:48 +0200 Subject: [PATCH] frontend/etherbone: fix cd="sys case --- liteeth/frontend/etherbone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteeth/frontend/etherbone.py b/liteeth/frontend/etherbone.py index 54ad9bd..eaba92d 100644 --- a/liteeth/frontend/etherbone.py +++ b/liteeth/frontend/etherbone.py @@ -137,7 +137,7 @@ class LiteEthEtherbonePacketRX(Module): class LiteEthEtherbonePacket(Module): - def __init__(self, udp, udp_port, cd=None): + def __init__(self, udp, udp_port, cd="sys"): self.submodules.tx = tx = LiteEthEtherbonePacketTX(udp_port) self.submodules.rx = rx = LiteEthEtherbonePacketRX() udp_port = udp.crossbar.get_port(udp_port, dw=32, cd=cd) @@ -497,7 +497,7 @@ class LiteEthEtherboneWishboneSlave(Module): # etherbone class LiteEthEtherbone(Module): - def __init__(self, udp, udp_port, mode="master", cd=None): + def __init__(self, udp, udp_port, mode="master", cd="sys"): # decode/encode etherbone packets self.submodules.packet = packet = LiteEthEtherbonePacket(udp, udp_port, cd)