Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
52903c76
Commit
52903c76
authored
Oct 07, 2019
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nr-pdsch-extraction-bugfix' into nr-coreset-bug-fix
parents
cba58a50
5e1c3101
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
58 deletions
+36
-58
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c
+36
-58
No files found.
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c
View file @
52903c76
...
@@ -2380,10 +2380,14 @@ unsigned short nr_dlsch_extract_rbs_single(int **rxdataF,
...
@@ -2380,10 +2380,14 @@ unsigned short nr_dlsch_extract_rbs_single(int **rxdataF,
unsigned
char
j
=
0
;
unsigned
char
j
=
0
;
k
=
frame_parms
->
first_carrier_offset
+
12
*
start_rb
;
AssertFatal
(
frame_parms
->
nushift
==
0
||
frame_parms
->
nushift
==
1
,
"nushift %d is illegal
\n
"
,
frame_parms
->
nushift
);
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
k
=
frame_parms
->
first_carrier_offset
+
12
*
start_rb
;
if
(
k
>
frame_parms
->
ofdm_symbol_size
)
k
=
k
-
frame_parms
->
ofdm_symbol_size
;
if
(
high_speed_flag
==
1
)
if
(
high_speed_flag
==
1
)
dl_ch0
=
&
dl_ch_estimates
[
aarx
][(
2
*
(
frame_parms
->
ofdm_symbol_size
))];
dl_ch0
=
&
dl_ch_estimates
[
aarx
][(
2
*
(
frame_parms
->
ofdm_symbol_size
))];
else
else
...
@@ -2394,53 +2398,23 @@ unsigned short nr_dlsch_extract_rbs_single(int **rxdataF,
...
@@ -2394,53 +2398,23 @@ unsigned short nr_dlsch_extract_rbs_single(int **rxdataF,
rxF_ext
=
&
rxdataF_ext
[
aarx
][
symbol
*
(
nb_rb_pdsch
*
12
)];
rxF_ext
=
&
rxdataF_ext
[
aarx
][
symbol
*
(
nb_rb_pdsch
*
12
)];
rxF
=
&
rxdataF
[
aarx
][(
k
+
(
symbol
*
(
frame_parms
->
ofdm_symbol_size
)))];
rxF
=
&
rxdataF
[
aarx
][(
k
+
(
symbol
*
(
frame_parms
->
ofdm_symbol_size
)))];
//printf("extract single addr %p pilots %d symbol %d, l %d RB_DL %d nushift %d k %d\n", rxF, pilots, symbol, l, frame_parms->N_RB_DL,frame_parms->nushift,k);
for
(
rb
=
0
;
rb
<
nb_rb_pdsch
;
rb
++
)
{
//if ((frame_parms->N_RB_DL&1) == 0){ // even number of RBs
for
(
rb
=
start_rb
;
rb
<
nb_rb_pdsch
+
start_rb
;
rb
++
)
{
// For second half of RBs skip DC carrier
if
(
k
>=
frame_parms
->
ofdm_symbol_size
)
{
rxF
=
&
rxdataF
[
aarx
][(
symbol
*
(
frame_parms
->
ofdm_symbol_size
))];
k
=
k
-
(
frame_parms
->
ofdm_symbol_size
);
}
//*pmi_ext = (pmi>>((rb>>2)<<1))&3;
//memcpy(dl_ch0_ext,dl_ch0,12*sizeof(int));
/*
printf("rb %d\n",rb);
for (i=0;i<12;i++)
printf("(%d %d)",((short *)dl_ch0)[i<<1],((short*)dl_ch0)[1+(i<<1)]);
printf("\n");
*/
if
(
pilots
==
0
)
{
if
(
pilots
==
0
)
{
for
(
i
=
0
;
i
<
12
;
i
++
)
{
memcpy
((
void
*
)
rxF_ext
,(
void
*
)
rxF
,
12
*
sizeof
(
*
rxF_ext
));
rxF_ext
[
i
]
=
rxF
[
i
];
memcpy
((
void
*
)
dl_ch0_ext
,(
void
*
)
dl_ch0
,
12
*
sizeof
(
*
dl_ch0_ext
));
dl_ch0_ext
[
i
]
=
dl_ch0
[
i
];
/*printf("rb %ld %p: (%d,%d)\n",(rxF+i-&rxdataF[aarx][( (symbol*(frame_parms->ofdm_symbol_size)))]),rxF,
((short*)&rxF[i])[0],((short*)&rxF[i])[1]);
printf("rb %ld %p: dl_ch (%d,%d)\n",(rxF+i-&rxdataF[aarx][( (symbol*(frame_parms->ofdm_symbol_size)))]),rxF,
((short*)&dl_ch0[i])[0],((short*)&dl_ch0[i])[1]);
printf("re count %d\n",rb*12+i);*/
}
dl_ch0_ext
+=
12
;
dl_ch0_ext
+=
12
;
rxF_ext
+=
12
;
rxF_ext
+=
12
;
}
else
{
}
else
{
j
=
0
;
j
=
0
;
for
(
i
=
0
;
i
<
12
;
i
++
)
{
for
(
i
=
(
1
-
frame_parms
->
nushift
);
if
((
i
&
1
)
!=
frame_parms
->
nushift
){
i
<
12
;
i
+=
2
)
{
rxF_ext
[
j
]
=
rxF
[
i
];
rxF_ext
[
j
]
=
rxF
[
i
];
//printf("extract rb %d, re %d => rxF (%d,%d) rxF ext (%d,%d) addr %p\n",rb,i,*(short *)&rxF[i],*(1+(short*)&rxF[i]),*(short *)&rxF_ext[j],*(1+(short*)&rxF_ext[j]),rxF_ext);
dl_ch0_ext
[
j
]
=
dl_ch0
[
i
];
dl_ch0_ext
[
j
]
=
dl_ch0
[
i
];
//printf("rb %ld %p: dl_ch (%d,%d)\n",(rxF+i-&rxdataF[aarx][( (symbol*(frame_parms->ofdm_symbol_size)))]),rxF,
//((short*)&dl_ch0[i])[0],((short*)&dl_ch0[i])[1]);
j
++
;
j
++
;
}
}
}
dl_ch0_ext
+=
6
;
dl_ch0_ext
+=
6
;
rxF_ext
+=
6
;
rxF_ext
+=
6
;
...
@@ -2449,6 +2423,10 @@ unsigned short nr_dlsch_extract_rbs_single(int **rxdataF,
...
@@ -2449,6 +2423,10 @@ unsigned short nr_dlsch_extract_rbs_single(int **rxdataF,
dl_ch0
+=
12
;
dl_ch0
+=
12
;
rxF
+=
12
;
rxF
+=
12
;
k
+=
12
;
k
+=
12
;
if
(
k
>=
frame_parms
->
ofdm_symbol_size
)
{
k
=
k
-
(
frame_parms
->
ofdm_symbol_size
);
rxF
=
&
rxdataF
[
aarx
][
k
+
(
symbol
*
(
frame_parms
->
ofdm_symbol_size
))];
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment