Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
d34d70a1
Commit
d34d70a1
authored
9 years ago
by
Gijs Schoonderbeek
Browse files
Options
Downloads
Patches
Plain Diff
updating
parent
ae0cb48b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test.py
+10
-10
10 additions, 10 deletions
boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test.py
with
10 additions
and
10 deletions
boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test.py
+
10
−
10
View file @
d34d70a1
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment