Skip to content
GitLab
Explore
Sign in
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
b495e4df
Commit
b495e4df
authored
Oct 15, 2021
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
L2SDP-261
, merged with master can be compiled but not done.
parent
1605713d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/constants.h
+1
-1
1 addition, 1 deletion
src/constants.h
src/periph/fpga.cpp
+9
-8
9 additions, 8 deletions
src/periph/fpga.cpp
with
10 additions
and
9 deletions
src/constants.h
+
1
−
1
View file @
b495e4df
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
#define C_N_fft 1024 // The FFT size defines the number of samples per block.
#define C_N_fft 1024 // The FFT size defines the number of samples per block.
#define C_N_pol 2 // Number of antenna polarizations, X and Y.
#define C_N_pol 2 // Number of antenna polarizations, X and Y.
#define C_A_pn 6 // Number of dual polarization antennas per Processing Node (PN) FPGA.
#define C_A_pn 6 // Number of dual polarization antennas per Processing Node (PN) FPGA.
//
#define C_N_beamlets 976 // Number of beamlets per antenna band 488, 976
#define C_N_beamlets 976 // Number of beamlets per antenna band 488, 976
// TODO: check
#define C_V_si_db 1024 // Size of the databuffer per signal input (SI), to capture
#define C_V_si_db 1024 // Size of the databuffer per signal input (SI), to capture
// a snapshot of the signal input data (ADC JESD204B data or WG data)
// a snapshot of the signal input data (ADC JESD204B data or WG data)
#define C_V_si_histogram 512 // Number of bins of the histogram per signal input (SI).
#define C_V_si_histogram 512 // Number of bins of the histogram per signal input (SI).
...
...
This diff is collapsed.
Click to expand it.
src/periph/fpga.cpp
+
9
−
8
View file @
b495e4df
...
@@ -529,6 +529,7 @@ bool Periph_fpga::write(TermOutput& termout, const string addr, const string typ
...
@@ -529,6 +529,7 @@ bool Periph_fpga::write(TermOutput& termout, const string addr, const string typ
}
}
else
if
(
addr
==
"fpga/bf_weights_xy_yx"
)
{
else
if
(
addr
==
"fpga/bf_weights_xy_yx"
)
{
retval
=
write_bf_weights_xy_yx
(
data
);
retval
=
write_bf_weights_xy_yx
(
data
);
}
else
if
(
addr
==
"fpga/subband_spectral_inversion"
)
{
else
if
(
addr
==
"fpga/subband_spectral_inversion"
)
{
retval
=
write_subband_spectral_inversion
(
data
);
retval
=
write_subband_spectral_inversion
(
data
);
}
}
...
@@ -2243,8 +2244,8 @@ bool Periph_fpga::read_bf_weights_xx_yy(TermOutput& termout, int format)
...
@@ -2243,8 +2244,8 @@ bool Periph_fpga::read_bf_weights_xx_yy(TermOutput& termout, int format)
uint32_t
n_inst
=
mmap
->
getNInstances
(
"mm/?/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_inst
=
mmap
->
getNInstances
(
"mm/?/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_ports
=
mmap
->
getNPorts
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_ports
=
mmap
->
getNPorts
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
span
=
mmap
->
getSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
span
=
mmap
->
getSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
ports_span
=
mmap
->
getPortSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
//
uint32_t ports_span = mmap->getPortSpan("mm/0/RAM_BF_WEIGHTS/0/data");
uint32_t
perip_span
=
mmap
->
getPeripheralSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
//
uint32_t perip_span = mmap->getPeripheralSpan("mm/0/RAM_BF_WEIGHTS/0/data");
uint32_t
*
ptr
=
(
uint32_t
*
)
termout
.
val
;
uint32_t
*
ptr
=
(
uint32_t
*
)
termout
.
val
;
string
regname
;
string
regname
;
...
@@ -2267,8 +2268,8 @@ bool Periph_fpga::write_bf_weights_xx_yy(const char *data)
...
@@ -2267,8 +2268,8 @@ bool Periph_fpga::write_bf_weights_xx_yy(const char *data)
uint32_t
n_inst
=
mmap
->
getNInstances
(
"mm/?/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_inst
=
mmap
->
getNInstances
(
"mm/?/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_ports
=
mmap
->
getNPorts
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_ports
=
mmap
->
getNPorts
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
span
=
mmap
->
getSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
span
=
mmap
->
getSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
ports_span
=
mmap
->
getPortSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
//
uint32_t ports_span = mmap->getPortSpan("mm/0/RAM_BF_WEIGHTS/0/data");
uint32_t
perip_span
=
mmap
->
getPeripheralSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
//
uint32_t perip_span = mmap->getPeripheralSpan("mm/0/RAM_BF_WEIGHTS/0/data");
// uint32_t n_beamsets;
// uint32_t n_beamsets;
// cf->getValue("n_beamsets", n_beamsets);
// cf->getValue("n_beamsets", n_beamsets);
...
@@ -2294,8 +2295,8 @@ bool Periph_fpga::read_bf_weights_xy_yx(TermOutput& termout, int format)
...
@@ -2294,8 +2295,8 @@ bool Periph_fpga::read_bf_weights_xy_yx(TermOutput& termout, int format)
uint32_t
n_inst
=
mmap
->
getNInstances
(
"mm/?/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_inst
=
mmap
->
getNInstances
(
"mm/?/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_ports
=
mmap
->
getNPorts
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_ports
=
mmap
->
getNPorts
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
span
=
mmap
->
getSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
span
=
mmap
->
getSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
ports_span
=
mmap
->
getPortSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
//
uint32_t ports_span = mmap->getPortSpan("mm/0/RAM_BF_WEIGHTS/0/data");
uint32_t
perip_span
=
mmap
->
getPeripheralSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
//
uint32_t perip_span = mmap->getPeripheralSpan("mm/0/RAM_BF_WEIGHTS/0/data");
uint32_t
*
ptr
=
(
uint32_t
*
)
termout
.
val
;
uint32_t
*
ptr
=
(
uint32_t
*
)
termout
.
val
;
string
regname
;
string
regname
;
...
@@ -2318,8 +2319,8 @@ bool Periph_fpga::write_bf_weights_xy_yx(const char *data)
...
@@ -2318,8 +2319,8 @@ bool Periph_fpga::write_bf_weights_xy_yx(const char *data)
uint32_t
n_inst
=
mmap
->
getNInstances
(
"mm/?/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_inst
=
mmap
->
getNInstances
(
"mm/?/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_ports
=
mmap
->
getNPorts
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
n_ports
=
mmap
->
getNPorts
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
span
=
mmap
->
getSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
span
=
mmap
->
getSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
uint32_t
ports_span
=
mmap
->
getPortSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
//
uint32_t ports_span = mmap->getPortSpan("mm/0/RAM_BF_WEIGHTS/0/data");
uint32_t
perip_span
=
mmap
->
getPeripheralSpan
(
"mm/0/RAM_BF_WEIGHTS/0/data"
);
//
uint32_t perip_span = mmap->getPeripheralSpan("mm/0/RAM_BF_WEIGHTS/0/data");
// uint32_t n_beamsets;
// uint32_t n_beamsets;
// cf->getValue("n_beamsets", n_beamsets);
// cf->getValue("n_beamsets", n_beamsets);
...
...
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