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,12 +1369,13 @@ 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
|
||||||
self.platform.add_period_constraint(eth_rx_clk, 1e9/phy.rx_clk_freq)
|
if not isinstance(phy, LiteEthPHYModel):
|
||||||
self.platform.add_period_constraint(eth_tx_clk, 1e9/phy.tx_clk_freq)
|
self.platform.add_period_constraint(eth_rx_clk, 1e9/phy.rx_clk_freq)
|
||||||
self.platform.add_false_path_constraints(
|
self.platform.add_period_constraint(eth_tx_clk, 1e9/phy.tx_clk_freq)
|
||||||
self.crg.cd_sys.clk,
|
self.platform.add_false_path_constraints(
|
||||||
eth_rx_clk,
|
self.crg.cd_sys.clk,
|
||||||
eth_tx_clk)
|
eth_rx_clk,
|
||||||
|
eth_tx_clk)
|
||||||
|
|
||||||
# Add SPI Flash --------------------------------------------------------------------------------
|
# Add SPI Flash --------------------------------------------------------------------------------
|
||||||
def add_spi_flash(self, name="spiflash", mode="4x", dummy_cycles=None, clk_freq=None):
|
def add_spi_flash(self, name="spiflash", mode="4x", dummy_cycles=None, clk_freq=None):
|
||||||
|
|
Loading…
Reference in New Issue