Commit 3c22d7e2 authored by knopp's avatar knopp
Browse files

error statistics for nr_pbchsim

parent 81c1e1b3
...@@ -1138,7 +1138,7 @@ uint32_t polar_decoder_int16(int16_t *input, ...@@ -1138,7 +1138,7 @@ uint32_t polar_decoder_int16(int16_t *input,
} }
else if (len<=64) { else if (len<=64) {
Ar = (B[0]>>crclen) | (B[1]<<(64-crclen));; Ar = (B[0]>>crclen) | (B[1]<<(64-crclen));;
uint8_t A64_flip[4]; uint8_t A64_flip[8];
uint64_t Aprime= (uint32_t)(Ar<<(64-len)); uint64_t Aprime= (uint32_t)(Ar<<(64-len));
A64_flip[0]=((uint8_t*)&Aprime)[7]; A64_flip[0]=((uint8_t*)&Aprime)[7];
A64_flip[1]=((uint8_t*)&Aprime)[6]; A64_flip[1]=((uint8_t*)&Aprime)[6];
......
...@@ -985,8 +985,6 @@ void set_default_frame_parms_single(nfapi_nr_config_request_t *config, NR_DL_FRA ...@@ -985,8 +985,6 @@ void set_default_frame_parms_single(nfapi_nr_config_request_t *config, NR_DL_FRA
config->subframe_config.dl_cyclic_prefix_type.value = 0; //NORMAL config->subframe_config.dl_cyclic_prefix_type.value = 0; //NORMAL
config->rf_config.dl_carrier_bandwidth.value = 106; config->rf_config.dl_carrier_bandwidth.value = 106;
config->rf_config.ul_carrier_bandwidth.value = 106; config->rf_config.ul_carrier_bandwidth.value = 106;
config->rf_config.tx_antenna_ports.value = 1;
config->rf_config.rx_antenna_ports.value = 1;
config->sch_config.physical_cell_id.value = 0; config->sch_config.physical_cell_id.value = 0;
frame_parms->frame_type = FDD; frame_parms->frame_type = FDD;
......
...@@ -672,7 +672,6 @@ int nr_rx_pbch( PHY_VARS_NR_UE *ue, ...@@ -672,7 +672,6 @@ int nr_rx_pbch( PHY_VARS_NR_UE *ue,
decoderState = polar_decoder_int16(pbch_e_rx,(uint8_t*)&nr_ue_pbch_vars->pbch_a_prime,currentPtr); decoderState = polar_decoder_int16(pbch_e_rx,(uint8_t*)&nr_ue_pbch_vars->pbch_a_prime,currentPtr);
if(decoderState > 0) return(decoderState); if(decoderState > 0) return(decoderState);
// printf("polar decoder output 0x%08x\n",nr_ue_pbch_vars->pbch_a_prime); // printf("polar decoder output 0x%08x\n",nr_ue_pbch_vars->pbch_a_prime);
......
...@@ -584,7 +584,7 @@ int main(int argc, char **argv) ...@@ -584,7 +584,7 @@ int main(int argc, char **argv)
n_errors_payload++; n_errors_payload++;
} }
if (ret<0) n_errors++; if (ret!=0) n_errors++;
} }
} //noise trials } //noise trials
......
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