Merge pull request #1964 from acceleratedtech/jwise/output-load-trion

efinix: be able to specify TX_OUTPUT_LOAD on a LVDS PHY on Trion
This commit is contained in:
enjoy-digital 2024-05-27 08:40:49 +02:00 committed by GitHub
commit 2235c711e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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))