Skip to content

Commit f7304a1

Browse files
committedApr 2, 2016
xilinx/ise: fix add_period_constraint
1 parent ccf6303 commit f7304a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎migen/build/xilinx/ise.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,9 @@ def add_period_constraint(self, platform, clk, period):
201201
platform.add_platform_command(
202202
"""
203203
NET "{clk}" TNM_NET = "PRD{clk}";
204-
TIMESPEC "TS{clk}" = PERIOD "PRD{clk}" {period} ns HIGH 50%;
204+
TIMESPEC "TS{clk}" = PERIOD "PRD{clk}" """ + str(period) + """ ns HIGH 50%;
205205
""",
206206
clk=clk,
207-
period=str(period),
208207
)
209208

210209
def add_false_path_constraint(self, platform, from_, to):

1 commit comments

Comments
 (1)

mithro commented on Apr 3, 2016

@mithro
Contributor

LGTM. Sorry about not testing.

Please sign in to comment.