Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open 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
tango
Commits
5f766cfe
Commit
5f766cfe
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-394
: Set sane defaults for WG, fix FPGA_xst_integration_level dimensions
parent
b029b7e4
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
devices/devices/sdp/sdp.py
+21
-0
21 additions, 0 deletions
devices/devices/sdp/sdp.py
devices/devices/sdp/xst.py
+9
-2
9 additions, 2 deletions
devices/devices/sdp/xst.py
with
30 additions
and
2 deletions
devices/devices/sdp/sdp.py
+
21
−
0
View file @
5f766cfe
...
@@ -56,6 +56,27 @@ class SDP(opcua_device):
...
@@ -56,6 +56,27 @@ class SDP(opcua_device):
mandatory
=
False
,
mandatory
=
False
,
default_value
=
[[
False
]
*
12
]
*
16
default_value
=
[[
False
]
*
12
]
*
16
)
)
# If we enable the waveform generator, we want some sane defaults.
FPGA_wg_amplitude_RW
=
device_property
(
dtype
=
'
DevVarDoubleArray
'
,
mandatory
=
False
,
default_value
=
[[
0.1
]
*
12
]
*
16
)
FPGA_wg_frequency_RW
=
device_property
(
dtype
=
'
DevVarDoubleArray
'
,
mandatory
=
False
,
# Emit a signal on subband 102
default_value
=
[[
102
*
200e6
/
1024
]
*
12
]
*
16
)
FPGA_wg_phase_RW
=
device_property
(
dtype
=
'
DevVarDoubleArray
'
,
mandatory
=
False
,
default_value
=
[[
0.0
]
*
12
]
*
16
)
FPGA_sdp_info_station_id_RW_default
=
device_property
(
FPGA_sdp_info_station_id_RW_default
=
device_property
(
dtype
=
'
DevVarULongArray
'
,
dtype
=
'
DevVarULongArray
'
,
...
...
This diff is collapsed.
Click to expand it.
devices/devices/sdp/xst.py
+
9
−
2
View file @
5f766cfe
...
@@ -75,6 +75,12 @@ class XST(Statistics):
...
@@ -75,6 +75,12 @@ class XST(Statistics):
default_value
=
[[
0
,
102
,
0
,
0
,
0
,
0
,
0
,
0
]]
*
16
default_value
=
[[
0
,
102
,
0
,
0
,
0
,
0
,
0
,
0
]]
*
16
)
)
FPGA_xst_integration_interval_RW_default
=
device_property
(
dtype
=
'
DevVarDoubleArray
'
,
mandatory
=
False
,
default_value
=
[
1.0
]
*
16
)
FPGA_xst_offload_enable_RW_default
=
device_property
(
FPGA_xst_offload_enable_RW_default
=
device_property
(
dtype
=
'
DevVarBooleanArray
'
,
dtype
=
'
DevVarBooleanArray
'
,
mandatory
=
False
,
mandatory
=
False
,
...
@@ -87,6 +93,7 @@ class XST(Statistics):
...
@@ -87,6 +93,7 @@ class XST(Statistics):
'
FPGA_xst_offload_hdr_udp_destination_port_RW
'
,
'
FPGA_xst_offload_hdr_udp_destination_port_RW
'
,
'
FPGA_xst_subband_select_RW
'
,
'
FPGA_xst_subband_select_RW
'
,
'
FPGA_xst_integration_interval_RW
'
,
# enable only after the offloading is configured correctly
# enable only after the offloading is configured correctly
'
FPGA_xst_offload_enable_RW
'
'
FPGA_xst_offload_enable_RW
'
...
@@ -97,8 +104,8 @@ class XST(Statistics):
...
@@ -97,8 +104,8 @@ class XST(Statistics):
# ----------
# ----------
# FPGA control points for XSTs
# FPGA control points for XSTs
FPGA_xst_integration_interval_RW
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_integration_interval_RW
"
],
datatype
=
numpy
.
double
,
dims
=
(
8
,
16
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_xst_integration_interval_RW
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_integration_interval_RW
"
],
datatype
=
numpy
.
double
,
dims
=
(
16
,
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_xst_integration_interval_R
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_integration_interval_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
8
,
16
))
FPGA_xst_integration_interval_R
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_integration_interval_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
16
,
))
FPGA_xst_offload_enable_RW
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_offload_enable_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_xst_offload_enable_RW
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_offload_enable_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_xst_offload_enable_R
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_offload_enable_R
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
16
,))
FPGA_xst_offload_enable_R
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_offload_enable_R
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
16
,))
FPGA_xst_offload_hdr_eth_destination_mac_RW
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_offload_hdr_eth_destination_mac_RW
"
],
datatype
=
numpy
.
str
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_xst_offload_hdr_eth_destination_mac_RW
=
attribute_wrapper
(
comms_id
=
OPCUAConnection
,
comms_annotation
=
[
"
2:FPGA_xst_offload_hdr_eth_destination_mac_RW
"
],
datatype
=
numpy
.
str
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
...
...
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