integration/soc/add_ethernet: don't add timing constraints with LiteEthPHYModel.
This commit is contained in:
parent
896d1ba988
commit
f390161baa
|
@ -1342,6 +1342,7 @@ class LiteXSoC(SoC):
|
||||||
# Imports
|
# Imports
|
||||||
from liteeth.core import LiteEthUDPIPCore
|
from liteeth.core import LiteEthUDPIPCore
|
||||||
from liteeth.frontend.etherbone import LiteEthEtherbone
|
from liteeth.frontend.etherbone import LiteEthEtherbone
|
||||||
|
from liteeth.phy.model import LiteEthPHYModel
|
||||||
# Core
|
# Core
|
||||||
ethcore = LiteEthUDPIPCore(
|
ethcore = LiteEthUDPIPCore(
|
||||||
phy = phy,
|
phy = phy,
|
||||||
|
@ -1368,6 +1369,7 @@ class LiteXSoC(SoC):
|
||||||
else:
|
else:
|
||||||
eth_rx_clk = phy.cd_eth_rx.clk
|
eth_rx_clk = phy.cd_eth_rx.clk
|
||||||
eth_tx_clk = phy.cd_eth_tx.clk
|
eth_tx_clk = phy.cd_eth_tx.clk
|
||||||
|
if not isinstance(phy, LiteEthPHYModel):
|
||||||
self.platform.add_period_constraint(eth_rx_clk, 1e9/phy.rx_clk_freq)
|
self.platform.add_period_constraint(eth_rx_clk, 1e9/phy.rx_clk_freq)
|
||||||
self.platform.add_period_constraint(eth_tx_clk, 1e9/phy.tx_clk_freq)
|
self.platform.add_period_constraint(eth_tx_clk, 1e9/phy.tx_clk_freq)
|
||||||
self.platform.add_false_path_constraints(
|
self.platform.add_false_path_constraints(
|
||||||
|
|
Loading…
Reference in New Issue