Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
AIDA-2020 TLU
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
AIDA-2020 TLU
Commits
769bd069
Commit
769bd069
authored
Sep 20, 2017
by
Paolo Baesso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes in scripts
parent
b08899cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
25 deletions
+25
-25
EUDETdummy.py
EUDETdummy/scripts/EUDETdummy.py
+10
-10
TLU_v1e.py
TLU_v1e/scripts/TLU_v1e.py
+13
-13
startTLU_v1e.py
TLU_v1e/scripts/startTLU_v1e.py
+2
-2
No files found.
EUDETdummy/scripts/EUDETdummy.py
View file @
769bd069
...
...
@@ -45,20 +45,20 @@ class EUDETdummy:
self
.
IC6
=
PCA9539PW
(
self
.
TLU_I2C
,
0x74
)
self
.
IC6
.
setInvertReg
(
0
,
0x00
)
# 0= normal, 1= inverted
self
.
IC6
.
setIOReg
(
0
,
0x00
)
# 0= output, 1= input
self
.
IC6
.
setOutputs
(
0
,
0x
AA
)
# If output, set to XX
self
.
IC6
.
setOutputs
(
0
,
0x
77
)
# If output, set to XX
self
.
IC6
.
setInvertReg
(
1
,
0x00
)
# 0= normal, 1= inverted
self
.
IC6
.
setIOReg
(
1
,
0x00
)
# 0= output, 1= input
self
.
IC6
.
setOutputs
(
1
,
0x
AA
)
# If output, set to XX
self
.
IC6
.
setOutputs
(
1
,
0x
77
)
# If output, set to XX
self
.
IC7
=
PCA9539PW
(
self
.
TLU_I2C
,
0x75
)
self
.
IC7
.
setInvertReg
(
0
,
0x00
)
# 0= normal, 1= inverted
self
.
IC7
.
setIOReg
(
0
,
0x00
)
# 0= output, 1= input
self
.
IC7
.
setOutputs
(
0
,
0x0
F
)
# If output, set to XX
self
.
IC7
.
setOutputs
(
0
,
0x0
0
)
# If output, set to XX
self
.
IC7
.
setInvertReg
(
1
,
0x00
)
# 0= normal, 1= inverted
self
.
IC7
.
setIOReg
(
1
,
0x00
)
# 0= output, 1= input
self
.
IC7
.
setOutputs
(
1
,
0x
5
0
)
# If output, set to XX
self
.
IC7
.
setOutputs
(
1
,
0x
B
0
)
# If output, set to XX
##################################################################################################################################
...
...
@@ -521,7 +521,7 @@ class EUDETdummy:
pprint
.
pprint
(
outList
)
return
outList
##################################################################################################################################
...
...
@@ -535,7 +535,7 @@ class EUDETdummy:
#READ CONTENT OF EPROM VIA I2C
self
.
getSN
()
#
# #SET DACs
targetV
=
-
0.12
...
...
@@ -568,8 +568,8 @@ class EUDETdummy:
if
resetCounters
:
self
.
resetCounters
()
print
"EUDUMMY INITIALIZED"
##################################################################################################################################
...
...
TLU_v1e/scripts/TLU_v1e.py
View file @
769bd069
...
...
@@ -45,22 +45,22 @@ class TLU:
self
.
IC6
=
PCA9539PW
(
self
.
TLU_I2C
,
0x74
)
self
.
IC6
.
setInvertReg
(
0
,
0x00
)
# 0= normal, 1= inverted
self
.
IC6
.
setIOReg
(
0
,
0x00
)
# 0= output, 1= input
self
.
IC6
.
setOutputs
(
0
,
0x
77
)
# If output, set to XX
self
.
IC6
.
setOutputs
(
0
,
0x
AA
)
# If output, set to XX
self
.
IC6
.
setInvertReg
(
1
,
0x00
)
# 0= normal, 1= inverted
self
.
IC6
.
setIOReg
(
1
,
0x00
)
# 0= output, 1= input
self
.
IC6
.
setOutputs
(
1
,
0x
77
)
# If output, set to XX
self
.
IC6
.
setOutputs
(
1
,
0x
AA
)
# If output, set to XX
self
.
IC7
=
PCA9539PW
(
self
.
TLU_I2C
,
0x75
)
self
.
IC7
.
setInvertReg
(
0
,
0x00
)
# 0= normal, 1= inverted
self
.
IC7
.
setIOReg
(
0
,
0x00
)
# 0= output, 1= input
self
.
IC7
.
setOutputs
(
0
,
0x0
0
)
# If output, set to XX
self
.
IC7
.
setOutputs
(
0
,
0x0
F
)
# If output, set to XX
self
.
IC7
.
setInvertReg
(
1
,
0x00
)
# 0= normal, 1= inverted
self
.
IC7
.
setIOReg
(
1
,
0x00
)
# 0= output, 1= input
self
.
IC7
.
setOutputs
(
1
,
0x
B
0
)
# If output, set to XX
self
.
IC7
.
setOutputs
(
1
,
0x
5
0
)
# If output, set to XX
##################################################################################################################################
##################################################################################################################################
def
DUTOutputs
(
self
,
dutN
,
enable
=
False
,
verbose
=
False
):
...
...
@@ -645,7 +645,7 @@ class TLU:
self
.
setDUTmask
(
DUTMask
)
#
# # # Set mode
DUTMode
=
0xFFFFFFF
C
DUTMode
=
0xFFFFFFF
F
self
.
setMode
(
DUTMode
)
# # # Set modifier
...
...
@@ -696,7 +696,7 @@ class TLU:
##################################################################################################################################
##################################################################################################################################
def
stop
(
self
):
def
stop
(
self
,
saveD
=
False
,
plotD
=
False
):
print
"TLU STOPPING..."
self
.
getPostVetoTrg
()
...
...
@@ -709,8 +709,8 @@ class TLU:
fifoData
=
self
.
getFifoData
(
nFifoWords
)
outList
=
self
.
parseFifoData
(
fifoData
,
nFifoWords
/
6
,
False
)
saveD
=
0
plotD
=
0
#
saveD= 0
#
plotD= 0
if
saveD
:
self
.
saveFifoData
(
outList
)
if
plotD
:
...
...
TLU_v1e/scripts/startTLU_v1e.py
View file @
769bd069
...
...
@@ -65,8 +65,8 @@ if __name__ == "__main__":
logdata
=
True
TLU
.
start
(
logdata
)
time
.
sleep
(
5
)
TLU
.
stop
()
time
.
sleep
(
1.
5
)
TLU
.
stop
(
False
,
False
)
# prompt = MyPrompt()
# prompt.prompt = '>> '
# prompt.cmdloop("Welcome to miniTLU test console.\nType HELP for a list of commands.")
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