Debug changes4
This commit is contained in:
@@ -204,16 +204,19 @@ uint8_t nr_generate_dci_top(NR_gNB_PDCCH pdcch_vars,
|
||||
/// DCI payload processing
|
||||
//channel coding
|
||||
#ifdef DEBUG_POLAR_PARAMS
|
||||
dci_alloc.dci_pdu[1]=10;
|
||||
uint8_t *encoderInput = malloc(sizeof(uint8_t) * dci_alloc.size);
|
||||
printf("\n[TY]DCI PDU: [0]->0x%08x \t [1]->0x%08x \t [2]->0x%08x \t [3]->0x%08x\n",
|
||||
dci_alloc.dci_pdu[0], dci_alloc.dci_pdu[1], dci_alloc.dci_pdu[2], dci_alloc.dci_pdu[3]);
|
||||
printf("\ndci_alloc.dci_pdu\n[0]=%d [1]=%d [2]=%d [3]=%d\n",dci_alloc.dci_pdu[0],dci_alloc.dci_pdu[1],dci_alloc.dci_pdu[2],dci_alloc.dci_pdu[3]);
|
||||
nr_bit2byte(dci_alloc.dci_pdu, dci_alloc.size, encoderInput);
|
||||
printf("\ndci_alloc.dci_pdu\n[0]=%d [1]=%d [2]=%d [3]=%d\n",dci_alloc.dci_pdu[0],dci_alloc.dci_pdu[1],dci_alloc.dci_pdu[2],dci_alloc.dci_pdu[3]);
|
||||
for (int i=0;i<dci_alloc.size;i++)
|
||||
printf("encoderInput[%d]=%d\n",i,encoderInput[i]);
|
||||
nr_byte2bit(encoderInput,dci_alloc.size,dci_alloc.dci_pdu);
|
||||
printf("\n[TY]DCI PDU: [0]->0x%08x \t [1]->0x%08x \t [2]->0x%08x \t [3]->0x%08x\n",
|
||||
dci_alloc.dci_pdu[0], dci_alloc.dci_pdu[1], dci_alloc.dci_pdu[2], dci_alloc.dci_pdu[3]);
|
||||
return (0);
|
||||
|
||||
|
||||
nr_polar_init(&nrPolar_params, NR_POLAR_DCI_MESSAGE_TYPE, dci_alloc.size, pdcch_params.aggregation_level);
|
||||
t_nrPolar_paramsPtr currentPtr = nr_polar_params(nrPolar_params,
|
||||
NR_POLAR_DCI_MESSAGE_TYPE,
|
||||
|
||||
@@ -130,11 +130,11 @@ void nr_fill_dci_and_dlsch(PHY_VARS_gNB *gNB,
|
||||
switch(params_rel15->rnti_type) {
|
||||
case NFAPI_NR_RNTI_RA:
|
||||
#ifdef DEBUG_NFAPI_NR_RNTI_RA
|
||||
printf("frequency_domain_assignment = %05d = %#08x\n"
|
||||
" time_domain_assignment = %05d = %#08x\n"
|
||||
" vrb_to_prb_mapping = %05d = %#08x\n"
|
||||
" MCS = %05d = %#08x\n"
|
||||
" tb_scaling = %05d = %#08x\n",
|
||||
printf("frequency_domain_assignment = %05d = %#010x\n"
|
||||
" time_domain_assignment = %05d = %#010x\n"
|
||||
" vrb_to_prb_mapping = %05d = %#010x\n"
|
||||
" MCS = %05d = %#010x\n"
|
||||
" tb_scaling = %05d = %#010x\n",
|
||||
pdu_rel15->frequency_domain_assignment,pdu_rel15->frequency_domain_assignment,
|
||||
pdu_rel15->time_domain_assignment,pdu_rel15->time_domain_assignment,
|
||||
pdu_rel15->vrb_to_prb_mapping,pdu_rel15->vrb_to_prb_mapping,
|
||||
|
||||
Reference in New Issue
Block a user