@@ -158,7 +158,7 @@ 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' % self .set_test_mode ('00000000' ))
161+ print ('test pattern %s' % [[ int ( item ) for item in sublist ] for sublist in self .set_test_mode ('00000000' ) or []] )
162162 if not self .amc7823_print (check_channels = [1 , 2 , 3 , 4 , 5 , 6 , 7 ]):
163163 return False
164164 return True
@@ -575,7 +575,7 @@ def find_best_idelay(self, ix, idelay_dict):
575575 return ix if False else self .top2idelay (lane , ix % 2 )[0 ]
576576
577577 def adc_idelay1 (self , dbg1 = 0 ):
578- print ('test pattern %s' % self .set_test_mode ('00001100' ))
578+ print ('test pattern %s' % [[ int ( item ) for item in sublist ] for sublist in self .set_test_mode ('00001100' ) or []] )
579579 print ('Type 1 (firmware) idelay scan' )
580580 if True : # not needed after powerup, but will clear old values if re-scanning
581581 self .set_idelays (16 * [0 ])
@@ -605,7 +605,7 @@ def adc_idelay1(self, dbg1=0):
605605 return all ([2 == (x >> 5 ) for x in idelay_mirror ]) # all channels scan success!
606606
607607 def adc_idelay0 (self ):
608- print ('test pattern %s' % self .set_test_mode ('00001100' ))
608+ print ('test pattern %s' % [[ int ( item ) for item in sublist ] for sublist in self .set_test_mode ('00001100' ) or []] )
609609 print ('Type 0 (software) idelay scan' )
610610 print ("idelay scan " + " " .join (self .chan_list ))
611611 idelay_dict = {}
@@ -651,7 +651,7 @@ def adc_bufr_reset1(self, adc_values, name, adc, ic_reset, iserdes_reset):
651651 return success , adc_values
652652
653653 def adc_bufr_reset (self ):
654- print ('test pattern %s' % self .set_test_mode ('00001100' ))
654+ print ('test pattern %s' % [[ int ( item ) for item in sublist ] for sublist in self .set_test_mode ('00001100' ) or []] )
655655 adc_values = self .adc_reg (verbose = True )
656656 print ('0x%x %s %s' % (adc_values [0 ], adc_values [0 ] != 0x4339 , adc_values [0 ] != 0xa19c ))
657657 s1 , adc_values = self .adc_bufr_reset1 (
@@ -661,7 +661,9 @@ def adc_bufr_reset(self):
661661 return s1 and s2
662662
663663 def adc_bitslip (self ):
664- print ('bitslip: test pattern %s' % self .set_test_mode ('00001100' ))
664+ print ('bitslip: test pattern %s' % [
665+ [int (item ) for item in sublist ]
666+ for sublist in self .set_test_mode ('00001100' ) or []])
665667 index = 0
666668 bitslip = self .bitslip_calc ()
667669 print (format (bitslip , '016b' ))
0 commit comments