Skip to content

Commit 125432b

Browse files
committedJun 23, 2015
liteeth/example_designs: use new Keep SynthesisDirective
1 parent 351e654 commit 125432b

File tree

1 file changed

+6
-0
lines changed
  • misoclib/com/liteeth/example_designs/targets

1 file changed

+6
-0
lines changed
 

Diff for: ‎misoclib/com/liteeth/example_designs/targets/base.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from migen.bus import wishbone
22
from migen.bank.description import *
33
from migen.genlib.io import CRG
4+
from migen.fhdl.specials import Keep
45
from mibuild.xilinx.vivado import XilinxVivadoToolchain
56

67
from misoclib.soc import SoC
@@ -45,6 +46,11 @@ def __init__(self, platform, clk_freq=166*1000000,
4546
self.submodules.core = LiteEthUDPIPCore(self.phy, mac_address, convert_ip(ip_address), clk_freq)
4647

4748
if isinstance(platform.toolchain, XilinxVivadoToolchain):
49+
self.specials += [
50+
Keep(self.crg.cd_sys.clk),
51+
Keep(self.phy.crg.cd_eth_rx.clk),
52+
Keep(self.phy.crg.cd_eth_tx.clk)
53+
]
4854
platform.add_platform_command("""
4955
create_clock -name sys_clk -period 6.0 [get_nets sys_clk]
5056
create_clock -name eth_rx_clk -period 8.0 [get_nets eth_rx_clk]

0 commit comments

Comments
 (0)
Please sign in to comment.