Commit 603adf6a authored by Guy De Souza's avatar Guy De Souza

ilv init update

parent 09691779
...@@ -194,15 +194,17 @@ uint8_t nr_init_pbch_interleaver(uint8_t *interleaver) { ...@@ -194,15 +194,17 @@ uint8_t nr_init_pbch_interleaver(uint8_t *interleaver) {
uint8_t j_sfn=0, j_hrf=10, j_ssb=11, j_other=14; uint8_t j_sfn=0, j_hrf=10, j_ssb=11, j_other=14;
memset((void*)interleaver,0, NR_POLAR_PBCH_PAYLOAD_BITS); memset((void*)interleaver,0, NR_POLAR_PBCH_PAYLOAD_BITS);
for (int i=0; i<NR_POLAR_PBCH_PAYLOAD_BITS; i++) for (uint8_t i=0; i<NR_POLAR_PBCH_PAYLOAD_BITS; i++)
if ((i<6)||(23<i && i<28)) //Sfn bits if (i<6) //Sfn bits:6
*(interleaver+j_sfn++) = *(nr_pbch_payload_interleaving_pattern+i); *(interleaver+i) = *(nr_pbch_payload_interleaving_pattern+j_sfn++);
else if (i<24) // other
*(interleaver+i) = *(nr_pbch_payload_interleaving_pattern+j_other++);
else if (i<28) // Sfn:4
*(interleaver+i) = *(nr_pbch_payload_interleaving_pattern+j_sfn++);
else if (i==28) // Hrf bit else if (i==28) // Hrf bit
*(interleaver+j_hrf) = *(nr_pbch_payload_interleaving_pattern+i); *(interleaver+i) = *(nr_pbch_payload_interleaving_pattern+j_hrf);
else if (i>28) // Ssb bits else // Ssb bits
*(interleaver+j_ssb++) = *(nr_pbch_payload_interleaving_pattern+i); *(interleaver+i) = *(nr_pbch_payload_interleaving_pattern+j_ssb++);
else
*(interleaver+j_other++) = *(nr_pbch_payload_interleaving_pattern+i);
} }
/*This pattern takes into account the adjustments for the field specific counters j_sfn, j_hrf, j_ssb and j_other*/ /*This pattern takes into account the adjustments for the field specific counters j_sfn, j_hrf, j_ssb and j_other*/
......
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