From 4653a09aec3603190098bbad5276b0d7f1e281a3 Mon Sep 17 00:00:00 2001 From: cyntem Date: Sun, 14 Jul 2024 20:05:00 +0300 Subject: [PATCH] Update a7_gtp.py After testing several boards with XC7A200T chips, I found, that SFP works well only with setting more than 10us. The most of the XC7A200T chips works with 500ns, but some boards need 10us. --- liteeth/phy/a7_gtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteeth/phy/a7_gtp.py b/liteeth/phy/a7_gtp.py index 658a9d8..c1117f2 100644 --- a/liteeth/phy/a7_gtp.py +++ b/liteeth/phy/a7_gtp.py @@ -90,7 +90,7 @@ class GTPTxInit(Module): # After configuration, transceiver resets have to stay low for # at least 500ns. # See https://www.xilinx.com/support/answers/43482.html - timer_max = ceil(500e-9*sys_clk_freq) + timer_max = ceil(10000e-9*sys_clk_freq) timer = Signal(max=timer_max+1) tick = Signal() self.sync += [