@@ -158,7 +158,8 @@ def hardware_reset(self, injector=False):
158158 if not self .pntest4 ():
159159 return False
160160 self .adc_twos_comp (twoscomp = True )
161- print ('test pattern %s' % [[int (item ) for item in sublist ] for sublist in self .set_test_mode ('00000000' ) or []])
161+ print ('test pattern %s' % "" .join ([
162+ str (item ) for sublist in self .set_test_mode ('00001100' ) or [] for item in sublist ]))
162163 if not self .amc7823_print (check_channels = [1 , 2 , 3 , 4 , 5 , 6 , 7 ]):
163164 return False
164165 return True
@@ -575,7 +576,8 @@ def find_best_idelay(self, ix, idelay_dict):
575576 return ix if False else self .top2idelay (lane , ix % 2 )[0 ]
576577
577578 def adc_idelay1 (self , dbg1 = 0 ):
578- print ('test pattern %s' % [[int (item ) for item in sublist ] for sublist in self .set_test_mode ('00001100' ) or []])
579+ print ('test pattern %s' % "" .join ([
580+ str (item ) for sublist in self .set_test_mode ('00001100' ) or [] for item in sublist ]))
579581 print ('Type 1 (firmware) idelay scan' )
580582 if True : # not needed after powerup, but will clear old values if re-scanning
581583 self .set_idelays (16 * [0 ])
@@ -605,7 +607,8 @@ def adc_idelay1(self, dbg1=0):
605607 return all ([2 == (x >> 5 ) for x in idelay_mirror ]) # all channels scan success!
606608
607609 def adc_idelay0 (self ):
608- print ('test pattern %s' % [[int (item ) for item in sublist ] for sublist in self .set_test_mode ('00001100' ) or []])
610+ print ('test pattern %s' % "" .join ([
611+ str (item ) for sublist in self .set_test_mode ('00001100' ) or [] for item in sublist ]))
609612 print ('Type 0 (software) idelay scan' )
610613 print ("idelay scan " + " " .join (self .chan_list ))
611614 idelay_dict = {}
@@ -651,7 +654,8 @@ def adc_bufr_reset1(self, adc_values, name, adc, ic_reset, iserdes_reset):
651654 return success , adc_values
652655
653656 def adc_bufr_reset (self ):
654- print ('test pattern %s' % [[int (item ) for item in sublist ] for sublist in self .set_test_mode ('00001100' ) or []])
657+ print ('test pattern %s' % "" .join ([
658+ str (item ) for sublist in self .set_test_mode ('00001100' ) or [] for item in sublist ]))
655659 adc_values = self .adc_reg (verbose = True )
656660 print ('0x%x %s %s' % (adc_values [0 ], adc_values [0 ] != 0x4339 , adc_values [0 ] != 0xa19c ))
657661 s1 , adc_values = self .adc_bufr_reset1 (
@@ -661,9 +665,8 @@ def adc_bufr_reset(self):
661665 return s1 and s2
662666
663667 def adc_bitslip (self ):
664- print ('bitslip: test pattern %s' % [
665- [int (item ) for item in sublist ]
666- for sublist in self .set_test_mode ('00001100' ) or []])
668+ print ('bitslip test pattern %s' % "" .join ([
669+ str (item ) for sublist in self .set_test_mode ('00001100' ) or [] for item in sublist ]))
667670 index = 0
668671 bitslip = self .bitslip_calc ()
669672 print (format (bitslip , '016b' ))
0 commit comments