Skip to content
GitLab
Explore
Sign in
Register
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
37ce5422
Commit
37ce5422
authored
10 years ago
by
Kenneth Hiemstra
Browse files
Options
Downloads
Patches
Plain Diff
added LED test
parent
edfdaed2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py
+22
-0
22 additions, 0 deletions
boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py
with
22 additions
and
0 deletions
boards/uniboard1/designs/unb1_test/tb/python/tc_unb1_test.py
+
22
−
0
View file @
37ce5422
...
...
@@ -62,6 +62,7 @@ import pi_eth
import
pi_bsn_monitor
import
pi_diag_block_gen
import
pi_diag_data_buffer
import
pi_debug_wave
from
tools
import
*
from
common
import
*
...
...
@@ -438,6 +439,26 @@ def test_flash(tc,io,cmd):
tc
.
append_log
(
3
,
''
)
def
led
(
tc
,
dw
,
led
,
text
):
tc
.
append_log
(
3
,
text
)
dw
.
set_led
(
led
)
tc
.
sleep
(
1.0
)
def
test_leds
(
tc
,
io
,
cmd
):
tc
.
set_section_id
(
'
LED test -
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
1
,
'
>>> %s
'
%
help_text
(
tc
,
io
,
cmd
))
tc
.
append_log
(
3
,
'
>>>
'
)
dw
=
pi_debug_wave
.
PiDebugWave
(
tc
,
io
)
led
(
tc
,
dw
,
'
off
'
,
''
)
led
(
tc
,
dw
,
'
red
'
,
'
RED on
'
)
led
(
tc
,
dw
,
'
off
'
,
'
RED off
'
)
led
(
tc
,
dw
,
'
green
'
,
'
GREEN on
'
)
led
(
tc
,
dw
,
'
off
'
,
'
GREEN off
'
)
led
(
tc
,
dw
,
'
both
'
,
'
ORANGE (RED+GREEN) on
'
)
led
(
tc
,
dw
,
'
off
'
,
'
ORANGE (RED+GREEN) off
'
)
tc
.
append_log
(
3
,
''
)
def
sleep
(
tc
,
io
,
cmd
):
tc
.
set_section_id
(
'
%s -
'
%
cmd
)
...
...
@@ -458,6 +479,7 @@ Cmd['REGMAP'] = (read_regmap, 'using pi_system_info to read register info (acc
Cmd
[
'
INFO
'
]
=
(
test_info
,
'
using pi_system_info to read system info (access PIO_SYSTEM_INFO)
'
,
'
(-s for expected design_name)
'
)
Cmd
[
'
FLASH
'
]
=
(
test_flash
,
'
using pi_epcs to program/verify flash
'
,
'
(-s for .rbf file)
'
)
Cmd
[
'
SENSORS
'
]
=
(
test_sensors
,
'
using pi_unb_sens to readout sensors (access REG_UNB_SENS)
'
,
''
)
Cmd
[
'
LED
'
]
=
(
test_leds
,
'
using pi_debug_wave to set LEDs (access PIO_DEBUG_WAVE)
'
,
''
)
Cmd
[
'
PPSH
'
]
=
(
test_ppsh
,
'
using pi_ppsh to read PPSH capture count (access PIO_PPS)
'
,
''
)
Cmd
[
'
ETH
'
]
=
(
test_eth
,
'
using pi_eth to read eth status
'
,
''
)
Cmd
[
'
REMU
'
]
=
(
test_remu
,
'
using pi_remu to load user image (access REG_REMU)
'
,
''
)
...
...
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