Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
LOFAR2.0
PyPCC
Commits
c22d68da
Commit
c22d68da
authored
1 year ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
Dither shutdown on startup, RCU_ADC_testsignal_on added
parent
e72a0956
No related branches found
No related tags found
No related merge requests found
Pipeline
#58232
passed
1 year ago
Stage: run
Stage: image
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pypcc/config/RECVTR_HB.yaml
+40
-1
40 additions, 1 deletion
pypcc/config/RECVTR_HB.yaml
pypcc/config/RECVTR_LB.yaml
+14
-5
14 additions, 5 deletions
pypcc/config/RECVTR_LB.yaml
scripts/ADC_JESDtest.py
+17
-11
17 additions, 11 deletions
scripts/ADC_JESDtest.py
with
71 additions
and
17 deletions
pypcc/config/RECVTR_HB.yaml
+
40
−
1
View file @
c22d68da
...
@@ -191,6 +191,9 @@ device_registers:
...
@@ -191,6 +191,9 @@ device_registers:
-
name
:
JESD_control1
-
name
:
JESD_control1
description
:
JESD link control
description
:
JESD link control
address
:
0x5F
address
:
0x5F
-
name
:
JESD_control3
description
:
JESD link control
address
:
0x61
-
name
:
SYNC_control
-
name
:
SYNC_control
address
:
0x3A
address
:
0x3A
-
name
:
CML_level
-
name
:
CML_level
...
@@ -572,6 +575,29 @@ variables:
...
@@ -572,6 +575,29 @@ variables:
dim
:
96
dim
:
96
dim2
:
[
3
,
32
]
dim2
:
[
3
,
32
]
debug
:
true
debug
:
true
mask
:
ANT_mask
-
name
:
RCU_ADC_testsignal
driver
:
I2C_RCU
devreg
:
[
ADC1.JESD_control1
,
ADC2.JESD_control1
,
ADC3.JESD_control1
]
width
:
1
bitoffset
:
5
rw
:
ro
dtype
:
boolean
dim
:
96
dim2
:
[
3
,
32
]
mask
:
ANT_mask
-
name
:
RCU_ADC_JESD3
driver
:
I2C_RCU
devreg
:
[
ADC1.JESD_control3
,
ADC2.JESD_control3
,
ADC3.JESD_control3
]
width
:
8
rw
:
rw
dtype
:
uint8
dim
:
96
dim2
:
[
3
,
32
]
debug
:
true
mask
:
ANT_mask
-
name
:
RCU_ADC_CML_level
-
name
:
RCU_ADC_CML_level
driver
:
I2C_RCU
driver
:
I2C_RCU
...
@@ -745,6 +771,7 @@ methods:
...
@@ -745,6 +771,7 @@ methods:
-
RCU_update
:
0
-
RCU_update
:
0
-
RCU_ADC_locked
:
Update
#check if not also in RCU_update
-
RCU_ADC_locked
:
Update
#check if not also in RCU_update
-
RCU_ADC_sync
:
Update
#disabled for testing
-
RCU_ADC_sync
:
Update
#disabled for testing
-
RCU_ADC_testsignal
:
Update
#disabled for testing
-
RCU_DTH_on
:
Update
#check if not also in RCU_update
-
RCU_DTH_on
:
Update
#check if not also in RCU_update
-
RCU_IO4_GPIO1
:
Update
#should be last, as it will fail for low-band
-
RCU_IO4_GPIO1
:
Update
#should be last, as it will fail for low-band
-
RCU_IO4_GPIO2
:
Update
-
RCU_IO4_GPIO2
:
Update
...
@@ -789,7 +816,7 @@ methods:
...
@@ -789,7 +816,7 @@ methods:
-
IO1.CONF1
:
0
-
IO1.CONF1
:
0
# - IO1.CONF2: 0
# - IO1.CONF2: 0
#ADC SPI bus reset
#ADC SPI bus reset
-
IO3.GPIO2
:
0x
4
0
#CS low
-
IO3.GPIO2
:
0x
C
0
#CS low
, DTH Shutdown
-
IO3.GPIO1
:
0x17
#CLK high
-
IO3.GPIO1
:
0x17
#CLK high
-
IO3.GPIO1
:
0x15
#CLK low
-
IO3.GPIO1
:
0x15
#CLK low
-
IO3.GPIO1
:
0x17
#CLK high
-
IO3.GPIO1
:
0x17
#CLK high
...
@@ -828,6 +855,7 @@ methods:
...
@@ -828,6 +855,7 @@ methods:
-
RCU_DTH_on
:
Update
#check dither while giving ADCs some time to lock
-
RCU_DTH_on
:
Update
#check dither while giving ADCs some time to lock
-
RCU_ADC_locked
:
Update
#disabled for testing
-
RCU_ADC_locked
:
Update
#disabled for testing
-
RCU_ADC_sync
:
Update
#disabled for testing
-
RCU_ADC_sync
:
Update
#disabled for testing
-
RCU_ADC_testsignal
:
Update
#disabled for testing
-
name
:
RCU_update
-
name
:
RCU_update
...
@@ -971,3 +999,14 @@ methods:
...
@@ -971,3 +999,14 @@ methods:
-
DTH2.Start
:
[
0
,
1
,
0
,
0
,
1
]
-
DTH2.Start
:
[
0
,
1
,
0
,
0
,
1
]
-
DTH3.Start
:
[
0
,
1
,
0
,
0
,
1
]
-
DTH3.Start
:
[
0
,
1
,
0
,
0
,
1
]
-
name
:
RCU_ADC_testsignal_on
driver
:
I2C_RCU
instructions
:
-
ADC1.JESD_control1
:
0x34
-
ADC1.Update
:
1
#Needed to update ADC registers
-
ADC2.JESD_control1
:
0x34
-
ADC2.Update
:
1
#Needed to update ADC registers
-
ADC3.JESD_control1
:
0x34
-
ADC3.Update
:
1
#Needed to update ADC registers
-
RCU_ADC_testsignal
:
Update
#disabled for testing
This diff is collapsed.
Click to expand it.
pypcc/config/RECVTR_LB.yaml
+
14
−
5
View file @
c22d68da
...
@@ -141,7 +141,6 @@ device_registers:
...
@@ -141,7 +141,6 @@ device_registers:
-
name
:
JESD_control1
-
name
:
JESD_control1
description
:
JESD link control
description
:
JESD link control
address
:
0x5F
address
:
0x5F
store
:
True
-
name
:
JESD_control3
-
name
:
JESD_control3
description
:
JESD link control
description
:
JESD link control
address
:
0x61
address
:
0x61
...
@@ -550,7 +549,7 @@ variables:
...
@@ -550,7 +549,7 @@ variables:
devreg
:
[
ADC1.JESD_control1
,
ADC2.JESD_control1
,
ADC3.JESD_control1
]
devreg
:
[
ADC1.JESD_control1
,
ADC2.JESD_control1
,
ADC3.JESD_control1
]
width
:
1
width
:
1
bitoffset
:
5
bitoffset
:
5
rw
:
r
w
rw
:
r
o
dtype
:
boolean
dtype
:
boolean
dim
:
96
dim
:
96
dim2
:
[
3
,
32
]
dim2
:
[
3
,
32
]
...
@@ -699,8 +698,8 @@ methods:
...
@@ -699,8 +698,8 @@ methods:
#Set registers to default values
#Set registers to default values
-
IO2.GPIO1
:
0x4A
#0x40 Dig on, 0x0a =10dB att
-
IO2.GPIO1
:
0x4A
#0x40 Dig on, 0x0a =10dB att
-
IO2.GPIO2
:
0x55
#0x15 #Band0 (or 0x2a band 1) #LED green=on=low
-
IO2.GPIO2
:
0x55
#0x15 #Band0 (or 0x2a band 1) #LED green=on=low
-
IO3.GPIO1
:
0x
9
5
#0001 0101 ADC_SDIO=high, clk=low, DTH_
shutdown=HIGH (made low which ADC SPI bus reset)
-
IO3.GPIO1
:
0x
1
5
#0001 0101 ADC_SDIO=high, clk=low, DTH_
en=low
-
IO3.GPIO2
:
0x47
#ADC SC=high, DTH_SDA=high, DTH_
EN
=low
-
IO3.GPIO2
:
0x47
#ADC SC=high, DTH_SDA=high, DTH_
SDA
=low
-
IO1.GPIO1
:
0x0A
#0x0a = 10dB att
-
IO1.GPIO1
:
0x0A
#0x0a = 10dB att
# - IO1.POL1: 0
# - IO1.POL1: 0
# - IO1.POL2: 0
# - IO1.POL2: 0
...
@@ -714,7 +713,7 @@ methods:
...
@@ -714,7 +713,7 @@ methods:
-
IO3.CONF2
:
0
-
IO3.CONF2
:
0
#ADC SPI bus reset
#ADC SPI bus reset
-
IO3.GPIO2
:
0x
4
0
#CS low
-
IO3.GPIO2
:
0x
C
0
#CS low
, DTH shutdown
-
IO3.GPIO1
:
0x17
#CLK high
-
IO3.GPIO1
:
0x17
#CLK high
-
IO3.GPIO1
:
0x15
#CLK low
-
IO3.GPIO1
:
0x15
#CLK low
-
IO3.GPIO1
:
0x17
#CLK high
-
IO3.GPIO1
:
0x17
#CLK high
...
@@ -882,3 +881,13 @@ methods:
...
@@ -882,3 +881,13 @@ methods:
-
DTH2.Start
:
[
0
,
1
,
0
,
0
,
1
]
-
DTH2.Start
:
[
0
,
1
,
0
,
0
,
1
]
-
DTH3.Start
:
[
0
,
1
,
0
,
0
,
1
]
-
DTH3.Start
:
[
0
,
1
,
0
,
0
,
1
]
-
name
:
RCU_ADC_testsignal_on
driver
:
I2C_RCU
instructions
:
-
ADC1.JESD_control1
:
0x34
-
ADC1.Update
:
1
#Needed to update ADC registers
-
ADC2.JESD_control1
:
0x34
-
ADC2.Update
:
1
#Needed to update ADC registers
-
ADC3.JESD_control1
:
0x34
-
ADC3.Update
:
1
#Needed to update ADC registers
-
RCU_ADC_testsignal
:
Update
#disabled for testing
This diff is collapsed.
Click to expand it.
scripts/ADC_JESDtest.py
+
17
−
11
View file @
c22d68da
...
@@ -2,11 +2,11 @@ from test_common import *
...
@@ -2,11 +2,11 @@ from test_common import *
connect
()
connect
()
#name="RCU_ADC_JESD3"
#name="RCU_ADC_JESD3"
name
=
"
RCU_ADC_
JESD
"
name
=
"
RCU_ADC_
testsignal
"
#RCU=[0];
#RCU=[0];
RCU
=
[
x
for
x
in
range
(
32
)];
RCU
=
[
x
for
x
in
range
(
32
)];
Att
=
[
0x14
]
*
3
#default
Att
=
[
False
]
*
3
#default
Att
=
[
0x34
]
*
3
Att
=
[
True
]
*
3
#RCU=[0,1,2,3,16,17,18,19];
#RCU=[0,1,2,3,16,17,18,19];
#Att=[0x24]*3 #8-bit 0010, 0100 PN9
#Att=[0x24]*3 #8-bit 0010, 0100 PN9
#Att=[10,10,10]
#Att=[10,10,10]
...
@@ -14,15 +14,21 @@ Att=[0x34]*3
...
@@ -14,15 +14,21 @@ Att=[0x34]*3
setAntmask
(
RCU
)
setAntmask
(
RCU
)
att
=
get_debug_value
(
name
+
"
_R
"
)
wait_not_busy
(
"
RECVTR_translator_busy_R
"
,
10
)
att
=
get_value
(
name
+
"
_R
"
)
print
(
"
JESD old:
"
,
att
[:
15
])
print
(
"
JESD old:
"
,
att
[:
15
])
for
r
in
RCU
:
att
[
3
*
r
:
3
*
r
+
3
]
=
Att
#for r in RCU:
print
(
"
JESD set:
"
,
att
[:
15
])
# att[3*r:3*r+3]=Att
set_debug_value
(
name
+
"
_RW
"
,
att
)
#print("JESD set:",att[:15])
#set_value(name+"_RW",att)
if
True
:
callmethod
(
"
RCU_ADC_testsignal_on
"
)
time
.
sleep
(
0.5
)
time
.
sleep
(
0.5
)
att
=
get_debug_value
(
name
+
"
_R
"
)
wait_not_busy
(
"
RECVTR_translator_busy_R
"
,
10
)
att
=
get_value
(
name
+
"
_R
"
)
print
(
"
JESD new:
"
,
att
[:
15
])
print
(
"
JESD new:
"
,
att
[:
15
])
disconnect
()
disconnect
()
\ No newline at end of file
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