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
spbro
OpenXG-RAN
Commits
18c8a4a4
Commit
18c8a4a4
authored
Mar 12, 2020
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taking into account n_ta_offset in slot fep ul
parent
c15fb8c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
openair1/PHY/MODULATION/slot_fep_nr.c
openair1/PHY/MODULATION/slot_fep_nr.c
+18
-5
openair1/SCHED_NR/nr_ru_procedures.c
openair1/SCHED_NR/nr_ru_procedures.c
+4
-2
No files found.
openair1/PHY/MODULATION/slot_fep_nr.c
View file @
18c8a4a4
...
...
@@ -394,12 +394,13 @@ int nr_slot_fep_ul(NR_DL_FRAME_PARMS *frame_parms,
int
sample_offset
,
int
no_prefix
)
{
uint32_t
slot_offset
;
uint32_t
rxdata_offset
;
int32_t
slot_offset
,
rxdata_offset
;
unsigned
int
nb_prefix_samples
=
(
no_prefix
?
0
:
frame_parms
->
nb_prefix_samples
);
unsigned
int
nb_prefix_samples0
=
(
no_prefix
?
0
:
frame_parms
->
nb_prefix_samples0
);
int
tmp_dft_in
[
8192
]
__attribute__
((
aligned
(
32
)));
void
(
*
dft
)(
int16_t
*
,
int16_t
*
,
int
);
switch
(
frame_parms
->
ofdm_symbol_size
)
{
...
...
@@ -442,13 +443,25 @@ int nr_slot_fep_ul(NR_DL_FRAME_PARMS *frame_parms,
slot_offset
=
frame_parms
->
get_samples_slot_timestamp
(
Ns
,
frame_parms
,
0
);
if
(
symbol
==
0
)
rxdata_offset
=
slot_offset
+
nb_prefix_samples0
-
SOFFSET
;
else
rxdata_offset
=
slot_offset
+
nb_prefix_samples0
+
(
symbol
*
(
frame_parms
->
ofdm_symbol_size
+
nb_prefix_samples
))
-
SOFFSET
;
dft
((
int16_t
*
)
&
rxdata
[
rxdata_offset
],
if
(
sample_offset
>
rxdata_offset
)
{
memcpy
((
void
*
)
tmp_dft_in
,
(
void
*
)
&
rxdata
[
frame_parms
->
samples_per_frame
-
sample_offset
+
rxdata_offset
],
(
sample_offset
-
rxdata_offset
)
*
sizeof
(
int
));
memcpy
((
void
*
)
&
tmp_dft_in
[
sample_offset
-
rxdata_offset
],
(
void
*
)
&
rxdata
[
0
],
(
frame_parms
->
ofdm_symbol_size
-
sample_offset
+
rxdata_offset
)
*
sizeof
(
int
));
dft
((
int16_t
*
)
&
tmp_dft_in
,
(
int16_t
*
)
&
rxdataF
[
symbol
*
frame_parms
->
ofdm_symbol_size
],
1
);
}
else
dft
((
int16_t
*
)
&
rxdata
[
rxdata_offset
-
sample_offset
],
(
int16_t
*
)
&
rxdataF
[
symbol
*
frame_parms
->
ofdm_symbol_size
],
1
);
return
(
0
);
...
...
openair1/SCHED_NR/nr_ru_procedures.c
View file @
18c8a4a4
...
...
@@ -520,7 +520,7 @@ void nr_fep0(RU_t *ru, int first_half) {
ru
->
common
.
rxdataF
[
aa
],
l
,
proc
->
tti_rx
,
0
,
ru
->
N_TA_offset
,
0
);
}
}
...
...
@@ -642,6 +642,8 @@ void nr_fep_full(RU_t *ru, int slot) {
// if ((fp->frame_type == TDD) &&
// (subframe_select(fp,proc->tti_rx) != NR_UPLINK_SLOT)) return;
LOG_D
(
PHY
,
"In fep_full for slot = %d
\n
"
,
proc
->
tti_rx
);
start_meas
(
&
ru
->
ofdm_demod_stats
);
if
(
ru
->
idx
==
0
)
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_RU_FEPRX
,
1
);
...
...
@@ -655,7 +657,7 @@ void nr_fep_full(RU_t *ru, int slot) {
ru
->
common
.
rxdataF
[
aa
],
l
,
proc
->
tti_rx
,
0
,
ru
->
N_TA_offset
,
0
);
}
}
...
...
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