Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
AIDA-2020 TLU - Software
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
AIDA-2020 TLU - Software
Commits
0ba0bf2a
Commit
0ba0bf2a
authored
Oct 18, 2017
by
Paolo Baesso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function to configure DUT signals and clock source from CONF file
parent
83e6d91e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
112 additions
and
38 deletions
+112
-38
TLU_v1e.py
TLU_v1e/scripts/TLU_v1e.py
+91
-23
localConf.conf
TLU_v1e/scripts/localConf.conf
+16
-11
localIni.ini
TLU_v1e/scripts/localIni.ini
+1
-0
startTLU_v1e.py
TLU_v1e/scripts/startTLU_v1e.py
+4
-4
No files found.
TLU_v1e/scripts/TLU_v1e.py
View file @
0ba0bf2a
This diff is collapsed.
Click to expand it.
TLU_v1e/scripts/localConf.conf
View file @
0ba0bf2a
[
Producer
.
fmctlu
]
verbose
=
0
verbose
=
1
confid
=
20170626
delayStart
=
1000
HDMI1_set
=
0
x4
## 4-bit to determine direction of HDMI pins
HDMI2_set
=
0
x5
## 4-bit to determine direction of HDMI pins
HDMI3_set
=
0
x0
## 4-bit to determine direction of HDMI pins
HDMI4_set
=
0
xA
## 4-bit to determine direction of HDMI pins
# HDMI pin direction:
# 4-bits to determine direction of HDMI pins
# 1-bit for the clock pair
# 0= pins are not driving signals, 1 pins drive signals (outputs)
HDMI1_set
=
0
x7
HDMI2_set
=
0
x7
HDMI3_set
=
0
x7
HDMI4_set
=
0
x7
HDMI1_clk
=
1
HDMI2_clk
=
1
HDMI3_clk
=
1
...
...
@@ -32,12 +37,12 @@ trigMaskHi = 0x00000000
trigMaskLo
=
0
x00000002
#
#### DAC THRESHOLD
DACThreshold0
= -
0
.
5
DACThreshold1
= -
0
.
1
2
DACThreshold2
= -
0
.
1
2
DACThreshold3
= -
0
.
1
2
DACThreshold4
= -
0
.
1
2
DACThreshold5
= -
0
.
6
DACThreshold0
= -
0
.
2
DACThreshold1
= -
0
.
2
DACThreshold2
= -
0
.
2
DACThreshold3
= -
0
.
2
DACThreshold4
= -
0
.
2
DACThreshold5
= -
0
.
2
# Define which DUTs are ON
DutMask
=
1
...
...
TLU_v1e/scripts/localIni.ini
View file @
0ba0bf2a
[Producer.fmctlu]
initid
=
20170703
verbose
=
0
ConnectionFile
=
"file://./../user/eudet/misc/fmctlu_connection.xml"
DeviceName
=
"fmctlu.udp"
TLUmod
=
"1e"
...
...
TLU_v1e/scripts/startTLU_v1e.py
View file @
0ba0bf2a
...
...
@@ -53,17 +53,18 @@ class MyPrompt(cmd.Cmd):
print
"
\t
Could not retrieve CONF data."
return
def
do_startRun
(
self
,
args
):
"""Starts the TLU run"""
print
"COMMAND RECEIVED: STARTING TLU RUN"
startTLU
(
uhalDevice
=
self
.
hw
,
pychipsBoard
=
self
.
board
,
writeTimestamps
=
(
options
.
writeTimestamps
==
"True"
)
)
#startTLU( uhalDevice = self.hw, pychipsBoard = self.board, writeTimestamps = ( options.writeTimestamps == "True" ) )
logdata
=
True
TLU
.
start
(
logdata
)
#print self.hw
def
do_stopRun
(
self
,
args
):
"""Stops the TLU run"""
print
"COMMAND RECEIVED: STOP TLU RUN"
TLU
.
stop
(
False
,
False
)
#stopTLU( uhalDevice = hw, pychipsBoard = board )
def
do_quit
(
self
,
args
):
...
...
@@ -133,7 +134,6 @@ if __name__ == "__main__":
parsed_ini
=
prompt
.
open_cfg_file
(
""
,
"./localIni.ini"
)
TLU
=
TLU
(
"tlu"
,
"file://./TLUconnection.xml"
,
parsed_ini
)
parsed_cfg
=
prompt
.
open_cfg_file
(
""
,
"./localIni.ini"
)
###TLU.configure(parsed_cfg)
###logdata= True
###TLU.start(logdata)
...
...
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