def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)
try:
- self.add_period_constraint(self.lookup_request("eth_clocks").rx, 8.0)
+ self.add_period_constraint(self.lookup_request("eth_clocks").rx, 1e9/125e6)
except ConstraintError:
pass
def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)
try:
- self.add_period_constraint(self.lookup_request("clk200").p, 5.0)
+ self.add_period_constraint(self.lookup_request("clk200").p, 1e9/200e6)
except ConstraintError:
pass
try:
- self.add_period_constraint(self.lookup_request("eth_clocks").rx, 8.0)
+ self.add_period_constraint(self.lookup_request("eth_clocks").rx, 1e9/125e6)
except ConstraintError:
pass
try:
- self.add_period_constraint(self.lookup_request("eth_clocks").tx, 8.0)
+ self.add_period_constraint(self.lookup_request("eth_clocks").tx, 1e9/125e6)
except ConstraintError:
pass
if isinstance(self.toolchain, XilinxISEToolchain):
def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)
try:
- self.add_period_constraint(self.lookup_request("eth_clocks").rx, 8.0)
+ self.add_period_constraint(self.lookup_request("eth_clocks").rx, 1e9/125e6)
except ConstraintError:
pass
def do_finalize(self, fragment):
LatticePlatform.do_finalize(self, fragment)
try:
- self.add_period_constraint(self.lookup_request("eth_clocks", 0).rx, 8.0)
+ self.add_period_constraint(self.lookup_request("eth_clocks", 0).rx, 1e9/125e6)
except ConstraintError:
pass
try:
- self.add_period_constraint(self.lookup_request("eth_clocks", 1).rx, 8.0)
+ self.add_period_constraint(self.lookup_request("eth_clocks", 1).rx, 1e9/125e6)
except ConstraintError:
pass
def do_finalize(self, fragment):
try:
- self.add_period_constraint(self.lookup_request("eth_clocks", 0).rx, 8.0)
+ self.add_period_constraint(self.lookup_request("eth_clocks", 0).rx, 1e9/125e6)
except ConstraintError:
pass
try:
- self.add_period_constraint(self.lookup_request("eth_clocks", 1).rx, 8.0)
+ self.add_period_constraint(self.lookup_request("eth_clocks", 1).rx, 1e9/125e6)
except ConstraintError:
pass
self.ethphy.crg.cd_eth_rx.clk.attr.add("keep")
self.ethphy.crg.cd_eth_tx.clk.attr.add("keep")
- self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 80.0)
- self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 80.0)
+ self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 1e9/12.5e6)
+ self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 1e9/12.5e6)
self.platform.add_false_path_constraints(
self.crg.cd_sys.clk,
self.ethphy.crg.cd_eth_rx.clk,
self.ethphy.crg.cd_eth_rx.clk.attr.add("keep")
self.ethphy.crg.cd_eth_tx.clk.attr.add("keep")
- self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 8.0)
- self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 8.0)
+ self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 1e9/125e6)
+ self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 1e9/125e6)
self.platform.add_false_path_constraints(
self.crg.cd_sys.clk,
self.ethphy.crg.cd_eth_rx.clk,
self.ethphy.crg.cd_eth_rx.clk.attr.add("keep")
self.ethphy.crg.cd_eth_tx.clk.attr.add("keep")
- self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 8.0)
- self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 8.0)
+ self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 1e9/125e6)
+ self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 1e9/125e6)
self.platform.add_false_path_constraints(
self.crg.cd_sys.clk,
self.ethphy.crg.cd_eth_rx.clk,
self.ethphy.crg.cd_eth_rx.clk.attr.add("keep")
self.ethphy.crg.cd_eth_tx.clk.attr.add("keep")
- self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 8.0)
- self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 8.0)
+ self.platform.add_period_constraint(self.ethphy.crg.cd_eth_rx.clk, 1e9/125e6)
+ self.platform.add_period_constraint(self.ethphy.crg.cd_eth_tx.clk, 1e9/125e6)
self.platform.add_false_path_constraints(
self.crg.cd_sys.clk,
self.ethphy.crg.cd_eth_rx.clk,
# clk / rst
clk100 = platform.request("clk100")
rst_n = platform.request("rst_n")
- platform.add_period_constraint(clk100, 10.0)
+ platform.add_period_constraint(clk100, 1e9/100e6)
# power on reset
por_count = Signal(16, reset=2**16-1)