parallel_architecture of 5G NR V2

parent 9b371647
......@@ -125,16 +125,18 @@ for (int i=0; i<encoded_length>>3; i++) {
printf("\t");
}
printf("\n");
#endif
/*! \file openair1/PHY/NR_TRANSPORT/nr_dlsch.c
* \brief pipeline scrambling and modulaiton
* \brief parallel_architecture of 5G NR V2
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \email tyhsu@cs.nctu.edu.tw
* \date 07-05-2020
* \date 13-05-2020
* \version 1.3
* \note
* \warning
*/
*/
#endif
long sum = 0;
#ifdef thread_for_scrambling_modulation
// for(int j = 0;j<100;j++){
gNB->complete_scrambling_and_modulation = 0;
......
......@@ -222,7 +222,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_ENB_PDCCH_TX,0);
}
clock_gettime(CLOCK_REALTIME, &tt1);
// clock_gettime(CLOCK_REALTIME, &tt1);
for (int i=0; i<num_pdsch_rnti; i++) {
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_GENERATE_DLSCH,1);
LOG_D(PHY, "PDSCH generation started (%d)\n", num_pdsch_rnti);
......@@ -237,7 +237,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_GENERATE_DLSCH,0);
}
clock_gettime(CLOCK_REALTIME, &tt2);
// clock_gettime(CLOCK_REALTIME, &tt2);
// printf("nr_generate_pdsch consumes %ld nanoseconds!\n", tt2.tv_nsec - tt1.tv_nsec);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_ENB_TX+offset,0);
}
......
......@@ -281,8 +281,12 @@ static void *dlsch_encoding_proc(void *ptr){
}
static void *scrambling_proc(void *ptr){
/*! \file openair1/SIMULATION/NR_PHY/dlsim.c
* \brief pipeline scrambling and modulaiton
* \brief parallel_architecture of 5G NR V2
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \email tyhsu@cs.nctu.edu.tw
* \date 13-05-2020
......@@ -291,7 +295,6 @@ static void *dlsch_encoding_proc(void *ptr){
* \warning
*/
static void *scrambling_proc(void *ptr){
scrambling_channel *test =(scrambling_channel*) ptr;
int q_id = test->q_id;
......@@ -417,9 +420,8 @@ static void *modulation_proc(void *ptr){
struct timespec tt1, tt2;
PHY_VARS_gNB *gNB = RC.gNB[0][0];
NR_gNB_DLSCH_t *dlsch = gNB->dlsch[0][0];
/*! \file openair1/SIMULATION/NR_PHY/dlsim.c
* \brief pipeline scrambling and modulaiton
* \brief parallel_architecture of 5G NR V2
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \email tyhsu@cs.nctu.edu.tw
* \date 13-05-2020
......@@ -429,6 +431,7 @@ static void *modulation_proc(void *ptr){
*/
/**********************************************************************/
#ifdef CPU_AFF
cpu_set_t cpuset;
......
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