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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
lizhongxiao
OpenXG-RAN
Commits
59cb6021
Commit
59cb6021
authored
Aug 29, 2022
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review changes
parent
63106069
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
134 deletions
+80
-134
openair1/PHY/MODULATION/ofdm_mod.c
openair1/PHY/MODULATION/ofdm_mod.c
+20
-26
openair1/PHY/MODULATION/slot_fep_nr.c
openair1/PHY/MODULATION/slot_fep_nr.c
+48
-89
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
+12
-19
No files found.
openair1/PHY/MODULATION/ofdm_mod.c
View file @
59cb6021
...
@@ -348,39 +348,33 @@ void apply_nr_rotation(NR_DL_FRAME_PARMS *fp,
...
@@ -348,39 +348,33 @@ void apply_nr_rotation(NR_DL_FRAME_PARMS *fp,
{
{
int
symb_offset
=
(
slot
%
fp
->
slots_per_subframe
)
*
fp
->
symbols_per_slot
;
int
symb_offset
=
(
slot
%
fp
->
slots_per_subframe
)
*
fp
->
symbols_per_slot
;
c16_t
*
symbol_rotation
=
fp
->
symbol_rotation
[
0
];
c16_t
*
symbol_rotation
=
fp
->
symbol_rotation
[
0
]
+
symb_offset
;
for
(
int
sidx
=
0
;
sidx
<
nsymb
;
sidx
++
)
{
for
(
int
sidx
=
first_symbol
;
sidx
<
first_symbol
+
nsymb
;
sidx
++
)
{
c16_t
*
this_rotation
=
symbol_rotation
+
sidx
;
c16_t
*
this_symbol
=
((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
;
LOG_D
(
PHY
,
"Rotating symbol %d, slot %d, symbol_subframe_index %d (%d,%d)
\n
"
,
LOG_D
(
PHY
,
"Rotating symbol %d, slot %d, symbol_subframe_index %d (%d,%d)
\n
"
,
first_symbol
+
sidx
,
sidx
,
slot
,
slot
,
sidx
+
first_symbol
+
symb_offset
,
sidx
+
symb_offset
,
symbol_rotation
[
sidx
+
first_symbol
+
symb_offset
].
r
,
this_rotation
->
r
,
symbol_rotation
[
sidx
+
first_symbol
+
symb_offset
].
i
);
this_rotation
->
i
);
if
(
fp
->
N_RB_DL
&
1
)
{
if
(
fp
->
N_RB_DL
&
1
)
{
rotate_cpx_vector
(((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
,
rotate_cpx_vector
(
this_symbol
,
this_rotation
,
this_symbol
,
symbol_rotation
+
sidx
+
first_symbol
+
symb_offset
,
(
fp
->
N_RB_DL
+
1
)
*
6
,
15
);
((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
,
rotate_cpx_vector
(
this_symbol
+
fp
->
first_carrier_offset
-
6
,
(
fp
->
N_RB_DL
+
1
)
*
6
,
this_rotation
,
15
);
this_symbol
+
fp
->
first_carrier_offset
-
6
,
rotate_cpx_vector
(((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
+
fp
->
first_carrier_offset
-
6
,
(
fp
->
N_RB_DL
+
1
)
*
6
,
15
);
symbol_rotation
+
sidx
+
first_symbol
+
symb_offset
,
((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
+
fp
->
first_carrier_offset
-
6
,
(
fp
->
N_RB_DL
+
1
)
*
6
,
15
);
}
else
{
}
else
{
rotate_cpx_vector
(((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
,
rotate_cpx_vector
(
this_symbol
,
this_rotation
,
this_symbol
,
symbol_rotation
+
sidx
+
first_symbol
+
symb_offset
,
fp
->
N_RB_DL
*
6
,
15
);
((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
,
rotate_cpx_vector
(
this_symbol
+
fp
->
first_carrier_offset
,
fp
->
N_RB_DL
*
6
,
this_rotation
,
15
);
this_symbol
+
fp
->
first_carrier_offset
,
rotate_cpx_vector
(((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
+
fp
->
first_carrier_offset
,
fp
->
N_RB_DL
*
6
,
15
);
symbol_rotation
+
sidx
+
first_symbol
+
symb_offset
,
((
c16_t
*
)
txdataF
)
+
sidx
*
fp
->
ofdm_symbol_size
+
fp
->
first_carrier_offset
,
fp
->
N_RB_DL
*
6
,
15
);
}
}
}
}
}
}
...
...
openair1/PHY/MODULATION/slot_fep_nr.c
View file @
59cb6021
This diff is collapsed.
Click to expand it.
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
View file @
59cb6021
...
@@ -597,34 +597,27 @@ uint8_t nr_ue_pusch_common_procedures(PHY_VARS_NR_UE *UE,
...
@@ -597,34 +597,27 @@ uint8_t nr_ue_pusch_common_procedures(PHY_VARS_NR_UE *UE,
int
symb_offset
=
(
slot
%
frame_parms
->
slots_per_subframe
)
*
frame_parms
->
symbols_per_slot
;
int
symb_offset
=
(
slot
%
frame_parms
->
slots_per_subframe
)
*
frame_parms
->
symbols_per_slot
;
for
(
ap
=
0
;
ap
<
n_antenna_ports
;
ap
++
)
{
for
(
ap
=
0
;
ap
<
n_antenna_ports
;
ap
++
)
{
for
(
int
s
=
0
;
s
<
NR_NUMBER_OF_SYMBOLS_PER_SLOT
;
s
++
){
for
(
int
s
=
0
;
s
<
NR_NUMBER_OF_SYMBOLS_PER_SLOT
;
s
++
){
c16_t
rot
=
((
c16_t
*
)
frame_parms
->
symbol_rotation
[
1
])[
s
+
symb_offset
];
c16_t
*
this_symbol
=
(
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
];
c16_t
rot
=
frame_parms
->
symbol_rotation
[
1
][
s
+
symb_offset
];
LOG_D
(
PHY
,
"rotating txdataF symbol %d (%d) => (%d.%d)
\n
"
,
LOG_D
(
PHY
,
"rotating txdataF symbol %d (%d) => (%d.%d)
\n
"
,
s
,
s
,
s
+
symb_offset
,
s
+
symb_offset
,
rot
.
r
,
rot
.
i
);
rot
.
r
,
rot
.
i
);
if
(
frame_parms
->
N_RB_UL
&
1
)
{
if
(
frame_parms
->
N_RB_UL
&
1
)
{
rotate_cpx_vector
((
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
],
rotate_cpx_vector
(
this_symbol
,
&
rot
,
this_symbol
,
(
frame_parms
->
N_RB_UL
+
1
)
*
6
,
15
);
rotate_cpx_vector
(
this_symbol
+
frame_parms
->
first_carrier_offset
-
6
,
&
rot
,
&
rot
,
(
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
],
this_symbol
+
frame_parms
->
first_carrier_offset
-
6
,
(
frame_parms
->
N_RB_UL
+
1
)
*
6
,
(
frame_parms
->
N_RB_UL
+
1
)
*
6
,
15
);
15
);
rotate_cpx_vector
((
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
+
frame_parms
->
first_carrier_offset
-
6
],
&
rot
,
(
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
+
frame_parms
->
first_carrier_offset
-
6
],
(
frame_parms
->
N_RB_UL
+
1
)
*
6
,
15
);
}
else
{
}
else
{
rotate_cpx_vector
((
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
],
rotate_cpx_vector
(
this_symbol
,
&
rot
,
this_symbol
,
&
rot
,
frame_parms
->
N_RB_UL
*
6
,
15
);
(
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
],
rotate_cpx_vector
(
this_symbol
+
frame_parms
->
first_carrier_offset
,
frame_parms
->
N_RB_UL
*
6
,
15
);
rotate_cpx_vector
((
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
+
frame_parms
->
first_carrier_offset
],
&
rot
,
&
rot
,
(
c16_t
*
)
&
txdataF
[
ap
][
frame_parms
->
ofdm_symbol_size
*
s
+
frame_parms
->
first_carrier_offset
],
this_symbol
+
frame_parms
->
first_carrier_offset
,
frame_parms
->
N_RB_UL
*
6
,
frame_parms
->
N_RB_UL
*
6
,
15
);
15
);
}
}
}
}
}
}
...
...
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