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
canghaiwuhen
OpenXG-RAN
Commits
5f194af9
Commit
5f194af9
authored
Mar 17, 2020
by
adk
Committed by
Thomas Schlichter
Apr 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimization and fixing PUSCH PTRS generation
parent
5e7d52d2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
20 deletions
+12
-20
openair1/PHY/NR_REFSIG/ptrs_nr.c
openair1/PHY/NR_REFSIG/ptrs_nr.c
+11
-19
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
+1
-1
No files found.
openair1/PHY/NR_REFSIG/ptrs_nr.c
View file @
5f194af9
...
@@ -240,14 +240,12 @@ uint8_t is_ptrs_subcarrier(uint16_t k, uint8_t K_ptrs, uint16_t n_rnti, uint16_t
...
@@ -240,14 +240,12 @@ uint8_t is_ptrs_subcarrier(uint16_t k, uint8_t K_ptrs, uint16_t n_rnti, uint16_t
else
else
k_RB_ref
=
n_rnti
%
(
N_RB
%
K_ptrs
);
k_RB_ref
=
n_rnti
%
(
N_RB
%
K_ptrs
);
while
(
k
>
sc
)
{
if
(
k
<
(
k_RE_ref
+
k_RB_ref
*
NR_NB_SC_PER_RB
+
start_sc
))
sc
=
(
start_sc
+
k_RE_ref
+
(
i
*
K_ptrs
+
k_RB_ref
)
*
NR_NB_SC_PER_RB
)
%
ofdm_symbol_size
;
return
0
;
i
++
;
}
if
(
k
==
sc
)
if
(
(
k
-
k_RE_ref
-
k_RB_ref
*
NR_NB_SC_PER_RB
-
start_sc
)
%
(
K_ptrs
*
NR_NB_SC_PER_RB
)
==
0
)
return
1
;
return
1
;
else
return
0
;
return
0
;
}
}
...
@@ -285,23 +283,17 @@ uint8_t is_ptrs_symbol(uint8_t l,
...
@@ -285,23 +283,17 @@ uint8_t is_ptrs_symbol(uint8_t l,
uint16_t
start_sc
,
uint16_t
start_sc
,
uint16_t
ofdm_symbol_size
,
uint16_t
ofdm_symbol_size
,
pusch_dmrs_type_t
pusch_dmrs_type
,
pusch_dmrs_type_t
pusch_dmrs_type
,
uint8_t
resourceElementOffset
)
{
uint8_t
resourceElementOffset
)
uint8_t
is_ptrs_freq
,
is_ptrs_time
;
{
int16_t
k_RE_ref
;
int16_t
k_RE_ref
=
get_kRE_ref
(
dmrs_antenna_port
,
pusch_dmrs_type
,
resourceElementOffset
);
is_ptrs_freq
=
0
;
uint8_t
is_ptrs_freq
=
is_ptrs_subcarrier
(
k
,
K_ptrs
,
n_rnti
,
N_RB
,
k_RE_ref
,
start_sc
,
ofdm_symbol_size
);
is_ptrs_time
=
0
;
k_RE_ref
=
get_kRE_ref
(
dmrs_antenna_port
,
pusch_dmrs_type
,
resourceElementOffset
);
is_ptrs_freq
=
is_ptrs_subcarrier
(
k
,
K_ptrs
,
n_rnti
,
N_RB
,
k_RE_ref
,
start_sc
,
ofdm_symbol_size
);
if
(
is_ptrs_freq
==
0
)
if
(
is_ptrs_freq
==
0
)
return
0
;
return
0
;
if
(((
ptrs_symbols
>>
l
)
&
1
)
==
1
)
if
(((
ptrs_symbols
>>
l
)
&
1
)
==
1
)
is_ptrs_time
=
1
;
if
(
is_ptrs_time
&&
is_ptrs_freq
)
return
1
;
return
1
;
else
return
0
;
return
0
;
}
}
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
View file @
5f194af9
...
@@ -446,7 +446,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
...
@@ -446,7 +446,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
}
else
if
(
is_ptrs
==
1
)
{
}
else
if
(
is_ptrs
==
1
)
{
if
(
k
==
start_sc
){
if
(
k
==
start_sc
){
nr_modulation
(
pusch_dmrs
[
l
][
0
],
harq_process_ul_ue
->
nb_rb
/
2
,
DMRS_MOD_ORDER
,
mod_ptrs
);
nr_modulation
(
pusch_dmrs
[
l
][
0
],
harq_process_ul_ue
->
nb_rb
,
DMRS_MOD_ORDER
,
mod_ptrs
);
}
}
((
int16_t
*
)
txdataF
[
ap
])[(
sample_offsetF
)
<<
1
]
=
(
beta_ptrs
*
AMP
*
mod_ptrs
[
ptrs_idx
<<
1
])
>>
15
;
((
int16_t
*
)
txdataF
[
ap
])[(
sample_offsetF
)
<<
1
]
=
(
beta_ptrs
*
AMP
*
mod_ptrs
[
ptrs_idx
<<
1
])
>>
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