mibuild/platforms/versa: add ethernet clock constraints

This commit is contained in:
Florent Kermarrec 2015-03-17 12:04:00 +01:00
parent ba2aeb08be
commit c06ab82f13

View file

@ -79,6 +79,13 @@ class Platform(LatticePlatform):
def __init__(self):
LatticePlatform.__init__(self, "LFE3-35EA-6FN484C", _io)
try:
self.add_period_constraint(self.lookup_request("eth_clocks", 0).rx, 8.0)
except ConstraintError:
pass
try:
self.add_period_constraint(self.lookup_request("eth_clocks", 1).rx, 8.0)
except ConstraintError:
pass
def create_programmer(self):
return LatticeProgrammer()