Commit 5a444422 authored by brobert's avatar brobert

Adding noises_amp2 to the thread array

parent 1c1ebf5f
...@@ -89,6 +89,7 @@ static void inner_channel_estimation(void *arg) { ...@@ -89,6 +89,7 @@ static void inner_channel_estimation(void *arg) {
delay_t *delay = rdata->delay; delay_t *delay = rdata->delay;
delay_t **delays = rdata->delays; delay_t **delays = rdata->delays;
uint64_t noise_amp2 = rdata->noise_amp2; uint64_t noise_amp2 = rdata->noise_amp2;
uint64_t *noises_amp2 = rdata->noises_amp2;
int nest_count = rdata->nest_count; int nest_count = rdata->nest_count;
const int nushift = rdata->nushift; const int nushift = rdata->nushift;
...@@ -401,7 +402,8 @@ static void inner_channel_estimation(void *arg) { ...@@ -401,7 +402,8 @@ static void inner_channel_estimation(void *arg) {
// value update of rdata to be passed to the next inner call // value update of rdata to be passed to the next inner call
rdata->max_ch = max_ch; // Placeholder for max channel value update rdata->max_ch = max_ch; // Placeholder for max channel value update
rdata->noise_amp2 = noise_amp2; // Placeholder for noise amplitude squared update rdata->noise_amp2 = noise_amp2; // Placeholder for noise amplitude squared update
noises_amp2[aarx] = noise_amp2;
rdata->noises_amp2 = noises_amp2; // Placeholder for noise amplitude squared update
delays[aarx] = delay; // Placeholder for estimated delay update delays[aarx] = delay; // Placeholder for estimated delay update
rdata->delays = delays; rdata->delays = delays;
nest_count = rdata->nest_count; // Placeholder for nested count update nest_count = rdata->nest_count; // Placeholder for nested count update
...@@ -500,6 +502,9 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB, ...@@ -500,6 +502,9 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
int nb_antennas_rx = gNB->frame_parms.nb_antennas_rx; int nb_antennas_rx = gNB->frame_parms.nb_antennas_rx;
delay_t *delays[nb_antennas_rx]; delay_t *delays[nb_antennas_rx];
memset(delays, 0, sizeof(*delays)); memset(delays, 0, sizeof(*delays));
uint64_t noises_amp2[nb_antennas_rx];
memset(noises_amp2, 0, sizeof(noises_amp2));
// //
// max_ch array size of rx antennas // max_ch array size of rx antennas
// noise_amp2 size of rx antennas // noise_amp2 size of rx antennas
...@@ -521,6 +526,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB, ...@@ -521,6 +526,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
rdata->aarx = aarx; rdata->aarx = aarx;
rdata->nest_count = nest_count; rdata->nest_count = nest_count;
rdata->noise_amp2 = noise_amp2; // noise_amp2[aarx] rdata->noise_amp2 = noise_amp2; // noise_amp2[aarx]
rdata->noises_amp2 = noises_amp2; // Placeholder for noise amplitude squared update
rdata->max_ch = max_ch; // max_ch[aarx] rdata->max_ch = max_ch; // max_ch[aarx]
rdata->ul_ls_est = ul_ls_est; rdata->ul_ls_est = ul_ls_est;
......
...@@ -766,6 +766,7 @@ typedef struct { ...@@ -766,6 +766,7 @@ typedef struct {
delay_t *delay; delay_t *delay;
delay_t **delays; delay_t **delays;
uint64_t noise_amp2; uint64_t noise_amp2;
uint64_t *noises_amp2;
uint64_t *nvar; uint64_t *nvar;
int nest_count; int nest_count;
int nushift; int nushift;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment