Commit 78e0af58 authored by Francesco Mani's avatar Francesco Mani

adding 10MHz option (values to be verified)

parent 6a0ec688
...@@ -1113,6 +1113,15 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) { ...@@ -1113,6 +1113,15 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) {
cfg->tx_bw = 40e6; cfg->tx_bw = 40e6;
cfg->rx_bw = 40e6; cfg->rx_bw = 40e6;
} }
} else if(N_RB == 24) {
if (fp->threequarter_fs) {
AssertFatal(0 == 1,"three quarter sampling not supported for N_RB 24\n");
} else {
cfg->sample_rate=15.36e6;
cfg->samples_per_frame = 153600;
cfg->tx_bw = 10e6;
cfg->rx_bw = 10e6;
}
} else { } else {
AssertFatal(0==1,"N_RB %d not yet supported for numerology %d\n",N_RB,mu); AssertFatal(0==1,"N_RB %d not yet supported for numerology %d\n",N_RB,mu);
} }
......
...@@ -108,6 +108,12 @@ void set_scs_parameters (NR_DL_FRAME_PARMS *fp, int mu, uint16_t bw) ...@@ -108,6 +108,12 @@ void set_scs_parameters (NR_DL_FRAME_PARMS *fp, int mu, uint16_t bw)
switch(bw){ switch(bw){
case 5: case 5:
case 10:
fp->ofdm_symbol_size = 512;
fp->first_carrier_offset = 368; //512 - ( (24*12) / 2 )
fp->nb_prefix_samples0 = 44;
fp->nb_prefix_samples = 36;
break;
case 15: case 15:
case 20: case 20:
case 25: case 25:
...@@ -200,7 +206,7 @@ void set_scs_parameters (NR_DL_FRAME_PARMS *fp, int mu, uint16_t bw) ...@@ -200,7 +206,7 @@ void set_scs_parameters (NR_DL_FRAME_PARMS *fp, int mu, uint16_t bw)
break; break;
case 50: case 50:
fp->ofdm_symbol_size = 512; fp->ofdm_symbol_size = 512;
fp->first_carrier_offset = 320; //1024 - ( (66*12) / 2 ) fp->first_carrier_offset = 320; //512 - ( (32*12) / 2 )
fp->nb_prefix_samples0 = 68; fp->nb_prefix_samples0 = 68;
fp->nb_prefix_samples = 36; fp->nb_prefix_samples = 36;
break; break;
......
...@@ -379,6 +379,7 @@ void nr_fill_indication(PHY_VARS_gNB *gNB, int frame, int slot_rx, int ULSCH_id, ...@@ -379,6 +379,7 @@ void nr_fill_indication(PHY_VARS_gNB *gNB, int frame, int slot_rx, int ULSCH_id,
// scale the 16 factor in N_TA calculation in 38.213 section 4.2 according to the used FFT size // scale the 16 factor in N_TA calculation in 38.213 section 4.2 according to the used FFT size
switch (gNB->frame_parms.N_RB_DL) { switch (gNB->frame_parms.N_RB_DL) {
case 24: timing_advance_update /= 4; break;
case 106: timing_advance_update /= 16; break; case 106: timing_advance_update /= 16; break;
case 217: timing_advance_update /= 32; break; case 217: timing_advance_update /= 32; break;
case 245: timing_advance_update /= 32; break; case 245: timing_advance_update /= 32; break;
......
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