Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sdptr
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
Container registry
Model registry
Operate
Environments
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
sdptr
Commits
ebb1773f
Commit
ebb1773f
authored
Nov 2, 2021
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
small change
parent
f188eb32
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/periph/fpga.cpp
+3
-15
3 additions, 15 deletions
src/periph/fpga.cpp
with
3 additions
and
15 deletions
src/periph/fpga.cpp
+
3
−
15
View file @
ebb1773f
...
@@ -1113,12 +1113,9 @@ bool Periph_fpga::write_fpga_weights(const char *data)
...
@@ -1113,12 +1113,9 @@ bool Periph_fpga::write_fpga_weights(const char *data)
bool
Periph_fpga
::
write_sst_offload_weighted_subbands
(
const
char
*
data
)
bool
Periph_fpga
::
write_sst_offload_weighted_subbands
(
const
char
*
data
)
{
{
bool
*
_ptr
=
(
bool
*
)
data
;
uint32_t
_data
[
1
];
uint32_t
*
reg
=
new
uint32_t
[
1
];
_data
[
0
]
=
(
uint32_t
)
data
[
0
];
reg
[
0
]
=
0
;
if
(
_ptr
[
0
]
==
true
)
reg
[
0
]
=
1
;
bool
retval
=
Write
(
"mm/0/REG_DP_SELECTOR/0/input_select"
,
reg
);
bool
retval
=
Write
(
"mm/0/REG_DP_SELECTOR/0/input_select"
,
reg
);
delete
[]
reg
;
return
retval
;
return
retval
;
}
}
...
@@ -1130,8 +1127,6 @@ bool Periph_fpga::write_sst_offload_enable(const char *data)
...
@@ -1130,8 +1127,6 @@ bool Periph_fpga::write_sst_offload_enable(const char *data)
}
}
bool
Periph_fpga
::
write_bst_offload_enable
(
const
char
*
data
)
bool
Periph_fpga
::
write_bst_offload_enable
(
const
char
*
data
)
{
{
bool
*
_ptr
=
(
bool
*
)
data
;
bool
*
_ptr
=
(
bool
*
)
data
;
...
@@ -1147,8 +1142,6 @@ bool Periph_fpga::write_bst_offload_enable(const char *data)
...
@@ -1147,8 +1142,6 @@ bool Periph_fpga::write_bst_offload_enable(const char *data)
}
}
bool
Periph_fpga
::
write_beamlet_output_enable
(
const
char
*
data
)
bool
Periph_fpga
::
write_beamlet_output_enable
(
const
char
*
data
)
{
{
bool
*
_ptr
=
(
bool
*
)
data
;
bool
*
_ptr
=
(
bool
*
)
data
;
...
@@ -1163,7 +1156,6 @@ bool Periph_fpga::write_beamlet_output_enable(const char *data)
...
@@ -1163,7 +1156,6 @@ bool Periph_fpga::write_beamlet_output_enable(const char *data)
return
retval
;
return
retval
;
}
}
// TODO
bool
Periph_fpga
::
read_beamlet_output_scale
(
TermOutput
&
termout
,
int
format
)
bool
Periph_fpga
::
read_beamlet_output_scale
(
TermOutput
&
termout
,
int
format
)
{
{
bool
retval
=
true
;
bool
retval
=
true
;
...
@@ -1185,7 +1177,6 @@ bool Periph_fpga::read_beamlet_output_scale(TermOutput& termout, int format)
...
@@ -1185,7 +1177,6 @@ bool Periph_fpga::read_beamlet_output_scale(TermOutput& termout, int format)
return
retval
;
return
retval
;
}
}
// TODO
bool
Periph_fpga
::
write_beamlet_output_scale
(
const
char
*
data
)
bool
Periph_fpga
::
write_beamlet_output_scale
(
const
char
*
data
)
{
{
double
*
_ptr
=
(
double
*
)
data
;
double
*
_ptr
=
(
double
*
)
data
;
...
@@ -1202,7 +1193,6 @@ bool Periph_fpga::write_beamlet_output_scale(const char *data)
...
@@ -1202,7 +1193,6 @@ bool Periph_fpga::write_beamlet_output_scale(const char *data)
return
retval
;
return
retval
;
}
}
// TODO: REG_DP_BLOCK_RESIZE is not yet supported in the SDPFW.
bool
Periph_fpga
::
read_beamlet_output_nof_beamlets
(
TermOutput
&
termout
,
int
format
)
bool
Periph_fpga
::
read_beamlet_output_nof_beamlets
(
TermOutput
&
termout
,
int
format
)
{
{
bool
retval
=
true
;
bool
retval
=
true
;
...
@@ -1222,7 +1212,6 @@ bool Periph_fpga::read_beamlet_output_nof_beamlets(TermOutput& termout, int form
...
@@ -1222,7 +1212,6 @@ bool Periph_fpga::read_beamlet_output_nof_beamlets(TermOutput& termout, int form
return
retval
;
return
retval
;
}
}
// TODO: REG_DP_BLOCK_RESIZE is not yet supported in the SDPFW.
bool
Periph_fpga
::
write_beamlet_output_nof_beamlets
(
const
char
*
data
)
bool
Periph_fpga
::
write_beamlet_output_nof_beamlets
(
const
char
*
data
)
{
{
uint32_t
*
_ptr
=
(
uint32_t
*
)
data
;
uint32_t
*
_ptr
=
(
uint32_t
*
)
data
;
...
@@ -1256,7 +1245,7 @@ bool Periph_fpga::write_beamlet_output_nof_beamlets(const char *data)
...
@@ -1256,7 +1245,7 @@ bool Periph_fpga::write_beamlet_output_nof_beamlets(const char *data)
bool
Periph_fpga
::
write_xst_offload_enable
(
const
char
*
data
)
bool
Periph_fpga
::
write_xst_offload_enable
(
const
char
*
data
)
{
{
uint32_t
_data
[
1
];
uint32_t
_data
[
1
];
_data
[
0
]
=
(
bool
)
data
[
0
];
_data
[
0
]
=
(
uint32_t
)
data
[
0
];
return
Write
(
"mm/0/REG_STAT_ENABLE_XST/0/enable"
,
_data
);
return
Write
(
"mm/0/REG_STAT_ENABLE_XST/0/enable"
,
_data
);
}
}
...
@@ -1267,7 +1256,6 @@ bool Periph_fpga::write_xst_offload_nof_crosslets(const char *data)
...
@@ -1267,7 +1256,6 @@ bool Periph_fpga::write_xst_offload_nof_crosslets(const char *data)
}
}
//TODO, add beamsets (n_instances)
bool
Periph_fpga
::
read_eth_destination_mac
(
TermOutput
&
termout
,
const
string
&
port_name
,
const
int
n_instances
,
const
int
format
)
bool
Periph_fpga
::
read_eth_destination_mac
(
TermOutput
&
termout
,
const
string
&
port_name
,
const
int
n_instances
,
const
int
format
)
{
{
bool
retval
=
true
;
bool
retval
=
true
;
...
...
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