Skip to content

Commit

Permalink
xilinx/vivado: Fix issue with enjoy-digital#1755.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital authored and josuah committed Sep 3, 2023
1 parent df567fa commit a10e782
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions litex/build/xilinx/vivado.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ def get_clk_type(clk):
True : "ports",
}[hasattr(clk, "port")]
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:
name = clk_sig
name = clk
self.platform.add_platform_command(
"create_clock -name {name} -period " + str(period) +
" [get_" + get_clk_type(clk) + " {clk}]", name=name, clk=clk)
Expand Down

0 comments on commit a10e782

Please sign in to comment.