xilinx/vivado: Fix issue with #1755.
This commit is contained in:
parent
ad924a522a
commit
41357aba7d
|
@ -170,9 +170,8 @@ class XilinxVivadoToolchain(GenericToolchain):
|
||||||
True : "ports",
|
True : "ports",
|
||||||
}[hasattr(clk, "port")]
|
}[hasattr(clk, "port")]
|
||||||
for clk, [period, name] in sorted(self.clocks.items(), key=lambda x: x[0].duid):
|
for clk, [period, name] in sorted(self.clocks.items(), key=lambda x: x[0].duid):
|
||||||
clk_sig = self._vns.get_name(clk)
|
|
||||||
if name is None:
|
if name is None:
|
||||||
name = clk_sig
|
name = clk
|
||||||
self.platform.add_platform_command(
|
self.platform.add_platform_command(
|
||||||
"create_clock -name {name} -period " + str(period) +
|
"create_clock -name {name} -period " + str(period) +
|
||||||
" [get_" + get_clk_type(clk) + " {clk}]", name=name, clk=clk)
|
" [get_" + get_clk_type(clk) + " {clk}]", name=name, clk=clk)
|
||||||
|
|
Loading…
Reference in New Issue