Commit 154d20e4 authored by Robert Schmidt's avatar Robert Schmidt

Selectively apply rotation

In the case of 7.2 split, we don't have the RU locally. It might (or
might not) be necessary to apply rotation.
parent 7e9ac645
...@@ -229,7 +229,7 @@ void rx_func(void *param) ...@@ -229,7 +229,7 @@ void rx_func(void *param)
L1_nr_prach_procedures(gNB,frame_rx,slot_rx); L1_nr_prach_procedures(gNB,frame_rx,slot_rx);
//WA: comment rotation in tx/rx //WA: comment rotation in tx/rx
if((gNB->num_RU == 1) && (gNB->RU_list[0]->if_south != REMOTE_IF4p5)) { if(gNB->num_RU == 0 || ((gNB->num_RU == 1) && (gNB->RU_list[0]->if_south != REMOTE_IF4p5))) {
//apply the rx signal rotation here //apply the rx signal rotation here
for (int aa = 0; aa < gNB->frame_parms.nb_antennas_rx; aa++) { for (int aa = 0; aa < gNB->frame_parms.nb_antennas_rx; aa++) {
apply_nr_rotation_ul(&gNB->frame_parms, apply_nr_rotation_ul(&gNB->frame_parms,
......
...@@ -220,13 +220,19 @@ void phy_procedures_gNB_TX(processingData_L1tx_t *msgTx, ...@@ -220,13 +220,19 @@ void phy_procedures_gNB_TX(processingData_L1tx_t *msgTx,
// if ((frame&127) == 0) dump_pdsch_stats(gNB); // if ((frame&127) == 0) dump_pdsch_stats(gNB);
//apply the OFDM symbol rotation here // apply the OFDM symbol rotation here
for (aa=0; aa<cfg->carrier_config.num_tx_ant.value; aa++) { // WA: Comment rotation in tx/rx
apply_nr_rotation(fp, &gNB->common_vars.txdataF[aa][txdataF_offset], slot, 0, fp->Ncp == EXTENDED ? 12 : 14, link_type_dl); if (gNB->num_RU == 0 || ((gNB->num_RU >= 1) && (gNB->RU_list[0]->if_south != REMOTE_IF4p5))) {
for (aa = 0; aa < cfg->carrier_config.num_tx_ant.value; aa++) {
T(T_GNB_PHY_DL_OUTPUT_SIGNAL, T_INT(0), apply_nr_rotation(fp, &gNB->common_vars.txdataF[aa][txdataF_offset], slot, 0, fp->Ncp == EXTENDED ? 12 : 14, link_type_dl);
T_INT(frame), T_INT(slot),
T_INT(aa), T_BUFFER(&gNB->common_vars.txdataF[aa][txdataF_offset], fp->samples_per_slot_wCP*sizeof(int32_t))); T(T_GNB_PHY_DL_OUTPUT_SIGNAL,
T_INT(0),
T_INT(frame),
T_INT(slot),
T_INT(aa),
T_BUFFER(&gNB->common_vars.txdataF[aa][txdataF_offset], fp->samples_per_slot_wCP * sizeof(int32_t)));
}
} }
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_gNB_TX+offset,0); VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_gNB_TX+offset,0);
......
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