diff --git a/boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test.py b/boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test.py index 39952c7ac19357d55858b20c7202a0299df6c34d..d024aac7cfe5f33daf54f0a64bd799b0e5f30d67 100644 --- a/boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test.py +++ b/boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test.py @@ -96,7 +96,7 @@ def test_BG_to_DB(tc,io,cmd): tc.set_section_id('Read - ') instanceName=tc.gpString - nof_streams=2 + nof_streams=8 blocksize=0 Bg = pi_diag_block_gen.PiDiagBlockGen(tc,io,nofChannels=nof_streams,ramSizePerChannel=blocksize,instanceName=instanceName) Bg.write_disable() @@ -184,8 +184,8 @@ def test_BG_to_DB(tc,io,cmd): db_ram.append(rram) - print 'bg_ram=',bg_ram - print 'db_ram=',db_ram + #print 'bg_ram=',bg_ram + #print 'db_ram=',db_ram tc.append_log(5, 'number of BG streams=%d number of DB streams=%d per stream:' % (len(bg_ram),len(db_ram))) for st in range(len(bg_ram)): @@ -292,20 +292,20 @@ def test_tr_10GbE(tc,io,cmd): tc.append_log(1, '>>> %s' % help_text(tc,io,cmd)) tc.append_log(3, '>>>') - nof_streams=3 + nof_streams=4 from pi_tr_10GbE import REGMAP,PiTr10GbE,ADDR_W - tr10 = PiTr10GbE(tc,io,nof_inst=nof_streams) + tr10 = PiTr10GbE(tc,io,nof_inst=nof_streams,inst_name='QSFP_RING') - if tc.verbosity > 5: - on_execute(class_definition=PiTr10GbE,regmap=REGMAP) # this reads/shows ALL status + #if tc.verbosity > 5: + on_execute(class_definition=PiTr10GbE,regmap=REGMAP) # this reads/shows ALL status for s in tc.gpNumbers: inst_offs = s*2**ADDR_W # set rx/tr _frame_maxlength to 9000 (jumbo) as it inits at 1518 and causing frame errors: frame_size_jumbo = 9000 - tr10.write_reg(tc.nodeNrs,'REG_TR_10GBE',inst_offs+(REGMAP['rx_frame_maxlength'][2][0]),[frame_size_jumbo]) - tr10.write_reg(tc.nodeNrs,'REG_TR_10GBE',inst_offs+(REGMAP['tx_frame_maxlength'][2][0]),[frame_size_jumbo]) + tr10.write_reg(tc.nodeNrs,'REG_TR_10GBE_QSFP_RING',inst_offs+(REGMAP['rx_frame_maxlength'][2][0]),[frame_size_jumbo]) + tr10.write_reg(tc.nodeNrs,'REG_TR_10GBE_QSFP_RING',inst_offs+(REGMAP['tx_frame_maxlength'][2][0]),[frame_size_jumbo]) tc.set_section_id('Read/verify tr_10GbE status over Nodes %s stream=%d ' % (tc.nodeNrs,s)) @@ -314,7 +314,7 @@ def test_tr_10GbE(tc,io,cmd): status_names = ['rx_stats_framesErr','tx_stats_framesErr','rx_stats_framesCRCErr', \ 'tx_stats_framesCRCErr','rx_stats_etherStatsCRCErr','tx_stats_etherStatsCRCErr'] for stat_name in status_names: - verify_10GbE_status(tc,stat_name,tr10.read_reg(tc.nodeNrs,'REG_TR_10GBE',inst_offs+(REGMAP[stat_name][2][0]),1)) + verify_10GbE_status(tc,stat_name,tr10.read_reg(tc.nodeNrs,'REG_TR_10GBE_QSFP_RING',inst_offs+(REGMAP[stat_name][2][0]),1)) def test_tx_seq(tc,io,cmd):