From 2c3536720cea43665f5ba89d7492cee651edabf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Wed, 25 Sep 2024 11:00:50 +0200 Subject: [PATCH] efinix: ifacewriter: add `in_clk_inv` for GPIO INPUT block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add `in_clk_inv` for GPIO INPUT block. Signed-off-by: Fin Maaß --- litex/build/efinix/ifacewriter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex/build/efinix/ifacewriter.py b/litex/build/efinix/ifacewriter.py index f4c36fe080..a14d6e7532 100644 --- a/litex/build/efinix/ifacewriter.py +++ b/litex/build/efinix/ifacewriter.py @@ -222,6 +222,8 @@ def generate_gpio(self, block, verbose=True): cmd += f'design.set_property("{name}","IN_CLK_PIN","{in_clk_pin}")\n' if "in_delay" in block: cmd += f'design.set_property("{name}","INDELAY","{block["in_delay"]}")\n' + if "in_clk_inv" in block: + cmd += f'design.set_property("{name}","IS_INCLK_INVERTED","{block["in_clk_inv"]}")\n' if prop: for p, val in prop: cmd += 'design.set_property("{}","{}","{}")\n'.format(name, p, val)