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
zzha zzha
OpenXG-RAN
Commits
9db99b2f
Commit
9db99b2f
authored
Sep 14, 2023
by
Tsung-Yu Chan
Committed by
Tsung Yu Chan
Sep 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat / add ptrs module
parent
39e7e091
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
63 deletions
+61
-63
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
+7
-14
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+54
-49
No files found.
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
View file @
9db99b2f
...
...
@@ -486,6 +486,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
* 2) Interpolate PTRS estimated value in TD after all PTRS symbols
* 3) Compensated DMRS based estimated signal with PTRS estimation for slot
*********************************************************************/
// #define DEBUG_UL_PTRS
void
nr_pusch_ptrs_processing
(
PHY_VARS_gNB
*
gNB
,
NR_DL_FRAME_PARMS
*
frame_parms
,
nfapi_nr_pusch_pdu_t
*
rel15_ul
,
...
...
@@ -495,7 +496,6 @@ void nr_pusch_ptrs_processing(PHY_VARS_gNB *gNB,
uint32_t
nb_re_pusch
)
{
NR_gNB_PUSCH
*
pusch_vars
=
&
gNB
->
pusch_vars
[
ulsch_id
];
//#define DEBUG_UL_PTRS 1
int32_t
*
ptrs_re_symbol
=
NULL
;
int8_t
ret
=
0
;
uint8_t
symbInSlot
=
rel15_ul
->
start_symbol_index
+
rel15_ul
->
nr_of_symbols
;
...
...
@@ -573,13 +573,6 @@ void nr_pusch_ptrs_processing(PHY_VARS_gNB *gNB,
}
}
#ifdef DEBUG_UL_PTRS
LOG_M
(
"ptrsEstUl.m"
,
"est"
,
pusch_vars
->
ptrs_phase_per_slot
[
aarx
],
frame_parms
->
symbols_per_slot
,
1
,
1
);
LOG_M
(
"rxdataF_bf_ptrs_comp_ul.m"
,
"bf_ptrs_cmp"
,
&
gNB
->
pusch_vars
[
0
]
->
rxdataF_comp
[
aarx
][
rel15_ul
->
start_symbol_index
*
NR_NB_SC_PER_RB
*
rel15_ul
->
rb_size
],
rel15_ul
->
nr_of_symbols
*
NR_NB_SC_PER_RB
*
rel15_ul
->
rb_size
,
1
,
1
);
#endif
/*------------------------------------------------------------------------------------------------------- */
/* 3) Compensated DMRS based estimated signal with PTRS estimation */
/*--------------------------------------------------------------------------------------------------------*/
...
...
@@ -590,15 +583,15 @@ void nr_pusch_ptrs_processing(PHY_VARS_gNB *gNB,
#ifdef DEBUG_UL_PTRS
printf
(
"[PHY][UL][PTRS]: Rotate Symbol %2d with %d + j* %d
\n
"
,
i
,
phase_per_symbol
[
i
].
r
,
phase_per_symbol
[
i
].
i
);
#endif
rotate_cpx_vector
((
c16_t
*
)
&
pusch_vars
->
rxdataF_comp
[
aarx
][
(
i
*
rel15_ul
->
rb_size
*
NR_NB_SC_PER_RB
)
],
rotate_cpx_vector
((
c16_t
*
)
&
pusch_vars
->
rxdataF_comp
[
aarx
][
i
*
nb_re_pusch
],
&
phase_per_symbol
[
i
],
(
c16_t
*
)
&
pusch_vars
->
rxdataF_comp
[
aarx
][
(
i
*
rel15_ul
->
rb_size
*
NR_NB_SC_PER_RB
)
],
(
c16_t
*
)
&
pusch_vars
->
rxdataF_comp
[
aarx
][
i
*
nb_re_pusch
],
((
*
nb_rb
)
*
NR_NB_SC_PER_RB
),
15
);
}
// if not DMRS Symbol
}
// symbol loop
}
// last symbol check
}
//
Antenna loop
}
// if not DMRS Symbol
}
// symbol loop
}
// last symbol check
}
//
Antenna loop
}
uint32_t
calc_power
(
const
int16_t
*
x
,
const
uint32_t
size
)
{
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
9db99b2f
This diff is collapsed.
Click to expand it.
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