phy/gmii: use a BUFG between eth_rx.clk and eth_rx.clk.
This makes it Xilinx specific, but without it ISE simplifies this as a single signal (which is fine) but is not able to keep track of the "keep" attribute of both signals and fails applying the constraints.
This commit is contained in:
parent
8accd6740a
commit
fb478537e7
|
@ -58,7 +58,10 @@ class LiteEthPHYGMIICRG(Module, AutoCSR):
|
||||||
# MII: Use PHY clock_pads.tx as eth_tx_clk, do not drive clock_pads.gtx
|
# MII: Use PHY clock_pads.tx as eth_tx_clk, do not drive clock_pads.gtx
|
||||||
self.specials += DDROutput(1, mii_mode, clock_pads.gtx, ClockSignal("eth_tx"))
|
self.specials += DDROutput(1, mii_mode, clock_pads.gtx, ClockSignal("eth_tx"))
|
||||||
if isinstance(mii_mode, int) and (mii_mode == 0):
|
if isinstance(mii_mode, int) and (mii_mode == 0):
|
||||||
self.comb += self.cd_eth_tx.clk.eq(self.cd_eth_rx.clk)
|
self.specials += Instance("BUFG",
|
||||||
|
i_I = self.cd_eth_rx.clk,
|
||||||
|
o_O = self.cd_eth_tx.clk,
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
# XXX Xilinx specific, replace BUFGMUX with a generic clock buffer?
|
# XXX Xilinx specific, replace BUFGMUX with a generic clock buffer?
|
||||||
self.specials += Instance("BUFGMUX",
|
self.specials += Instance("BUFGMUX",
|
||||||
|
|
Loading…
Reference in New Issue