Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AIDA-2020 TLU
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
AIDA-2020 TLU
Commits
756559f5
Commit
756559f5
authored
7 years ago
by
Paolo Baesso
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request
#7
from PaoloGB/development
Minor tweak
parents
5bf2b7d9
811fdfa8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
TLU_v1e/scripts/TLU_v1e.py
+10
-2
10 additions, 2 deletions
TLU_v1e/scripts/TLU_v1e.py
TLU_v1e/scripts/startTLU_v1e.py
+1
-1
1 addition, 1 deletion
TLU_v1e/scripts/startTLU_v1e.py
with
11 additions
and
3 deletions
TLU_v1e/scripts/TLU_v1e.py
+
10
−
2
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
)
...
...
This diff is collapsed.
Click to expand it.
TLU_v1e/scripts/startTLU_v1e.py
+
1
−
1
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 = '>> '
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment