Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
1c1ebf5f
Commit
1c1ebf5f
authored
Jun 04, 2024
by
brobert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added delay array passed to ThreadPool and printed debuging values
parent
1d30b57a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
+26
-2
openair1/PHY/defs_gNB.h
openair1/PHY/defs_gNB.h
+1
-0
No files found.
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
View file @
1c1ebf5f
...
...
@@ -37,6 +37,7 @@
//#define DEBUG_CH
//#define DEBUG_PUSCH
#define DEBUG_PUSCH_THREAD
//#define SRS_DEBUG
#define NO_INTERP 1
...
...
@@ -86,6 +87,7 @@ static void inner_channel_estimation(void *arg) {
c16_t
*
ul_ls_est
=
rdata
->
ul_ls_est
;
NR_gNB_PUSCH
*
pusch_vars
=
rdata
->
pusch_vars
;
delay_t
*
delay
=
rdata
->
delay
;
delay_t
**
delays
=
rdata
->
delays
;
uint64_t
noise_amp2
=
rdata
->
noise_amp2
;
int
nest_count
=
rdata
->
nest_count
;
const
int
nushift
=
rdata
->
nushift
;
...
...
@@ -399,7 +401,9 @@ static void inner_channel_estimation(void *arg) {
// value update of rdata to be passed to the next inner call
rdata
->
max_ch
=
max_ch
;
// Placeholder for max channel value update
rdata
->
noise_amp2
=
noise_amp2
;
// Placeholder for noise amplitude squared update
delay
->
est_delay
=
rdata
->
delay
->
est_delay
;
// Placeholder for estimated delay update
delays
[
aarx
]
=
delay
;
// Placeholder for estimated delay update
rdata
->
delays
=
delays
;
nest_count
=
rdata
->
nest_count
;
// Placeholder for nested count update
rdata
->
ul_ls_est
=
ul_ls_est
;
// Placeholder for uplink least square estimation
...
...
@@ -493,10 +497,21 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
delay_t
*
delay
=
&
gNB
->
ulsch
[
ul_id
].
delay
;
memset
(
delay
,
0
,
sizeof
(
*
delay
));
int
nb_antennas_rx
=
gNB
->
frame_parms
.
nb_antennas_rx
;
delay_t
*
delays
[
nb_antennas_rx
];
memset
(
delays
,
0
,
sizeof
(
*
delays
));
//
// max_ch array size of rx antennas
// noise_amp2 size of rx antennas
#ifdef DEBUG_PUSCH_THREAD
for
(
int
aarx
=
0
;
aarx
<
gNB
->
frame_parms
.
nb_antennas_rx
;
aarx
++
)
{
printf
(
"Start - Estimated delay = %i
\t
"
,
delay
[
aarx
].
est_delay
>>
1
);
}
#endif
for
(
int
aarx
=
0
;
aarx
<
gNB
->
frame_parms
.
nb_antennas_rx
;
aarx
++
)
{
notifiedFIFO_elt_t
*
req
=
newNotifiedFIFO_elt
(
sizeof
(
puschAntennaProc_t
),
aarx
,
&
gNB
->
respPuschAarx
,
&
inner_channel_estimation
);
// create a job for Tpool
...
...
@@ -510,7 +525,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
rdata
->
ul_ls_est
=
ul_ls_est
;
rdata
->
delay
=
delay
;
rdata
->
delays
=
delays
;
rdata
->
gNB
=
gNB
;
rdata
->
symbol_offset
=
symbol_offset
;
rdata
->
ul_ch_estimates
=
ul_ch_estimates
;
...
...
@@ -555,6 +570,15 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
*
nvar
=
(
uint32_t
)(
noise_amp2
/
nest_count
);
}
#ifdef DEBUG_PUSCH_THREAD
for
(
int
aarx
=
0
;
aarx
<
gNB
->
frame_parms
.
nb_antennas_rx
;
aarx
++
)
{
printf
(
"Exit Pool - Estimated delay = %i
\t
"
,
delay
[
aarx
].
est_delay
>>
1
);
}
#endif
return
0
;
}
...
...
openair1/PHY/defs_gNB.h
View file @
1c1ebf5f
...
...
@@ -764,6 +764,7 @@ typedef struct {
c16_t
*
ul_ls_est
;
NR_gNB_PUSCH
*
pusch_vars
;
delay_t
*
delay
;
delay_t
**
delays
;
uint64_t
noise_amp2
;
uint64_t
*
nvar
;
int
nest_count
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment