Commit f3159e68 authored by Guy De Souza's avatar Guy De Souza

nsymbs 2

parent 25e9f02e
......@@ -126,7 +126,7 @@ void nr_pdsch_layer_mapping(uint16_t **mod_symbs,
case 2:
case 3:
case 4:
for (int i=0; i<n_symbs[0]/n_layers; i++)
for (int i=0; i<n_symbs/n_layers; i++)
for (int l=0; l<n_layers; l++) {
tx_layers[l][i<<1] = mod_symbs[0][(n_layers*i+l)<<1];
tx_layers[l][(i<<1)+1] = mod_symbs[0][((n_layers*i+l)<<1)+1];
......@@ -134,12 +134,12 @@ void nr_pdsch_layer_mapping(uint16_t **mod_symbs,
break;
case 5:
for (int i=0; i<n_symbs[0]>>1; i++)
for (int i=0; i<n_symbs>>1; i++)
for (int l=0; l<2; l++) {
tx_layers[l][i<<1] = mod_symbs[0][((i<<1)+l)<<1];
tx_layers[l][(i<<1)+1] = mod_symbs[0][(((i<<1)+l)<<1)+1];
}
for (int i=0; i<n_symbs[1]/3; i++)
for (int i=0; i<n_symbs/3; i++)
for (int l=2; l<5; l++) {
tx_layers[l][i<<1] = mod_symbs[1][(3*i+l)<<1];
tx_layers[l][(i<<1)+1] = mod_symbs[1][((3*i+l)<<1)+1];
......@@ -148,7 +148,7 @@ void nr_pdsch_layer_mapping(uint16_t **mod_symbs,
case 6:
for (int q=0; q<2; q++)
for (int i=0; i<n_symbs[q]/3; i++)
for (int i=0; i<n_symbs/3; i++)
for (int l=0; l<3; l++) {
tx_layers[l][i<<1] = mod_symbs[q][(3*i+l)<<1];
tx_layers[l][(i<<1)+1] = mod_symbs[q][((3*i+l)<<1)+1];
......@@ -156,12 +156,12 @@ void nr_pdsch_layer_mapping(uint16_t **mod_symbs,
break;
case 7:
for (int i=0; i<n_symbs[0]/3; i++)
for (int i=0; i<n_symbs/3; i++)
for (int l=0; l<3; l++) {
tx_layers[l][i<<1] = mod_symbs[1][(3*i+l)<<1];
tx_layers[l][(i<<1)+1] = mod_symbs[1][((3*i+l)<<1)+1];
}
for (int i=0; i<n_symbs[1]/4; i++)
for (int i=0; i<n_symbs/4; i++)
for (int l=3; l<7; l++) {
tx_layers[l][i<<1] = mod_symbs[0][((i<<2)+l)<<1];
tx_layers[l][(i<<1)+1] = mod_symbs[0][(((i<<2)+l)<<1)+1];
......@@ -170,7 +170,7 @@ void nr_pdsch_layer_mapping(uint16_t **mod_symbs,
case 8:
for (int q=0; q<2; q++)
for (int i=0; i<n_symbs[q]>>2; i++)
for (int i=0; i<n_symbs>>2; i++)
for (int l=0; l<3; l++) {
tx_layers[l][i<<1] = mod_symbs[q][((i<<2)+l)<<1];
tx_layers[l][(i<<1)+1] = mod_symbs[q][(((i<<2)+l)<<1)+1];
......
......@@ -75,7 +75,7 @@ void nr_pdsch_codeword_modulation(uint32_t *in,
void nr_pdsch_layer_mapping(uint16_t **mod_symbs,
uint8_t n_codewords,
uint8_t n_layers,
uint16_t *n_symbs,
uint16_t n_symbs,
uint16_t **tx_layers);
uint8_t nr_generate_pdsch(NR_gNB_DLSCH_t dlsch,
......
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