Commit 4b82bbf3 authored by Florian Kaltenberger's avatar Florian Kaltenberger

Update nr_prach.c

parent f99643a6
...@@ -421,16 +421,16 @@ int32_t generate_nr_prach(PHY_VARS_NR_UE *ue, uint8_t gNB_id, uint8_t slot){ ...@@ -421,16 +421,16 @@ int32_t generate_nr_prach(PHY_VARS_NR_UE *ue, uint8_t gNB_id, uint8_t slot){
LOG_D(PHY, "PRACH [UE %d] Ncp %d, dftlen %d \n", Mod_id, Ncp, dftlen); LOG_D(PHY, "PRACH [UE %d] Ncp %d, dftlen %d \n", Mod_id, Ncp, dftlen);
#endif #endif
//actually what we should be checking here is how often the current prach crosses a 0.5ms boundary. I am not quite sure for which paramter set this would be the case, so I will ignore it for now and just check if the prach starts on a 0.5ms boundary //actually what we should be checking here is how often the current prach crosses a 0.5ms boundary. I am not quite sure for which paramter set this would be the case, so I will ignore it for now and just check if the prach starts on a 0.5ms boundary
uint8_t use_extended_prach_prefix = 0; uint8_t use_extended_prach_prefix = 0;
if(fp->numerology_index == 0) { if(fp->numerology_index == 0) {
if (prachStartSymbol == 0 || prachStartSymbol == 7) if (prachStartSymbol == 0 || prachStartSymbol == 7)
use_extended_prach_prefix = 1; use_extended_prach_prefix = 1;
} }
else { else {
if (slot%(fp->slots_per_subframe/2)==0 && prachStartSymbol == 0) if (slot%(fp->slots_per_subframe/2)==0 && prachStartSymbol == 0)
use_extended_prach_prefix = 1; use_extended_prach_prefix = 1;
} }
if (fp->N_RB_UL <= 34) { //32 PRB case 61.44Msps if (fp->N_RB_UL <= 34) { //32 PRB case 61.44Msps
if (fp->threequarter_fs == 0) { if (fp->threequarter_fs == 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