Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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 Blocking - Testing
Commits
45ceab6b
Commit
45ceab6b
authored
Sep 24, 2018
by
Denia Bouhired-Ferrag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Saves log to /tblo subfolder
parent
314dcd8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
pts.xise
fm/hdl/syn/pts.xise
+1
-1
pts.py
fm/pts/python/pts.py
+18
-18
No files found.
fm/hdl/syn/pts.xise
View file @
45ceab6b
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<property
xil_pn:name=
"Change Device Speed To"
xil_pn:value=
"-3"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Change Device Speed To"
xil_pn:value=
"-3"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Change Device Speed To Post Trace"
xil_pn:value=
"-3"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Change Device Speed To Post Trace"
xil_pn:value=
"-3"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Combinatorial Logic Optimization"
xil_pn:value=
"false"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Combinatorial Logic Optimization"
xil_pn:value=
"false"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Compile EDK Simulation Library"
xil_pn:value=
"false"
xil_pn:valueState=
"
non-
default"
/>
<property
xil_pn:name=
"Compile EDK Simulation Library"
xil_pn:value=
"false"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Compile SIMPRIM (Timing) Simulation Library"
xil_pn:value=
"true"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Compile SIMPRIM (Timing) Simulation Library"
xil_pn:value=
"true"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Compile UNISIM (Functional) Simulation Library"
xil_pn:value=
"true"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Compile UNISIM (Functional) Simulation Library"
xil_pn:value=
"true"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Compile XilinxCoreLib (CORE Generator) Simulation Library"
xil_pn:value=
"true"
xil_pn:valueState=
"default"
/>
<property
xil_pn:name=
"Compile XilinxCoreLib (CORE Generator) Simulation Library"
xil_pn:value=
"true"
xil_pn:valueState=
"default"
/>
...
...
fm/pts/python/pts.py
View file @
45ceab6b
...
@@ -173,7 +173,7 @@ if __name__ == '__main__':
...
@@ -173,7 +173,7 @@ if __name__ == '__main__':
time
.
sleep
(
1
)
time
.
sleep
(
1
)
# ... power-cycle the crate
# ... power-cycle the crate
print
"VME
C
rate power-cycle..."
print
"VME
c
rate power-cycle..."
men_off
()
men_off
()
time
.
sleep
(
5
)
time
.
sleep
(
5
)
men_on
()
men_on
()
...
@@ -189,26 +189,26 @@ if __name__ == '__main__':
...
@@ -189,26 +189,26 @@ if __name__ == '__main__':
subprocess
.
call
(
"grep PASS log/*.log"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
subprocess
.
call
(
"grep PASS log/*.log"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
subprocess
.
call
(
"grep FAIL log/*.log"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
subprocess
.
call
(
"grep FAIL log/*.log"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
# Save results on
USB key
...
# Save results on
local folder
...
print
"
\n
Saving test results in /home/pts-administrator/pts/log"
print
"
\n
Saving test results in /home/pts-administrator/pts/log
/tblo
"
try
:
try
:
subprocess
.
call
(
"mkdir -p /home/pts-administrator/pts/log"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
subprocess
.
call
(
"mkdir -p /home/pts-administrator/pts/log
/tblo
"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
subprocess
.
call
(
"cp log/*.log /home/pts-administrator/pts/log"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
subprocess
.
call
(
"cp log/*.log /home/pts-administrator/pts/log
/tblo
"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
subprocess
.
call
(
"cp log/*.inf /home/pts-administrator/pts/log"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
subprocess
.
call
(
"cp log/*.inf /home/pts-administrator/pts/log
/tblo
"
,
shell
=
True
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
)
except
e
:
except
e
:
print
"ERROR: No access to directory /home/pts-administrator/pts"
print
"ERROR: No access to directory /home/pts-administrator/pts
/tblo
"
print
e
print
e
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Reading board unique ID and storing to separate log file
# Reading board unique ID and storing to separate log file
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# ... power-cycle the crate
# ... power-cycle the crate
print
"VME Crate power-cycle..."
print
"VME Crate power-cycle..."
men_off
()
men_off
()
time
.
sleep
(
3
)
time
.
sleep
(
3
)
men_on
()
men_on
()
time
.
sleep
(
10
)
time
.
sleep
(
10
)
#Read unique board ID
#Read unique board ID
...
@@ -221,10 +221,10 @@ if __name__ == '__main__':
...
@@ -221,10 +221,10 @@ if __name__ == '__main__':
# Generate output file named according to current time
# Generate output file named according to current time
fname
=
time
.
strftime
(
"serial-num-CTDAH-
%
Y-
%
m-
%
d"
,
time
.
localtime
())
+
".txt"
fname
=
time
.
strftime
(
"serial-num-CTDAH-
%
Y-
%
m-
%
d"
,
time
.
localtime
())
+
".txt"
ret
=
subprocess
.
call
([
"ls /home/pts-administrator/pts/log | grep "
+
fname
],
shell
=
True
,
stdout
=
None
,
stderr
=
None
)
ret
=
subprocess
.
call
([
"ls /home/pts-administrator/pts/log
/tblo
| grep "
+
fname
],
shell
=
True
,
stdout
=
None
,
stderr
=
None
)
#print ("%d" % ret)
#print ("%d" % ret)
if
(
ret
!=
0
):
if
(
ret
!=
0
):
f
=
open
(
"/home/pts-administrator/pts/log"
+
fname
,
"w"
)
f
=
open
(
"/home/pts-administrator/pts/log
/tblo/
"
+
fname
,
"w"
)
print
(
" File not found ... Create new one
\n
"
)
print
(
" File not found ... Create new one
\n
"
)
f
.
write
(
"
\n
"
)
f
.
write
(
"
\n
"
)
f
.
write
(
"CONV-TTL-BLO Upgrade log created on
%
s
\n
"
%
time
.
strftime
(
"
%
Y-
%
m-
%
d-
%
Hh
%
Mm
%
Ss"
,
time
.
localtime
()))
f
.
write
(
"CONV-TTL-BLO Upgrade log created on
%
s
\n
"
%
time
.
strftime
(
"
%
Y-
%
m-
%
d-
%
Hh
%
Mm
%
Ss"
,
time
.
localtime
()))
...
@@ -232,10 +232,10 @@ if __name__ == '__main__':
...
@@ -232,10 +232,10 @@ if __name__ == '__main__':
f
.
write
(
"Barcode 1 | Barcode 2 | PCB ID |
\n
"
)
f
.
write
(
"Barcode 1 | Barcode 2 | PCB ID |
\n
"
)
f
.
write
(
"---------------------------------------------------------------------------------
\n
"
)
f
.
write
(
"---------------------------------------------------------------------------------
\n
"
)
f
.
close
()
f
.
close
()
print
(
"Upgrade log can be found in /home/pts-administrator/pts/log/
%
s
\n
"
%
fname
)
print
(
"Upgrade log can be found in /home/pts-administrator/pts/log/
tblo/
%
s
\n
"
%
fname
)
print
(
"Board unique ID can be found in /home/pts-administrator/pts/log/
%
s
\n
"
%
fname
)
print
(
"Board unique ID can be found in /home/pts-administrator/pts/log/
tblo/
%
s
\n
"
%
fname
)
f
=
open
(
"/home/pts-administrator/pts/log/"
+
fname
,
"a"
)
f
=
open
(
"/home/pts-administrator/pts/log/
tblo/
"
+
fname
,
"a"
)
f
.
write
(
"
%
s
\t
%
s
\t
%
x
%
x
\n
"
%
(
sn1
,
sn2
,
IDMS
,
IDLS
)
)
f
.
write
(
"
%
s
\t
%
s
\t
%
x
%
x
\n
"
%
(
sn1
,
sn2
,
IDMS
,
IDLS
)
)
f
.
close
()
f
.
close
()
...
...
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