Commit 27ef071b authored by Raymond Knopp's avatar Raymond Knopp

polartest changes for DCI parameters

parent 1ca00e40
...@@ -142,6 +142,10 @@ int main(int argc, char *argv[]) { ...@@ -142,6 +142,10 @@ int main(int argc, char *argv[]) {
if (polarMessageType == 0) { //PBCH if (polarMessageType == 0) { //PBCH
} else if (polarMessageType == 1) { //DCI } 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; coderLength = 108*aggregation_level;
} else if (polarMessageType == -1) { //UCI } else if (polarMessageType == -1) { //UCI
printf("UCI testing not supported yet\n"); printf("UCI testing not supported yet\n");
......
...@@ -88,7 +88,7 @@ uint32_t nr_polar_output_length(uint16_t K, ...@@ -88,7 +88,7 @@ uint32_t nr_polar_output_length(uint16_t K,
if (n>n_2) n=n_2; if (n>n_2) n=n_2;
if (n<n_min) n=n_min; 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); K,E,n,n_max,n_min,n_1,n_2);
exit(-1);*/ exit(-1);*/
return ((uint32_t) pow(2.0,n)); //=polar_code_output_length return ((uint32_t) pow(2.0,n)); //=polar_code_output_length
......
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