Commit 4e50e36e authored by Raymond Knopp's avatar Raymond Knopp

intermediate commit, pucch2 RX with polar still not complete

parent f043c63a
...@@ -121,9 +121,9 @@ int main(int argc, char *argv[]) ...@@ -121,9 +121,9 @@ int main(int argc, char *argv[])
crcTableInit(); crcTableInit();
if (polarMessageType == 0) { //PBCH if (polarMessageType == 0) { //PBCH
aggregation_level = NR_POLAR_PBCH_AGGREGATION_LEVEL; aggregation_level = NR_POLAR_PBCH_AGGREGATION_LEVEL;
} else if (polarMessageType == 1) { //DCI } else if (polarMessageType == 1) { //DCI
coderLength = 108*aggregation_level; coderLength = 108*aggregation_level;
} else if (polarMessageType == 2) { //UCI } else if (polarMessageType == 2) { //UCI
//pucch2 parameters, 1 symbol, aggregation_level = NPRB //pucch2 parameters, 1 symbol, aggregation_level = NPRB
AssertFatal(aggregation_level>2,"For UCI formats, aggregation (N_RB) should be > 2\n"); AssertFatal(aggregation_level>2,"For UCI formats, aggregation (N_RB) should be > 2\n");
......
This diff is collapsed.
...@@ -908,24 +908,13 @@ void nr_uci_encoding(uint64_t payload, ...@@ -908,24 +908,13 @@ void nr_uci_encoding(uint64_t payload,
// CRC bits are not attached, and coding small block lengths (subclause 5.3.3) // CRC bits are not attached, and coding small block lengths (subclause 5.3.3)
b[0] = encodeSmallBlock((uint16_t*)&payload,A); b[0] = encodeSmallBlock((uint16_t*)&payload,A);
} else if (A>=12) { } else if (A>=12) {
AssertFatal(1==0,"Polar encoding not supported yet for UCI\n"); AssertFatal(A<65,"Polar encoding not supported yet for UCI with more than 64 bits\n");
// procedure in subclause 6.3.1.2.1 (UCI encoded by Polar code -> subclause 6.3.1.3.1) t_nrPolar_params *currentPtr = nr_polar_params(NR_POLAR_UCI_PUCCH_MESSAGE_TYPE,
/*if ((A>=360 && E>=1088)||(A>=1013)) { A,
I_seg = 1; nrofPRB,
} else { 1,
I_seg = 0; NULL);
}*/ polar_encoder_fast(&payload, b, 0,0,currentPtr);
/*if (A>=20) {
// parity bits (subclause 5.2.1) computed by setting L=11 and using generator polynomial gCRC11(D) (subclause 5.1)
L=11;
} else if (A<=19) {
// parity bits (subclause 5.2.1) computed by setting L=6 and using generator polynomial gCRC6(D) (subclause 5.1)
L=6;
}*/
// code block segmentation and CRC attachment is performed according to subclause 5.2.1
// polar coding subclause 5.3.1
} }
} }
......
...@@ -336,7 +336,7 @@ int main(int argc, char **argv) ...@@ -336,7 +336,7 @@ int main(int argc, char **argv)
} }
AssertFatal(((format < 2)&&(nr_bit<3)&&(actual_payload<4)) || AssertFatal(((format < 2)&&(nr_bit<3)&&(actual_payload<4)) ||
((format == 2)&&(nr_bit>2)&&(nr_bit<12)),"illegal combination format %d, nr_bit %d\n", ((format == 2)&&(nr_bit>2)&&(nr_bit<65)),"illegal combination format %d, nr_bit %d\n",
format,nr_bit); format,nr_bit);
actual_payload &= ((1<<nr_bit)-1); actual_payload &= ((1<<nr_bit)-1);
......
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