Skip to content

Commit

Permalink
build/efinix/ifacewriter: fix CLKOUTx_PHASE configuration for recent …
Browse files Browse the repository at this point in the history
…efinity, keep backward compatibility
  • Loading branch information
trabucayre committed Sep 5, 2023
1 parent 6c6cfea commit 99cb46f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions litex/build/efinix/ifacewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def generate_pll(self, block, partnumber, verbose=True):
cmd += "target_freq = {\n"
for i, clock in enumerate(block["clk_out"]):
cmd += ' "CLKOUT{}_FREQ": "{}",\n'.format(i, clock[1] / 1e6)
cmd += ' "CLKOUT{}_PHASE": "{}",\n'.format(i, clock[2])
cmd += "}\n"
cmd += 'calc_result = design.auto_calc_pll_clock("{}", target_freq)\n'.format(name)

Expand Down

0 comments on commit 99cb46f

Please sign in to comment.