Skip to content

Commit

Permalink
sayma_amc: add Ethernet clock constraints
Browse files Browse the repository at this point in the history
sbourdeauducq committed Aug 17, 2017
1 parent ae063b2 commit f7816e4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions migen/build/platforms/sinara/sayma_amc.py
Original file line number Diff line number Diff line change
@@ -111,3 +111,14 @@ class Platform(XilinxPlatform):

def __init__(self):
XilinxPlatform.__init__(self, "xcku040-ffva1156-1-c", _io, toolchain="vivado")

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
try:
self.add_period_constraint(self.lookup_request("eth_clocks").tx, 8.0)
except ConstraintError:
pass

0 comments on commit f7816e4

Please sign in to comment.