Skip to content

Commit c06ab82

Browse files
committedMar 17, 2015
mibuild/platforms/versa: add ethernet clock constraints
1 parent ba2aeb0 commit c06ab82

File tree

1 file changed

+9
-2
lines changed
  • mibuild/platforms

1 file changed

+9
-2
lines changed
 

‎mibuild/platforms/versa.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
_io = [
99
("clk100", 0, Pins("L5"), IOStandard("LVDS25")),
10-
("rst_n", 0, Pins("A21"),IOStandard("LVCMOS33")),
10+
("rst_n", 0, Pins("A21"), IOStandard("LVCMOS33")),
1111

1212
("user_led", 0, Pins("Y20"), IOStandard("LVCMOS33")),
1313
("user_led", 1, Pins("AA21"), IOStandard("LVCMOS33")),
@@ -79,6 +79,13 @@ class Platform(LatticePlatform):
7979

8080
def __init__(self):
8181
LatticePlatform.__init__(self, "LFE3-35EA-6FN484C", _io)
82-
82+
try:
Has conversations. Original line has conversations.
83+
self.add_period_constraint(self.lookup_request("eth_clocks", 0).rx, 8.0)
84+
except ConstraintError:
85+
pass
86+
try:
87+
self.add_period_constraint(self.lookup_request("eth_clocks", 1).rx, 8.0)
88+
except ConstraintError:
89+
pass
8390
def create_programmer(self):
8491
return LatticeProgrammer()

0 commit comments

Comments
 (0)
Please sign in to comment.