platforms/genesys2: add eth clock timing constraint
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 1 Oct 2018 13:37:34 +0000 (15:37 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 1 Oct 2018 13:37:34 +0000 (15:37 +0200)
litex/boards/platforms/genesys2.py

index 0a454ab86c0a74dd09b0ebc958ffc23257217036..89f721205fcdd20292d94e417dd36c5e9be3ad2c 100644 (file)
@@ -117,3 +117,7 @@ class Platform(XilinxPlatform):
 
     def do_finalize(self, fragment):
         XilinxPlatform.do_finalize(self, fragment)
+        try:
+            self.add_period_constraint(self.lookup_request("eth_clocks").rx, 8.0)
+        except ConstraintError:
+            pass