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
302c39fa
Commit
302c39fa
authored
Mar 02, 2025
by
francescomani
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/limit-amp-param' into integration_2025_w09
parents
ce4dfe0f
8c224f68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
+5
-5
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+1
-1
No files found.
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
View file @
302c39fa
...
...
@@ -97,7 +97,7 @@ typedef union {
c16_t
s
[
2
];
}
amp_t
;
static
inline
int
interleave_with_0_signal_first
(
c16_t
*
output
,
c16_t
*
mod_dmrs
,
const
int
amp_dmrs
,
int
sz
)
static
inline
int
interleave_with_0_signal_first
(
c16_t
*
output
,
c16_t
*
mod_dmrs
,
const
int
16_t
amp_dmrs
,
int
sz
)
{
#ifdef DEBUG_DLSCH_MAPPING
printf
(
"doing DMRS pattern for port 0 : d0 0 d1 0 ... dNm2 0 dNm1 0 (ul %d, rr %d)
\n
"
,
upper_limit
,
remaining_re
);
...
...
@@ -149,7 +149,7 @@ static inline int interleave_with_0_signal_first(c16_t *output, c16_t *mod_dmrs,
return
0
;
}
static
inline
int
interleave_with_0_start_with_0
(
c16_t
*
output
,
c16_t
*
mod_dmrs
,
const
int
amp_dmrs
,
int
sz
)
static
inline
int
interleave_with_0_start_with_0
(
c16_t
*
output
,
c16_t
*
mod_dmrs
,
const
int
16_t
amp_dmrs
,
int
sz
)
{
#ifdef DEBUG_DLSCH_MAPPING
printf
(
"doing DMRS pattern for port 2 : 0 d0 0 d1 ... 0 dNm2 0 dNm1
\n
"
);
...
...
@@ -258,7 +258,7 @@ static inline int interleave_signals(c16_t *output, c16_t *signal1, const int am
static
inline
int
dmrs_case00
(
c16_t
*
output
,
c16_t
*
txl
,
c16_t
*
mod_dmrs
,
const
int
amp_dmrs
,
const
int
16_t
amp_dmrs
,
const
int
amp
,
int
sz
,
int
start_sc
,
...
...
@@ -349,7 +349,7 @@ static inline int do_onelayer(NR_DL_FRAME_PARMS *frame_parms,
uint16_t
dlPtrsSymPos
,
int
n_ptrs
,
int
amp
,
int
amp_dmrs
,
int
16_t
amp_dmrs
,
int
l_prime
,
nfapi_nr_dmrs_type_e
dmrs_Type
,
c16_t
*
dmrs_start
)
...
...
@@ -559,7 +559,7 @@ static int do_one_dlsch(unsigned char *input_ptr, PHY_VARS_gNB *gNB, NR_gNB_DLSC
const
int
symbol_sz
=
frame_parms
->
ofdm_symbol_size
;
const
int
dmrs_Type
=
rel15
->
dmrsConfigType
;
const
int
nb_re_dmrs
=
rel15
->
numDmrsCdmGrpsNoData
*
(
rel15
->
dmrsConfigType
==
NFAPI_NR_DMRS_TYPE1
?
6
:
4
);
const
int
amp_dmrs
=
(
int
)((
double
)
amp
*
sqrt
(
rel15
->
numDmrsCdmGrpsNoData
)
);
// 3GPP TS 38.214 Section 4.1: Table 4.1-1
const
int
16_t
amp_dmrs
=
min
((
double
)
amp
*
sqrt
(
rel15
->
numDmrsCdmGrpsNoData
),
INT16_MAX
);
// 3GPP TS 38.214 Section 4.1: Table 4.1-1
LOG_D
(
PHY
,
"pdsch: BWPStart %d, BWPSize %d, rbStart %d, rbsize %d
\n
"
,
rel15
->
BWPStart
,
...
...
openair2/GNB_APP/gnb_config.c
View file @
302c39fa
...
...
@@ -1014,7 +1014,7 @@ void RCconfig_NR_L1(void)
gNB
->
L1_rx_thread_core
=
*
(
L1_ParamList
.
paramarray
[
j
][
L1_RX_THREAD_CORE
].
iptr
);
gNB
->
L1_tx_thread_core
=
*
(
L1_ParamList
.
paramarray
[
j
][
L1_TX_THREAD_CORE
].
iptr
);
LOG_I
(
NR_PHY
,
"L1_RX_THREAD_CORE %d (%d)
\n
"
,
*
(
L1_ParamList
.
paramarray
[
j
][
L1_RX_THREAD_CORE
].
iptr
),
L1_RX_THREAD_CORE
);
gNB
->
TX_AMP
=
(
int16_t
)(
32767
.
0
/
pow
(
10
.
0
,
.
05
*
(
double
)(
*
L1_ParamList
.
paramarray
[
j
][
L1_TX_AMP_BACKOFF_dB
].
uptr
))
);
gNB
->
TX_AMP
=
min
(
32767
.
0
/
pow
(
10
.
0
,
.
05
*
(
double
)(
*
L1_ParamList
.
paramarray
[
j
][
L1_TX_AMP_BACKOFF_dB
].
uptr
)),
INT16_MAX
);
gNB
->
phase_comp
=
*
L1_ParamList
.
paramarray
[
j
][
L1_PHASE_COMP
].
uptr
;
gNB
->
dmrs_num_antennas_per_thread
=
*
(
L1_ParamList
.
paramarray
[
j
][
NUM_ANTENNAS_PER_THREAD
].
uptr
);
LOG_I
(
NR_PHY
,
"TX_AMP = %d (-%d dBFS)
\n
"
,
gNB
->
TX_AMP
,
*
L1_ParamList
.
paramarray
[
j
][
L1_TX_AMP_BACKOFF_dB
].
uptr
);
...
...
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