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
756559f5
Commit
756559f5
authored
Sep 25, 2017
by
Paolo Baesso
Committed by
GitHub
Sep 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request
#7
from PaoloGB/development
Minor tweak
parents
5bf2b7d9
811fdfa8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
TLU_v1e.py
TLU_v1e/scripts/TLU_v1e.py
+10
-2
startTLU_v1e.py
TLU_v1e/scripts/startTLU_v1e.py
+1
-1
No files found.
TLU_v1e/scripts/TLU_v1e.py
View file @
756559f5
...
...
@@ -214,6 +214,13 @@ class TLU:
print
"
\t
FIFO CSR read back as:"
,
hex
(
FifoCSR
)
return
FifoCSR
def
getFifoFlags
(
self
):
# Useless?
FifoFLAG
=
self
.
hw
.
getNode
(
"eventBuffer.EventFifoFillLevelFlags"
)
.
read
()
self
.
hw
.
dispatch
()
print
"
\t
FIFO FLAGS read back as:"
,
hex
(
FifoFLAG
)
return
FifoFLAG
def
getInternalTrg
(
self
):
trigIntervalR
=
self
.
hw
.
getNode
(
"triggerLogic.InternalTriggerIntervalR"
)
.
read
()
self
.
hw
.
dispatch
()
...
...
@@ -647,7 +654,7 @@ class TLU:
# # # Set mode
DUTMode
=
0xFFFFFFFC
####
self
.
setMode
(
DUTMode
)
# # # Set modifier
modifier
=
int
(
"0xFF"
,
16
)
self
.
setModeModifier
(
modifier
)
...
...
@@ -675,7 +682,6 @@ class TLU:
print
" FIFO RESET:"
FIFOcmd
=
0x2
self
.
setFifoCSR
(
FIFOcmd
)
eventFifoFillLevel
=
self
.
getFifoLevel
()
cmd
=
int
(
"0x000"
,
16
)
self
.
setInternalTrg
(
cmd
)
...
...
@@ -701,6 +707,8 @@ class TLU:
self
.
getPostVetoTrg
()
eventFifoFillLevel
=
self
.
getFifoLevel
()
self
.
getFifoFlags
()
self
.
getFifoCSR
()
print
" Turning on software trigger veto"
cmd
=
int
(
"0x1"
,
16
)
self
.
setTriggerVetoStatus
(
cmd
)
...
...
TLU_v1e/scripts/startTLU_v1e.py
View file @
756559f5
...
...
@@ -65,7 +65,7 @@ if __name__ == "__main__":
logdata
=
True
TLU
.
start
(
logdata
)
time
.
sleep
(
5
)
time
.
sleep
(
0.
5
)
TLU
.
stop
(
False
,
False
)
# prompt = MyPrompt()
# prompt.prompt = '>> '
...
...
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