From 7ad3f2ce344bacdfc1858aa28d6e4aca0c7cb5f4 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Fri, 24 May 2024 18:10:24 -0400 Subject: [PATCH] efinix: be able to specify TX_OUTPUT_LOAD on a LVDS PHY on Trion --- litex/build/efinix/ifacewriter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/build/efinix/ifacewriter.py b/litex/build/efinix/ifacewriter.py index b3485854a..96609f2e6 100644 --- a/litex/build/efinix/ifacewriter.py +++ b/litex/build/efinix/ifacewriter.py @@ -425,6 +425,7 @@ design.create("{2}", "{3}", "./../gateware", overwrite=True) fast_clk = block.get("fast_clk", "") slow_clk = block.get("slow_clk", "") half_rate= block.get("half_rate", "0") + tx_output_load=block.get("output_load", "3") if mode == "OUTPUT": block_type = "LVDS_TX" @@ -443,7 +444,7 @@ design.create("{2}", "{3}", "./../gateware", overwrite=True) cmd.append('design.set_property("{}", "TX_PRE_EMP", "MEDIUM_LOW", "{}")'.format(name, block_type)) cmd.append('design.set_property("{}", "TX_VOD", "TYPICAL", "{}")'.format(name, block_type)) else: - cmd.append('design.set_property("{}", "TX_OUTPUT_LOAD", "3", "{}")'.format(name, block_type)) + cmd.append('design.set_property("{}", "TX_OUTPUT_LOAD", "{}", "{}")'.format(name, tx_output_load, block_type)) cmd.append('design.set_property("{}", "TX_REDUCED_SWING", "0", "{}")'.format(name, block_type)) cmd.append('design.set_property("{}", "TX_SLOWCLK_DIV", "1", "{}")'.format(name, block_type)) cmd.append('design.set_property("{}", "TX_SER", "{}", "{}")'.format(name, size, block_type))