Skip to content

Commit

Permalink
efinix: common: replace is_inclk_inverted
Browse files Browse the repository at this point in the history
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ß <[email protected]>
  • Loading branch information
maass-hamburg committed Sep 26, 2024
1 parent a605e75 commit afcc477
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions litex/build/efinix/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit afcc477

Please sign in to comment.