From 99cb46fd3e9c8bde010f07bbe1b517ec938b75f9 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Tue, 5 Sep 2023 16:44:47 +0200 Subject: [PATCH] build/efinix/ifacewriter: fix CLKOUTx_PHASE configuration for recent efinity, keep backward compatibility --- litex/build/efinix/ifacewriter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/build/efinix/ifacewriter.py b/litex/build/efinix/ifacewriter.py index d01215b3d0..a38f112d97 100644 --- a/litex/build/efinix/ifacewriter.py +++ b/litex/build/efinix/ifacewriter.py @@ -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)