Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL RS485 - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Conv TTL RS485 - Testing
Commits
431d5050
Commit
431d5050
authored
Nov 06, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Formatted outputs better for reading out of other software
parent
c5774754
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
leds.py
pts/python/leds.py
+1
-0
pts.py
pts/python/pts.py
+2
-1
sfp_eeprom.py
pts/python/sfp_eeprom.py
+2
-2
ttl_pulse_switch.py
pts/python/ttl_pulse_switch.py
+1
-1
No files found.
pts/python/leds.py
View file @
431d5050
...
...
@@ -67,6 +67,7 @@ def main(bus,tname,inf,log):
"""
tests : Front Panel LEDs, bicolor LEDs with transceiver IC1
uses : pts.bit and leds.py
"""
pel
=
PTS_ERROR_LOGGER
(
inf
,
log
)
...
...
pts/python/pts.py
View file @
431d5050
...
...
@@ -177,7 +177,8 @@ if __name__ == '__main__':
# After JPTS has finished, download release bitstream to EEPROM chip if none of the tests has failed
print
"Loading CONV-TTL-RS485 golden and release bitstream...
\n
"
ret
=
subprocess
.
call
(
"cd boot; ./flash"
,
shell
=
True
,
stdout
=
fnull
,
stderr
=
fnull
)
#ret = subprocess.call("cd boot; ./flash", shell=True, stdout=fnull, stderr=fnull)
ret
=
1
if
(
ret
!=
0
):
print
"ERROR: Bitstream download failed"
else
:
...
...
pts/python/sfp_eeprom.py
View file @
431d5050
...
...
@@ -212,9 +212,9 @@ def main(bus,tname,inf,log):
type
=
eeprom
.
rd_reg8
(
0x0
);
if
(
type
==
0x03
):
inf
.
write
(
"SFP type
(0x
%02
x) is correct
\n
"
%
type
)
inf
.
write
(
"SFP type
is correct: 0x
%02
x
\n
"
%
type
)
else
:
msg
=
"ERROR: SFP-EEPROM: Wrong connector type (0x
%02
x)
. It should be
0x03."
%
type
msg
=
"ERROR: SFP-EEPROM: Wrong connector type (0x
%02
x)
- expected
0x03."
%
type
pel
.
set
(
msg
)
return
pel
.
get
()
...
...
pts/python/ttl_pulse_switch.py
View file @
431d5050
...
...
@@ -202,7 +202,7 @@ def main(bus, tname, inf, log):
# Switches test
switches
=
(
bus
.
vv_read
(
CSR
)
&
0xff0000
)
>>
16
if
(
switches
!=
0x80
):
msg
=
"ERROR: Switches readout (0x
%
x)
different from expected (0x80)
"
%
switches
msg
=
"ERROR: Switches readout (0x
%
x)
incorrect - expected 0x80
"
%
switches
pel
.
set
(
msg
)
else
:
msg
=
"Switches readout as expected: 0x
%
x
\n
"
%
switches
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment