partner/c10prefkit: apply ethernet constraints on nets as done on Xilinx devices.
This commit is contained in:
parent
0a56d86b1a
commit
8fa3f09226
|
@ -77,6 +77,8 @@ class _CRG(Module):
|
||||||
self.comb += self.cd_sys.clk.eq(clk_outs[0])
|
self.comb += self.cd_sys.clk.eq(clk_outs[0])
|
||||||
self.comb += self.cd_sys_ps.clk.eq(clk_outs[1])
|
self.comb += self.cd_sys_ps.clk.eq(clk_outs[1])
|
||||||
self.comb += platform.request("sdram_clock").eq(self.cd_sys_ps.clk)
|
self.comb += platform.request("sdram_clock").eq(self.cd_sys_ps.clk)
|
||||||
|
platform.add_period_constraint(self.cd_sys.clk, 1e9/50e6)
|
||||||
|
platform.add_period_constraint(self.cd_sys_ps.clk, 1e9/50e6)
|
||||||
|
|
||||||
# BaseSoC ------------------------------------------------------------------------------------------
|
# BaseSoC ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -133,14 +135,17 @@ class EthernetSoC(BaseSoC):
|
||||||
self.add_csr("ethmac")
|
self.add_csr("ethmac")
|
||||||
self.add_interrupt("ethmac")
|
self.add_interrupt("ethmac")
|
||||||
|
|
||||||
self.platform.add_period_constraint(self.platform.lookup_request("eth_clocks").tx, 1e9/12.5e6)
|
self.ethphy.crg.cd_eth_tx.clk.attr.add("keep")
|
||||||
self.platform.add_period_constraint(self.platform.lookup_request("eth_clocks").rx, 1e9/12.5e6)
|
self.ethphy.crg.cd_eth_rx.clk.attr.add("keep")
|
||||||
|
self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 1e9/12.5e6)
|
||||||
|
self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 1e9/12.5e6)
|
||||||
self.platform.add_false_path_constraints(
|
self.platform.add_false_path_constraints(
|
||||||
self.platform.lookup_request("clk12"),
|
self.crg.cd_sys.clk,
|
||||||
self.platform.lookup_request("eth_clocks").tx,
|
self.ethphy.crg.cd_eth_tx.clk,
|
||||||
self.platform.lookup_request("eth_clocks").rx
|
self.ethphy.crg.cd_eth_rx.clk
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Build --------------------------------------------------------------------------------------------
|
# Build --------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in New Issue