@@ -319,13 +319,13 @@ def generate_pll(self, block, partnumber, verbose=True):
319
319
else :
320
320
cmd += 'design.set_property("{}","CLKOUT{}_PHASE_SETTING","{}","PLL")\n ' .format (name , i , clock [2 ] // 45 )
321
321
322
- # Titanium has always a feedback (local: CLK0, CORE: any output)
322
+ # Titanium/Topaz has always a feedback (local: CLK0, CORE: any output)
323
323
if block ["version" ] == "V3" :
324
324
feedback_clk = block ["feedback" ]
325
325
cmd += 'design.set_property("{}", "FEEDBACK_MODE", "{}", "PLL")\n ' .format (name , "LOCAL" if feedback_clk < 1 else "CORE" )
326
326
cmd += 'design.set_property("{}", "FEEDBACK_CLK", "CLK{}", "PLL")\n ' .format (name , 0 if feedback_clk < 1 else feedback_clk )
327
327
328
- # auto_calc_pll_clock is always working with Titanium and only working when feedback is unused for Trion
328
+ # auto_calc_pll_clock is always working with Titanium/Topaz and only working when feedback is unused for Trion
329
329
if block ["feedback" ] == - 1 or block ["version" ] == "V3" :
330
330
cmd += "target_freq = {\n "
331
331
for i , clock in enumerate (block ["clk_out" ]):
@@ -438,7 +438,7 @@ def generate_lvds(self, block, verbose=True):
438
438
rst_pin = rst_pin .name
439
439
440
440
cmd .append ('design.create_block("{}", block_type="{}", tx_mode="{}")' .format (name , block_type , tx_mode ))
441
- if self .platform .family == "Titanium" :
441
+ if self .platform .family in [ "Titanium" , "Topaz" ] :
442
442
cmd .append ('design.set_property("{}", "TX_DELAY", "{}", "{}")' .format (name , delay , block_type ))
443
443
cmd .append ('design.set_property("{}", "TX_DIFF_TYPE", "LVDS", "{}")' .format (name , block_type ))
444
444
cmd .append ('design.set_property("{}", "TX_HALF_RATE", "{}", "{}")' .format (name , half_rate , block_type ))
@@ -484,7 +484,7 @@ def generate_lvds(self, block, verbose=True):
484
484
delay_inc = delay_inc .name
485
485
486
486
cmd .append ('design.create_block("{}", block_type="{}", rx_conn_type="{}")' .format (name , block_type , rx_mode ))
487
- if self .platform .family == "Titanium" :
487
+ if self .platform .family in [ "Titanium" , "Topaz" ] :
488
488
cmd .append ('design.set_property("{}", "GBUF", "", "{}")' .format (name , block_type ))
489
489
cmd .append ('design.set_property("{}", "RX_DBG_PIN", "", "{}")' .format (name , block_type ))
490
490
cmd .append ('design.set_property("{}", "RX_TERM_PIN", "{}", "{}")' .format (name , term , block_type ))
0 commit comments