Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Dmytro Levit
Software
Commits
d955b893
Commit
d955b893
authored
4 years ago
by
Patrick Robbe
Browse files
Options
Downloads
Patches
Plain Diff
Add lock for PLL functions
parent
2589d35e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+3
-3
3 additions, 3 deletions
.gitignore
Scripts/pll_status_small.py
+14
-3
14 additions, 3 deletions
Scripts/pll_status_small.py
with
17 additions
and
6 deletions
.gitignore
+
3
−
3
View file @
d955b893
...
...
@@ -42,7 +42,7 @@ Pcie40Applications/pcie40_send_ul
DumpFifo.txt
Pcie40Applications/pcie40_dmatest
Pcie40Applications/pcie40_dmahighrate
Pcie40Applications/regconfig
Pcie40Applications/statlink
Pcie40Applications/timediff
Pcie40Applications/
pcie40_
regconfig
Pcie40Applications/
pcie40_
statlink
Pcie40Applications/
pcie40_
timediff
data_file.txt
This diff is collapsed.
Click to expand it.
Scripts/pll_status_small.py
+
14
−
3
View file @
d955b893
...
...
@@ -13,6 +13,7 @@ import sys
import
pathtocomponents
import
curses
import
math
import
fcntl
from
fpga_comp
import
Arria10
from
si534x_comp
import
Si534x
...
...
@@ -23,6 +24,15 @@ from mpodCmd import enableChannel
from
ltc2990_comp
import
Ltc2990
import
addresses_comp
as
add
class
Pll_Locker
:
def
__enter__
(
self
):
self
.
fp
=
open
(
"
/tmp/pcie40_pll_lockfile.lck
"
,
'
w+
'
)
fcntl
.
flock
(
self
.
fp
.
fileno
(),
fcntl
.
LOCK_EX
)
def
__exit__
(
self
,
_type
,
value
,
tb
):
fcntl
.
flock
(
self
.
fp
.
fileno
(),
fcntl
.
LOCK_UN
)
self
.
fp
.
close
()
temp_counter
=
0
## mapping of TX minipods
...
...
@@ -598,9 +608,10 @@ def draw_menu(stdscr, dev):
# cursor_y = min (height - 1, cursor_y)
# Refresh windows with pll information
pll_window
(
pll_si5345_1
,
devices
[
1
],
fpga
,
freq
[
1
],
conf
[
1
],
win2
)
pll_window
(
pll_si5345_2
,
devices
[
2
],
fpga
,
freq
[
2
],
conf
[
2
],
win3
)
pll_window
(
pll_si5344
,
devices
[
3
],
fpga
,
freq
[
3
],
conf
[
3
],
win4
)
with
Pll_Locker
():
pll_window
(
pll_si5345_1
,
devices
[
1
],
fpga
,
freq
[
1
],
conf
[
1
],
win2
)
pll_window
(
pll_si5345_2
,
devices
[
2
],
fpga
,
freq
[
2
],
conf
[
2
],
win3
)
pll_window
(
pll_si5344
,
devices
[
3
],
fpga
,
freq
[
3
],
conf
[
3
],
win4
)
temperature_window
(
ltc1
,
ltc2
,
ltc3
,
win8
)
fanout_window
(
fpga
,
win5
)
link_window
(
fpga
,
win7
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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