Commit d72406ae authored by Raymond Knopp's avatar Raymond Knopp

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6346 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 4f31da2f
...@@ -1934,7 +1934,7 @@ uint8_t generate_dci_top(uint8_t num_ue_spec_dci, ...@@ -1934,7 +1934,7 @@ uint8_t generate_dci_top(uint8_t num_ue_spec_dci,
LOG_I(PHY,"Generating common DCI %d/%d (nCCE %d) of length %d, aggregation %d (%x)\n",i,num_common_dci,dci_alloc[i].nCCE,dci_alloc[i].dci_length,1<<dci_alloc[i].L,*(unsigned int*)dci_alloc[i].dci_pdu); LOG_I(PHY,"Generating common DCI %d/%d (nCCE %d) of length %d, aggregation %d (%x)\n",i,num_common_dci,dci_alloc[i].nCCE,dci_alloc[i].dci_length,1<<dci_alloc[i].L,*(unsigned int*)dci_alloc[i].dci_pdu);
dump_dci(frame_parms,&dci_alloc[i]); dump_dci(frame_parms,&dci_alloc[i]);
#endif #endif
if (dci_alloc[i].nCCE>=0) {
e_ptr = generate_dci0(dci_alloc[i].dci_pdu, e_ptr = generate_dci0(dci_alloc[i].dci_pdu,
e+(72*dci_alloc[i].nCCE), e+(72*dci_alloc[i].nCCE),
dci_alloc[i].dci_length, dci_alloc[i].dci_length,
...@@ -1942,6 +1942,7 @@ uint8_t generate_dci_top(uint8_t num_ue_spec_dci, ...@@ -1942,6 +1942,7 @@ uint8_t generate_dci_top(uint8_t num_ue_spec_dci,
dci_alloc[i].rnti); dci_alloc[i].rnti);
} }
} }
}
for (;i<num_ue_spec_dci + num_common_dci;i++) { for (;i<num_ue_spec_dci + num_common_dci;i++) {
if (dci_alloc[i].L == (uint8_t)L) { if (dci_alloc[i].L == (uint8_t)L) {
...@@ -1950,7 +1951,7 @@ uint8_t generate_dci_top(uint8_t num_ue_spec_dci, ...@@ -1950,7 +1951,7 @@ uint8_t generate_dci_top(uint8_t num_ue_spec_dci,
LOG_I(PHY," Generating UE (rnti %x) specific DCI %d of length %d, aggregation %d, format %d (%x)\n",dci_alloc[i].rnti,i,dci_alloc[i].dci_length,1<<dci_alloc[i].L,dci_alloc[i].format,dci_alloc[i].dci_pdu); LOG_I(PHY," Generating UE (rnti %x) specific DCI %d of length %d, aggregation %d, format %d (%x)\n",dci_alloc[i].rnti,i,dci_alloc[i].dci_length,1<<dci_alloc[i].L,dci_alloc[i].format,dci_alloc[i].dci_pdu);
dump_dci(frame_parms,&dci_alloc[i]); dump_dci(frame_parms,&dci_alloc[i]);
#endif #endif
if (dci_alloc[i].nCCE >= 0) {
e_ptr = generate_dci0(dci_alloc[i].dci_pdu, e_ptr = generate_dci0(dci_alloc[i].dci_pdu,
e+(72*dci_alloc[i].nCCE), e+(72*dci_alloc[i].nCCE),
dci_alloc[i].dci_length, dci_alloc[i].dci_length,
...@@ -1959,6 +1960,7 @@ uint8_t generate_dci_top(uint8_t num_ue_spec_dci, ...@@ -1959,6 +1960,7 @@ uint8_t generate_dci_top(uint8_t num_ue_spec_dci,
} }
} }
} }
}
// Scrambling // Scrambling
// printf("pdcch scrambling\n"); // printf("pdcch scrambling\n");
......
...@@ -700,7 +700,7 @@ typedef struct { ...@@ -700,7 +700,7 @@ typedef struct {
/// Aggregation level /// Aggregation level
uint8_t L; uint8_t L;
/// Position of first CCE of the dci /// Position of first CCE of the dci
unsigned int nCCE; int nCCE;
/// flag to indicate that this is a RA response /// flag to indicate that this is a RA response
boolean_t ra_flag; boolean_t ra_flag;
/// rnti /// rnti
......
...@@ -157,10 +157,11 @@ int allocate_REs_in_RB(LTE_DL_FRAME_PARMS *frame_parms, ...@@ -157,10 +157,11 @@ int allocate_REs_in_RB(LTE_DL_FRAME_PARMS *frame_parms,
uint8_t mod_order0 = get_Qm(dlsch0_harq->mcs); uint8_t mod_order0 = get_Qm(dlsch0_harq->mcs);
uint8_t *x1; uint8_t *x1=NULL;
int Nlayers1; uint8_t mod_order1=2;
int first_layer1; // Fill these in later for TM8-10
uint8_t mod_order1; // int Nlayers1;
// int first_layer1;
int use2ndpilots = (frame_parms->mode1_flag==1)?1:0; int use2ndpilots = (frame_parms->mode1_flag==1)?1:0;
...@@ -196,8 +197,9 @@ int allocate_REs_in_RB(LTE_DL_FRAME_PARMS *frame_parms, ...@@ -196,8 +197,9 @@ int allocate_REs_in_RB(LTE_DL_FRAME_PARMS *frame_parms,
if (dlsch1_harq) { if (dlsch1_harq) {
x1 = dlsch1_harq->e; x1 = dlsch1_harq->e;
Nlayers1 = dlsch1_harq->Nlayers; // Fill these in later for TM8-10
first_layer1 = dlsch1_harq->first_layer; // Nlayers1 = dlsch1_harq->Nlayers;
// first_layer1 = dlsch1_harq->first_layer;
mod_order1 = get_Qm(dlsch1_harq->mcs); mod_order1 = get_Qm(dlsch1_harq->mcs);
} }
......
...@@ -70,20 +70,12 @@ int generate_sss(mod_sym_t **txdataF, ...@@ -70,20 +70,12 @@ int generate_sss(mod_sym_t **txdataF,
for (i=0;i<62;i++) { for (i=0;i<62;i++) {
for (aa=0;aa<frame_parms->nb_antennas_tx;aa++) { for (aa=0;aa<frame_parms->nb_antennas_tx;aa++) {
//aa=0;
((int16_t*)txdataF[aa])[2*(slot_offset*Nsymb/2*frame_parms->ofdm_symbol_size + ((int16_t*)txdataF[aa])[2*(slot_offset*Nsymb/2*frame_parms->ofdm_symbol_size +
symbol*frame_parms->ofdm_symbol_size + k)] = symbol*frame_parms->ofdm_symbol_size + k)] =
(amp * d[i]); (a * d[i]);
((int16_t*)txdataF[aa])[2*(slot_offset*Nsymb/2*frame_parms->ofdm_symbol_size + ((int16_t*)txdataF[aa])[2*(slot_offset*Nsymb/2*frame_parms->ofdm_symbol_size +
symbol*frame_parms->ofdm_symbol_size + k)+1] = 0; symbol*frame_parms->ofdm_symbol_size + k)+1] = 0;
/*
if (aa==0)
printf("sss (slot %d, symbol %d): txdataF[%d] => (%d,%d)\n",slot_offset,symbol,
slot_offset*Nsymb/2*frame_parms->ofdm_symbol_size +
symbol*frame_parms->ofdm_symbol_size + k,
(amp * d[i]),0);
*/
} }
k+=1; k+=1;
if (k >= frame_parms->ofdm_symbol_size) { if (k >= frame_parms->ofdm_symbol_size) {
......
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