From afcc477c4efc2460c75c00351163c9e3a102b153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Wed, 25 Sep 2024 11:10:18 +0200 Subject: [PATCH] efinix: common: replace `is_inclk_inverted` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit replace `is_inclk_inverted` with `in_clk_inv` and `out_clk_inv`. This way thwe right prop is set in the ifacewriter.py. Signed-off-by: Fin Maaß --- litex/build/efinix/common.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/litex/build/efinix/common.py b/litex/build/efinix/common.py index f43afb0c6a..28aa62c747 100644 --- a/litex/build/efinix/common.py +++ b/litex/build/efinix/common.py @@ -295,7 +295,8 @@ def __init__(self, platform, io, o1, o2, oe1, oe2, i1, i2, clk): "out_reg" : "DDIO_RESYNC", "out_clk_pin" : clk, "oe_reg" : "REG", - "is_inclk_inverted" : False, + "in_clk_inv" : 0, + "out_clk_inv" : 0, "drive_strength" : io_prop_dict.get("DRIVE_STRENGTH", "4") } platform.toolchain.ifacewriter.blocks.append(block) @@ -333,7 +334,8 @@ def __init__(self, platform, io, o, oe, i, clk): "out_reg" : "REG", "out_clk_pin" : clk, "oe_reg" : "REG", - "is_inclk_inverted" : False, + "in_clk_inv" : 0, + "out_clk_inv" : 0, "drive_strength" : io_prop_dict.get("DRIVE_STRENGTH", "4") } platform.toolchain.ifacewriter.blocks.append(block) @@ -365,7 +367,7 @@ def __init__(self, platform, i, o, clk): "size" : 1, "out_reg" : "REG", "out_clk_pin" : clk, - "is_inclk_inverted" : False, + "out_clk_inv" : 0, "drive_strength" : io_prop_dict.get("DRIVE_STRENGTH", "4") } platform.toolchain.ifacewriter.blocks.append(block) @@ -399,7 +401,7 @@ def __init__(self, platform, i1, i2, o, clk): "size" : 1, "out_reg" : "DDIO_RESYNC", "out_clk_pin" : clk, - "is_inclk_inverted" : False, + "out_clk_inv" : 0, "drive_strength" : io_prop_dict.get("DRIVE_STRENGTH", "4") } platform.toolchain.ifacewriter.blocks.append(block) @@ -460,7 +462,7 @@ def __init__(self, platform, i, o1, o2, clk): "size" : 1, "in_reg" : "DDIO_RESYNC", "in_clk_pin" : clk, - "is_inclk_inverted" : False + "in_clk_inv" : 0 } platform.toolchain.ifacewriter.blocks.append(block) platform.toolchain.excluded_ios.append(platform.get_pin(i))