Commit 65fea7a1 authored by Valentin's avatar Valentin

fix(ldpc-offload-xdma): fix ldpc_xdma library and commit switch in nr-softmodem

parent 918eac8d
...@@ -506,7 +506,11 @@ void init_eNB_afterRU(void) { ...@@ -506,7 +506,11 @@ void init_eNB_afterRU(void) {
LOG_I(PHY,"RC.nb_nr_CC[inst:%d]:%p\n", inst, RC.gNB[inst]); LOG_I(PHY,"RC.nb_nr_CC[inst:%d]:%p\n", inst, RC.gNB[inst]);
gNB = RC.gNB[inst]; gNB = RC.gNB[inst];
#if 1
gNB->ldpc_fpga_flag = ldpc_offload_flag;
#else
gNB->ldpc_offload_flag = ldpc_offload_flag; gNB->ldpc_offload_flag = ldpc_offload_flag;
#endif
phy_init_nr_gNB(gNB); phy_init_nr_gNB(gNB);
......
...@@ -787,8 +787,14 @@ int nrLDPC_decoder_FPGA_PYM(int8_t* buf_in, int8_t* buf_out, DecIFConf dec_conf) ...@@ -787,8 +787,14 @@ int nrLDPC_decoder_FPGA_PYM(int8_t* buf_in, int8_t* buf_out, DecIFConf dec_conf)
uint8_t i_LS; uint8_t i_LS;
/*Init*/ static int init_flag = 0;
test_dma_init(); if (init_flag == 0) {
/*Init*/
test_dma_init();
init_flag = 1;
} else {
dma_reset();
}
clock_gettime(CLOCK_MONOTONIC, &ts_start0); // time start0 clock_gettime(CLOCK_MONOTONIC, &ts_start0); // time start0
// LDPC input parameter // LDPC input parameter
......
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