WIP
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include "PHY/CODING/nrPolar_tools/nr_polar_defs.h"
|
#include "PHY/CODING/nrPolar_tools/nr_polar_defs.h"
|
||||||
#include "PHY/CODING/nrPolar_tools/nr_polar_pbch_defs.h"
|
#include "PHY/CODING/nrPolar_tools/nr_polar_pbch_defs.h"
|
||||||
|
#include "PHY/CODING/nrPolar_tools/nr_polar_uci_defs.h"
|
||||||
#include "SIMULATION/TOOLS/sim.h"
|
#include "SIMULATION/TOOLS/sim.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
@@ -72,14 +73,22 @@ int main(int argc, char *argv[]) {
|
|||||||
if (polarMessageType == 0) { //DCI
|
if (polarMessageType == 0) { //DCI
|
||||||
//testLength = ;
|
//testLength = ;
|
||||||
//coderLength = ;
|
//coderLength = ;
|
||||||
|
printf("polartest for DCI not supported yet\n");
|
||||||
|
exit(-1);
|
||||||
} else if (polarMessageType == 1) { //PBCH
|
} else if (polarMessageType == 1) { //PBCH
|
||||||
testLength = NR_POLAR_PBCH_PAYLOAD_BITS;
|
testLength = NR_POLAR_PBCH_PAYLOAD_BITS;
|
||||||
coderLength = NR_POLAR_PBCH_E;
|
coderLength = NR_POLAR_PBCH_E;
|
||||||
|
printf("running polartest for PBCH\n");
|
||||||
} else if (polarMessageType == 2) { //UCI
|
} else if (polarMessageType == 2) { //UCI
|
||||||
//testLength = ;
|
testLength = NR_POLAR_PUCCH_PAYLOAD_BITS;
|
||||||
//coderLength = ;
|
coderLength = NR_POLAR_PUCCH_E;
|
||||||
|
printf("running polartest for UCI");
|
||||||
|
} else {
|
||||||
|
printf("unsupported polarMessageType %d (0=DCI, 1=PBCH, 2=UCI)\n",polarMessageType);
|
||||||
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Logging
|
//Logging
|
||||||
time_t currentTime;
|
time_t currentTime;
|
||||||
time (¤tTime);
|
time (¤tTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user