nr_du[] not filled in High Speed case for both gNB and nrUE
This commit is contained in:
@@ -780,7 +780,7 @@ void rx_nr_prach(PHY_VARS_gNB *gNB,
|
|||||||
}
|
}
|
||||||
} else { // This is the high-speed case
|
} else { // This is the high-speed case
|
||||||
new_dft = 0;
|
new_dft = 0;
|
||||||
|
nr_fill_du(N_ZC,prach_root_sequence_map);
|
||||||
// set preamble_offset to initial rootSequenceIndex and look if we need more root sequences for this
|
// set preamble_offset to initial rootSequenceIndex and look if we need more root sequences for this
|
||||||
// preamble index and find the corresponding cyclic shift
|
// preamble index and find the corresponding cyclic shift
|
||||||
// Check if all shifts for that root have been processed
|
// Check if all shifts for that root have been processed
|
||||||
@@ -788,7 +788,7 @@ void rx_nr_prach(PHY_VARS_gNB *gNB,
|
|||||||
not_found = 1;
|
not_found = 1;
|
||||||
new_dft = 1;
|
new_dft = 1;
|
||||||
preamble_index0 -= numshift;
|
preamble_index0 -= numshift;
|
||||||
(preamble_offset==0 && numshift==0) ? (preamble_offset) : (preamble_offset++);
|
//(preamble_offset==0 && numshift==0) ? (preamble_offset) : (preamble_offset++);
|
||||||
|
|
||||||
while (not_found == 1) {
|
while (not_found == 1) {
|
||||||
// current root depending on rootSequenceIndex
|
// current root depending on rootSequenceIndex
|
||||||
|
|||||||
@@ -73,6 +73,8 @@ void compute_nr_prach_seq(uint8_t short_sequence,
|
|||||||
uint8_t rootSequenceIndex,
|
uint8_t rootSequenceIndex,
|
||||||
uint32_t X_u[64][839]);
|
uint32_t X_u[64][839]);
|
||||||
|
|
||||||
|
void nr_fill_du(uint16_t N_ZC,uint16_t *prach_root_sequence_map);
|
||||||
|
|
||||||
void init_nr_prach_tables(int N_ZC);
|
void init_nr_prach_tables(int N_ZC);
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#include "T.h"
|
#include "T.h"
|
||||||
|
|
||||||
//#define NR_PRACH_DEBUG 1
|
#define NR_PRACH_DEBUG 1
|
||||||
|
|
||||||
extern uint16_t prach_root_sequence_map_0_3[838];
|
extern uint16_t prach_root_sequence_map_0_3[838];
|
||||||
extern uint16_t prach_root_sequence_map_abc[138];
|
extern uint16_t prach_root_sequence_map_abc[138];
|
||||||
@@ -130,6 +130,7 @@ int32_t generate_nr_prach(PHY_VARS_NR_UE *ue, uint8_t gNB_id, uint8_t slot){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
not_found = 1;
|
not_found = 1;
|
||||||
|
nr_fill_du(N_ZC,prach_root_sequence_map);
|
||||||
preamble_index0 = preamble_index;
|
preamble_index0 = preamble_index;
|
||||||
// set preamble_offset to initial rootSequenceIndex and look if we need more root sequences for this
|
// set preamble_offset to initial rootSequenceIndex and look if we need more root sequences for this
|
||||||
// preamble index and find the corresponding cyclic shift
|
// preamble index and find the corresponding cyclic shift
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ int main(int argc, char **argv){
|
|||||||
|
|
||||||
randominit(0);
|
randominit(0);
|
||||||
|
|
||||||
while ((c = getopt (argc, argv, "hHaA:Cc:r:p:g:m:n:s:S:t:x:y:v:V:z:N:F:d:Z:L:R:E")) != -1) {
|
while ((c = getopt (argc, argv, "hHaA:Cc:l:r:p:g:m:n:s:S:t:x:y:v:V:z:N:F:d:Z:L:R:E")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'a':
|
case 'a':
|
||||||
printf("Running AWGN simulation\n");
|
printf("Running AWGN simulation\n");
|
||||||
@@ -218,6 +218,10 @@ int main(int argc, char **argv){
|
|||||||
config_index = atoi(optarg);
|
config_index = atoi(optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'l':
|
||||||
|
loglvl = atoi(optarg);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'r':
|
case 'r':
|
||||||
msg1_frequencystart = atoi(optarg);
|
msg1_frequencystart = atoi(optarg);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user