NR_UE: fix/add some debugging in nr_adjust_synch_ue.c and nr_dl_channel_estimation.c
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
#include "executables/softmodem-common.h"
|
#include "executables/softmodem-common.h"
|
||||||
#include "common/utils/LOG/vcd_signal_dumper.h"
|
#include "common/utils/LOG/vcd_signal_dumper.h"
|
||||||
|
|
||||||
#define DEBUG_PHY
|
//#define DEBUG_PHY
|
||||||
|
|
||||||
// Adjust location synchronization point to account for drift
|
// Adjust location synchronization point to account for drift
|
||||||
// The adjustment is performed once per frame based on the
|
// The adjustment is performed once per frame based on the
|
||||||
@@ -118,7 +118,7 @@ void nr_adjust_synch_ue(NR_DL_FRAME_PARMS *frame_parms,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_PHY
|
#ifdef DEBUG_PHY
|
||||||
LOG_D(PHY,"AbsSubframe %d: diff = %i, rx_offset (final) = %i : clear = %d, max_pos = %d, max_pos_fil = %d, max_val = %d, sync_pos %d\n",
|
LOG_I(PHY,"AbsSubframe %d: diff = %i, rx_offset (final) = %i : clear = %d, max_pos = %d, max_pos_fil = %d, max_val = %d, sync_pos %d\n",
|
||||||
subframe,
|
subframe,
|
||||||
diff,
|
diff,
|
||||||
ue->rx_offset,
|
ue->rx_offset,
|
||||||
|
|||||||
@@ -1223,6 +1223,10 @@ void nr_pdcch_channel_estimation(PHY_VARS_NR_UE *ue,
|
|||||||
ch[0] = ch_sum[0] / 3;
|
ch[0] = ch_sum[0] / 3;
|
||||||
ch[1] = ch_sum[1] / 3;
|
ch[1] = ch_sum[1] / 3;
|
||||||
multadd_real_vector_complex_scalar(filt16a_1, ch, dl_ch, 16);
|
multadd_real_vector_complex_scalar(filt16a_1, ch, dl_ch, 16);
|
||||||
|
#ifdef DEBUG_PDCCH
|
||||||
|
for (int m =0; m<12; m++)
|
||||||
|
printf("data : dl_ch -> (%d,%d)\n",dl_ch[0+2*m],dl_ch[1+2*m]);
|
||||||
|
#endif
|
||||||
dl_ch += 24;
|
dl_ch += 24;
|
||||||
ch_sum[0] = 0;
|
ch_sum[0] = 0;
|
||||||
ch_sum[1] = 0;
|
ch_sum[1] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user