polartest changes for DCI parameters
This commit is contained in:
@@ -142,6 +142,10 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (polarMessageType == 0) { //PBCH
|
||||
} else if (polarMessageType == 1) { //DCI
|
||||
if (aggregation_level != 16 && aggregation_level!=8 && aggregation_level != 4 && aggregation_level !=2 && aggregation_level !=1) {
|
||||
printf("Illegal aggregation level %d\n",aggregation_level);
|
||||
exit(-1);
|
||||
}
|
||||
coderLength = 108*aggregation_level;
|
||||
} else if (polarMessageType == -1) { //UCI
|
||||
printf("UCI testing not supported yet\n");
|
||||
|
||||
@@ -88,7 +88,7 @@ uint32_t nr_polar_output_length(uint16_t K,
|
||||
if (n>n_2) n=n_2;
|
||||
if (n<n_min) n=n_min;
|
||||
|
||||
/* printf("nr_polar_output_length: K %d, E %d, n %d (n_max %d,n_min %d, n_1 %d,n_2 %d)\n",
|
||||
/*printf("nr_polar_output_length: K %d, E %d, n %d (n_max %d,n_min %d, n_1 %d,n_2 %d)\n",
|
||||
K,E,n,n_max,n_min,n_1,n_2);
|
||||
exit(-1);*/
|
||||
return ((uint32_t) pow(2.0,n)); //=polar_code_output_length
|
||||
|
||||
Reference in New Issue
Block a user