Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
00c07758
Commit
00c07758
authored
15 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Bug #1230: Corrected SS mapping by using rspctl --subbands.
parent
a9f1e66d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
StationTest/tc/prsg.py
+22
-13
22 additions, 13 deletions
StationTest/tc/prsg.py
with
22 additions
and
13 deletions
StationTest/tc/prsg.py
+
22
−
13
View file @
00c07758
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
nof_reflets_ap
=
rsp
.
c_nof_reflets_ap
nof_reflets_ap
=
rsp
.
c_nof_reflets_ap
nof_beamlets
=
rsp
.
c_nof_beamlets
# maximum capable by RSP gateware
nof_beamlets
=
rsp
.
c_nof_beamlets
# maximum capable by RSP gateware
nof_beamlets
=
216
# sufficient for 32 MHz
#
nof_beamlets = 216 # sufficient
nof beamlets
for 32 MHz
BW
nof_beamlets_ap
=
rsp
.
c_nof_beamlets_ap
# including reflets
nof_beamlets_ap
=
rsp
.
c_nof_beamlets_ap
# including reflets
nof_beamlets_ap
=
nof_reflets_ap
+
nof_beamlets
# including reflets
nof_beamlets_ap
=
nof_reflets_ap
+
nof_beamlets
# including reflets
...
@@ -37,13 +37,24 @@ tc.appendLog(11,'')
...
@@ -37,13 +37,24 @@ tc.appendLog(11,'')
################################################################################
################################################################################
# - Testcase initializations
# - Testcase initializations
# - Set RCU in PRSG mode
rsp
.
rspctl
(
tc
,
'
--rcuprsg
'
)
rsp
.
rspctl
(
tc
,
'
--rcuenable=1
'
)
bypass
=
0x8F
# Bypass data path to have direct access to RCU data via SS, use resync
bypass
=
0x8F
# Bypass data path to have direct access to RCU data via SS, use resync
# version of pps to preserve X and Y order in captured data
# version of pps to preserve X and Y order in captured data
# - Write incrementing SS mapping, repeat (r > 1) write to 'ensure' both pages are written
# - Set SS mapping
#ss_map = []
# Default use incrementing SS mapping
#for i in range(0, rsp.c_pol * nof_beamlets_ap):
ss_map
=
[]
# ss_map.append(i)
for
i
in
range
(
0
,
rsp
.
c_pol
*
nof_beamlets_ap
):
ss_map
.
append
(
i
)
# Use rspctl to write the SS mapping
rsp
.
rspctl
(
tc
,
'
--subbands=0:%d
'
%
(
nof_beamlets
-
1
))
# Write the SS mapping, repeat twice to ensure both pages are written
#r = 1
#r = 1
#for i in range(0,r):
#for i in range(0,r):
# rsp.write_ss(tc, msg, ss_map, blpId, rspId)
# rsp.write_ss(tc, msg, ss_map, blpId, rspId)
...
@@ -56,22 +67,20 @@ bypass = 0x8F # Bypass data path to have direct access to RCU data via SS, use
...
@@ -56,22 +67,20 @@ bypass = 0x8F # Bypass data path to have direct access to RCU data via SS, use
# this test case to the actual SS by reordering the captured data accordingly.
# this test case to the actual SS by reordering the captured data accordingly.
# Therefore read the actual SS into ss_map.
# Therefore read the actual SS into ss_map.
#
-
Read actual SS mapping, to use it to reorder the read DIAG result
# Read actual SS mapping, to use it to reorder the read DIAG result
#
. assume all BLP use same mapping
# . assume
both pages and
all BLP use same mapping
#
. strip the reflets
# . strip the reflets
#
. assume that the beamlets mapping uses all subbands
# . assume that the beamlets mapping uses all subbands
bi
=
[
blpId
[
0
]]
bi
=
[
blpId
[
0
]]
ri
=
[
rspId
[
0
]]
ri
=
[
rspId
[
0
]]
ss_map
=
rsp
.
read_ss
(
tc
,
msg
,
c_ss_size
,
bi
,
ri
)
ss_map
=
rsp
.
read_ss
(
tc
,
msg
,
c_ss_size
,
bi
,
ri
)
ss_map
=
ss_map
[
c_ss_reflets_size
:]
ss_map
=
ss_map
[
c_ss_reflets_size
:]
tc
.
appendLog
(
21
,
'
Active SS map (length %d):
'
%
len
(
ss_map
))
tc
.
appendLog
(
21
,
'
%s
'
%
ss_map
)
rsp
.
write_cr_syncoff
(
tc
,
msg
,
blpId
,
rspId
)
rsp
.
write_cr_syncoff
(
tc
,
msg
,
blpId
,
rspId
)
rsp
.
write_diag_bypass
(
tc
,
msg
,
bypass
,
blpId
,
rspId
)
rsp
.
write_diag_bypass
(
tc
,
msg
,
bypass
,
blpId
,
rspId
)
################################################################################
# Set RCU in PRSG mode
rsp
.
rspctl
(
tc
,
'
--rcuprsg
'
)
rsp
.
rspctl
(
tc
,
'
--rcuenable=1
'
)
################################################################################
################################################################################
# Run the test
# Run the test
...
...
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