Skip to content
Snippets Groups Projects
Commit d34d70a1 authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

updating

parent ae0cb48b
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ def test_BG_to_DB(tc,io,cmd): ...@@ -96,7 +96,7 @@ def test_BG_to_DB(tc,io,cmd):
tc.set_section_id('Read - ') tc.set_section_id('Read - ')
instanceName=tc.gpString instanceName=tc.gpString
nof_streams=2 nof_streams=8
blocksize=0 blocksize=0
Bg = pi_diag_block_gen.PiDiagBlockGen(tc,io,nofChannels=nof_streams,ramSizePerChannel=blocksize,instanceName=instanceName) Bg = pi_diag_block_gen.PiDiagBlockGen(tc,io,nofChannels=nof_streams,ramSizePerChannel=blocksize,instanceName=instanceName)
Bg.write_disable() Bg.write_disable()
...@@ -184,8 +184,8 @@ def test_BG_to_DB(tc,io,cmd): ...@@ -184,8 +184,8 @@ def test_BG_to_DB(tc,io,cmd):
db_ram.append(rram) db_ram.append(rram)
print 'bg_ram=',bg_ram #print 'bg_ram=',bg_ram
print 'db_ram=',db_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))) 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)): for st in range(len(bg_ram)):
...@@ -292,20 +292,20 @@ def test_tr_10GbE(tc,io,cmd): ...@@ -292,20 +292,20 @@ def test_tr_10GbE(tc,io,cmd):
tc.append_log(1, '>>> %s' % help_text(tc,io,cmd)) tc.append_log(1, '>>> %s' % help_text(tc,io,cmd))
tc.append_log(3, '>>>') tc.append_log(3, '>>>')
nof_streams=3 nof_streams=4
from pi_tr_10GbE import REGMAP,PiTr10GbE,ADDR_W 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: #if tc.verbosity > 5:
on_execute(class_definition=PiTr10GbE,regmap=REGMAP) # this reads/shows ALL status on_execute(class_definition=PiTr10GbE,regmap=REGMAP) # this reads/shows ALL status
for s in tc.gpNumbers: for s in tc.gpNumbers:
inst_offs = s*2**ADDR_W inst_offs = s*2**ADDR_W
# set rx/tr _frame_maxlength to 9000 (jumbo) as it inits at 1518 and causing frame errors: # set rx/tr _frame_maxlength to 9000 (jumbo) as it inits at 1518 and causing frame errors:
frame_size_jumbo = 9000 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_QSFP_RING',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['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)) 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): ...@@ -314,7 +314,7 @@ def test_tr_10GbE(tc,io,cmd):
status_names = ['rx_stats_framesErr','tx_stats_framesErr','rx_stats_framesCRCErr', \ status_names = ['rx_stats_framesErr','tx_stats_framesErr','rx_stats_framesCRCErr', \
'tx_stats_framesCRCErr','rx_stats_etherStatsCRCErr','tx_stats_etherStatsCRCErr'] 'tx_stats_framesCRCErr','rx_stats_etherStatsCRCErr','tx_stats_etherStatsCRCErr']
for stat_name in status_names: 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): def test_tx_seq(tc,io,cmd):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment