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
e74b9a5c
Commit
e74b9a5c
authored
Aug 28, 2023
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove a frame param useless attribute
parent
97b08440
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
35 deletions
+17
-35
nfapi/oai_integration/nfapi_pnf.c
nfapi/oai_integration/nfapi_pnf.c
+1
-3
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
+1
-2
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
+2
-13
openair1/PHY/NR_UE_TRANSPORT/nr_pbch.c
openair1/PHY/NR_UE_TRANSPORT/nr_pbch.c
+12
-12
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+0
-2
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+0
-1
openair1/SIMULATION/NR_UE_PHY/unit_tests/src/pss_util_test.c
openair1/SIMULATION/NR_UE_PHY/unit_tests/src/pss_util_test.c
+1
-2
No files found.
nfapi/oai_integration/nfapi_pnf.c
View file @
e74b9a5c
...
@@ -879,7 +879,6 @@ int config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfap
...
@@ -879,7 +879,6 @@ int config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfap
if
(
req
->
sch_config
.
physical_cell_id
.
tl
.
tag
==
NFAPI_SCH_CONFIG_PHYSICAL_CELL_ID_TAG
)
{
if
(
req
->
sch_config
.
physical_cell_id
.
tl
.
tag
==
NFAPI_SCH_CONFIG_PHYSICAL_CELL_ID_TAG
)
{
fp
->
Nid_cell
=
req
->
sch_config
.
physical_cell_id
.
value
;
fp
->
Nid_cell
=
req
->
sch_config
.
physical_cell_id
.
value
;
fp
->
nushift
=
fp
->
Nid_cell
%
6
;
num_tlv
++
;
num_tlv
++
;
}
}
...
@@ -1049,8 +1048,7 @@ int nr_config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, n
...
@@ -1049,8 +1048,7 @@ int nr_config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, n
}
}
if
(
req
->
cell_config
.
phy_cell_id
.
tl
.
tag
==
NFAPI_NR_CONFIG_PHY_CELL_ID_TAG
)
{
if
(
req
->
cell_config
.
phy_cell_id
.
tl
.
tag
==
NFAPI_NR_CONFIG_PHY_CELL_ID_TAG
)
{
fp
->
Nid_cell
=
req
->
cell_config
.
phy_cell_id
.
value
;
//sch_config.physical_cell_id.value;
fp
->
Nid_cell
=
req
->
cell_config
.
phy_cell_id
.
value
;
// sch_config.physical_cell_id.value;
fp
->
nushift
=
fp
->
Nid_cell
%
6
;
num_tlv
++
;
num_tlv
++
;
}
}
...
...
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
View file @
e74b9a5c
...
@@ -138,8 +138,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
...
@@ -138,8 +138,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
c16_t
**
ul_ch_estimates
=
(
c16_t
**
)
pusch_vars
->
ul_ch_estimates
;
c16_t
**
ul_ch_estimates
=
(
c16_t
**
)
pusch_vars
->
ul_ch_estimates
;
const
int
symbolSize
=
gNB
->
frame_parms
.
ofdm_symbol_size
;
const
int
symbolSize
=
gNB
->
frame_parms
.
ofdm_symbol_size
;
const
int
soffset
=
(
Ns
&
3
)
*
gNB
->
frame_parms
.
symbols_per_slot
*
symbolSize
;
const
int
soffset
=
(
Ns
&
3
)
*
gNB
->
frame_parms
.
symbols_per_slot
*
symbolSize
;
const
int
nushift
=
(
p
>>
1
)
&
1
;
const
int
nushift
=
(
p
>>
1
)
&
1
;
gNB
->
frame_parms
.
nushift
=
nushift
;
int
ch_offset
=
symbolSize
*
symbol
;
int
ch_offset
=
symbolSize
*
symbol
;
const
int
symbol_offset
=
symbolSize
*
symbol
;
const
int
symbol_offset
=
symbolSize
*
symbol
;
...
...
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
View file @
e74b9a5c
...
@@ -635,18 +635,13 @@ int nr_pbch_dmrs_correlation(PHY_VARS_NR_UE *ue,
...
@@ -635,18 +635,13 @@ int nr_pbch_dmrs_correlation(PHY_VARS_NR_UE *ue,
c16_t
rxdataF
[][
ue
->
frame_parms
.
samples_per_slot_wCP
])
c16_t
rxdataF
[][
ue
->
frame_parms
.
samples_per_slot_wCP
])
{
{
int
pilot
[
200
]
__attribute__
((
aligned
(
16
)));
int
pilot
[
200
]
__attribute__
((
aligned
(
16
)));
unsigned
short
k
;
unsigned
int
pilot_cnt
;
unsigned
int
pilot_cnt
;
int16_t
ch
[
2
],
*
pil
,
*
rxF
;
int16_t
ch
[
2
],
*
pil
,
*
rxF
;
int
symbol_offset
;
int
symbol_offset
;
uint8_t
nushift
;
uint8_t
ssb_index
=
current_ssb
->
i_ssb
;
uint8_t
ssb_index
=
current_ssb
->
i_ssb
;
uint8_t
n_hf
=
current_ssb
->
n_hf
;
uint8_t
n_hf
=
current_ssb
->
n_hf
;
nushift
=
ue
->
frame_parms
.
Nid_cell
%
4
;
ue
->
frame_parms
.
nushift
=
nushift
;
unsigned
int
ssb_offset
=
ue
->
frame_parms
.
first_carrier_offset
+
ue
->
frame_parms
.
ssb_start_subcarrier
;
unsigned
int
ssb_offset
=
ue
->
frame_parms
.
first_carrier_offset
+
ue
->
frame_parms
.
ssb_start_subcarrier
;
if
(
ssb_offset
>=
ue
->
frame_parms
.
ofdm_symbol_size
)
ssb_offset
-=
ue
->
frame_parms
.
ofdm_symbol_size
;
if
(
ssb_offset
>=
ue
->
frame_parms
.
ofdm_symbol_size
)
ssb_offset
-=
ue
->
frame_parms
.
ofdm_symbol_size
;
...
@@ -656,8 +651,7 @@ int nr_pbch_dmrs_correlation(PHY_VARS_NR_UE *ue,
...
@@ -656,8 +651,7 @@ int nr_pbch_dmrs_correlation(PHY_VARS_NR_UE *ue,
symbol_offset
=
ue
->
frame_parms
.
ofdm_symbol_size
*
symbol
;
symbol_offset
=
ue
->
frame_parms
.
ofdm_symbol_size
*
symbol
;
unsigned
int
k
=
ue
->
frame_parms
.
Nid_cell
%
4
;
k
=
nushift
;
#ifdef DEBUG_PBCH
#ifdef DEBUG_PBCH
printf
(
"PBCH DMRS Correlation : gNB_id %d , OFDM size %d, Ncp=%d, Ns=%d, k=%d symbol %d
\n
"
,
proc
->
gNB_id
,
ue
->
frame_parms
.
ofdm_symbol_size
,
ue
->
frame_parms
.
Ncp
,
Ns
,
k
,
symbol
);
printf
(
"PBCH DMRS Correlation : gNB_id %d , OFDM size %d, Ncp=%d, Ns=%d, k=%d symbol %d
\n
"
,
proc
->
gNB_id
,
ue
->
frame_parms
.
ofdm_symbol_size
,
ue
->
frame_parms
.
Ncp
,
Ns
,
k
,
symbol
);
...
@@ -805,8 +799,7 @@ int nr_pbch_channel_estimation(PHY_VARS_NR_UE *ue,
...
@@ -805,8 +799,7 @@ int nr_pbch_channel_estimation(PHY_VARS_NR_UE *ue,
//int slot_pbch;
//int slot_pbch;
uint8_t
nushift
;
uint8_t
nushift
;
nushift
=
ue
->
frame_parms
.
Nid_cell
%
4
;
nushift
=
ue
->
frame_parms
.
Nid_cell
%
4
;
ue
->
frame_parms
.
nushift
=
nushift
;
unsigned
int
ssb_offset
=
ue
->
frame_parms
.
first_carrier_offset
+
ue
->
frame_parms
.
ssb_start_subcarrier
;
unsigned
int
ssb_offset
=
ue
->
frame_parms
.
first_carrier_offset
+
ue
->
frame_parms
.
ssb_start_subcarrier
;
if
(
ssb_offset
>=
ue
->
frame_parms
.
ofdm_symbol_size
)
ssb_offset
-=
ue
->
frame_parms
.
ofdm_symbol_size
;
if
(
ssb_offset
>=
ue
->
frame_parms
.
ofdm_symbol_size
)
ssb_offset
-=
ue
->
frame_parms
.
ofdm_symbol_size
;
...
@@ -1707,12 +1700,8 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
...
@@ -1707,12 +1700,8 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
uint8_t
nushift
=
0
;
uint8_t
nushift
=
0
;
if
(
config_type
==
NFAPI_NR_DMRS_TYPE1
)
{
if
(
config_type
==
NFAPI_NR_DMRS_TYPE1
)
{
nushift
=
(
p
>>
1
)
&
1
;
nushift
=
(
p
>>
1
)
&
1
;
if
(
p
<
4
)
ue
->
frame_parms
.
nushift
=
nushift
;
}
else
{
// NFAPI_NR_DMRS_TYPE2
}
else
{
// NFAPI_NR_DMRS_TYPE2
nushift
=
delta
;
nushift
=
delta
;
if
(
p
<
6
)
ue
->
frame_parms
.
nushift
=
nushift
;
}
}
for
(
int
aarx
=
0
;
aarx
<
ue
->
frame_parms
.
nb_antennas_rx
;
aarx
++
)
{
for
(
int
aarx
=
0
;
aarx
<
ue
->
frame_parms
.
nb_antennas_rx
;
aarx
++
)
{
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_pbch.c
View file @
e74b9a5c
...
@@ -57,10 +57,11 @@ static uint16_t nr_pbch_extract(uint32_t rxdataF_sz,
...
@@ -57,10 +57,11 @@ static uint16_t nr_pbch_extract(uint32_t rxdataF_sz,
struct
complex16
dl_ch_estimates_ext
[][
PBCH_MAX_RE_PER_SYMBOL
],
struct
complex16
dl_ch_estimates_ext
[][
PBCH_MAX_RE_PER_SYMBOL
],
uint32_t
symbol
,
uint32_t
symbol
,
uint32_t
s_offset
,
uint32_t
s_offset
,
NR_DL_FRAME_PARMS
*
frame_parms
)
{
NR_DL_FRAME_PARMS
*
frame_parms
,
int
nushiftmod4
)
{
uint16_t
rb
;
uint16_t
rb
;
uint8_t
i
,
j
,
aarx
;
uint8_t
i
,
j
,
aarx
;
int
nushiftmod4
=
frame_parms
->
nushift
;
AssertFatal
(
symbol
>=
1
&&
symbol
<
5
,
AssertFatal
(
symbol
>=
1
&&
symbol
<
5
,
"symbol %d illegal for PBCH extraction
\n
"
,
"symbol %d illegal for PBCH extraction
\n
"
,
symbol
);
symbol
);
...
@@ -395,12 +396,12 @@ int nr_rx_pbch(PHY_VARS_NR_UE *ue,
...
@@ -395,12 +396,12 @@ int nr_rx_pbch(PHY_VARS_NR_UE *ue,
{
{
int
max_h
=
0
;
int
max_h
=
0
;
int
symbol
;
int
symbol
;
//uint8_t pbch_a[64];
// uint8_t pbch_a[64];
//FT ?? cppcheck doesn't like pbch_a allocation because of line 525..and i don't get what this variable is for..
// FT ?? cppcheck doesn't like pbch_a allocation because of line 525..and i don't get what this variable is for..
//uint8_t *pbch_a = malloc(sizeof(uint8_t) * NR_POLAR_PBCH_PAYLOAD_BITS);
// uint8_t *pbch_a = malloc(sizeof(uint8_t) * NR_POLAR_PBCH_PAYLOAD_BITS);
uint8_t
nushift
;
uint16_t
M
;
uint8_t
Lmax
=
frame_parms
->
Lmax
;
uint8_t
Lmax
=
frame_parms
->
Lmax
;
int
M
=
NR_POLAR_PBCH_E
;
int
nushift
=
(
Lmax
==
4
)
?
i_ssb
&
3
:
i_ssb
&
7
;
//uint16_t crc;
//uint16_t crc;
//unsigned short idx_demod =0;
//unsigned short idx_demod =0;
uint32_t
decoderState
=
0
;
uint32_t
decoderState
=
0
;
...
@@ -440,7 +441,8 @@ int nr_rx_pbch(PHY_VARS_NR_UE *ue,
...
@@ -440,7 +441,8 @@ int nr_rx_pbch(PHY_VARS_NR_UE *ue,
dl_ch_estimates_ext
,
dl_ch_estimates_ext
,
symbol
,
symbol
,
symbol_offset
,
symbol_offset
,
frame_parms
);
frame_parms
,
nushift
);
#ifdef DEBUG_PBCH
#ifdef DEBUG_PBCH
LOG_I
(
PHY
,
"[PHY] PBCH Symbol %d ofdm size %d
\n
"
,
symbol
,
frame_parms
->
ofdm_symbol_size
);
LOG_I
(
PHY
,
"[PHY] PBCH Symbol %d ofdm size %d
\n
"
,
symbol
,
frame_parms
->
ofdm_symbol_size
);
LOG_I
(
PHY
,
"[PHY] PBCH starting channel_level
\n
"
);
LOG_I
(
PHY
,
"[PHY] PBCH starting channel_level
\n
"
);
...
@@ -496,9 +498,7 @@ int nr_rx_pbch(PHY_VARS_NR_UE *ue,
...
@@ -496,9 +498,7 @@ int nr_rx_pbch(PHY_VARS_NR_UE *ue,
printf
(
"pbch rx llr %d
\n
"
,
*
(
pbch_e_rx
+
cnt
));
printf
(
"pbch rx llr %d
\n
"
,
*
(
pbch_e_rx
+
cnt
));
#endif
#endif
//un-scrambling
// un-scrambling
M
=
NR_POLAR_PBCH_E
;
nushift
=
(
Lmax
==
4
)
?
i_ssb
&
3
:
i_ssb
&
7
;
uint32_t
unscrambling_mask
=
(
Lmax
==
64
)
?
0x100006D
:
0x1000041
;
uint32_t
unscrambling_mask
=
(
Lmax
==
64
)
?
0x100006D
:
0x1000041
;
uint32_t
pbch_a_interleaved
=
0
;
uint32_t
pbch_a_interleaved
=
0
;
uint32_t
pbch_a_prime
=
0
;
uint32_t
pbch_a_prime
=
0
;
...
...
openair1/PHY/defs_nr_common.h
View file @
e74b9a5c
...
@@ -229,8 +229,6 @@ struct NR_DL_FRAME_PARMS {
...
@@ -229,8 +229,6 @@ struct NR_DL_FRAME_PARMS {
c16_t
timeshift_symbol_rotation
[
4096
*
2
]
__attribute__
((
aligned
(
16
)));
c16_t
timeshift_symbol_rotation
[
4096
*
2
]
__attribute__
((
aligned
(
16
)));
/// Table used to apply the delay compensation in UL
/// Table used to apply the delay compensation in UL
c16_t
ul_delay_table
[
2
*
MAX_UL_DELAY_COMP
+
1
][
NR_MAX_OFDM_SYMBOL_SIZE
*
2
];
c16_t
ul_delay_table
[
2
*
MAX_UL_DELAY_COMP
+
1
][
NR_MAX_OFDM_SYMBOL_SIZE
*
2
];
/// shift of pilot position in one RB
uint8_t
nushift
;
/// SRS configuration from TS 38.331 RRC
/// SRS configuration from TS 38.331 RRC
SRS_NR
srs_nr
;
SRS_NR
srs_nr
;
/// Power used by SSB in order to estimate signal strength and path loss
/// Power used by SSB in order to estimate signal strength and path loss
...
...
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
e74b9a5c
...
@@ -495,7 +495,6 @@ int main(int argc, char **argv)
...
@@ -495,7 +495,6 @@ int main(int argc, char **argv)
frame_parms
->
nb_antenna_ports_gNB
=
n_tx
;
frame_parms
->
nb_antenna_ports_gNB
=
n_tx
;
frame_parms
->
N_RB_DL
=
N_RB_DL
;
frame_parms
->
N_RB_DL
=
N_RB_DL
;
frame_parms
->
Nid_cell
=
Nid_cell
;
frame_parms
->
Nid_cell
=
Nid_cell
;
frame_parms
->
nushift
=
Nid_cell
%
4
;
frame_parms
->
ssb_type
=
nr_ssb_type_C
;
frame_parms
->
ssb_type
=
nr_ssb_type_C
;
frame_parms
->
freq_range
=
mu
<
2
?
nr_FR1
:
nr_FR2
;
frame_parms
->
freq_range
=
mu
<
2
?
nr_FR1
:
nr_FR2
;
...
...
openair1/SIMULATION/NR_UE_PHY/unit_tests/src/pss_util_test.c
View file @
e74b9a5c
...
@@ -233,8 +233,7 @@ int init_test(unsigned char N_tx, unsigned char N_rx, unsigned char transmission
...
@@ -233,8 +233,7 @@ int init_test(unsigned char N_tx, unsigned char N_rx, unsigned char transmission
frame_parms
->
N_RB_DL
=
N_RB_DL
;
//50 for 10MHz and 25 for 5 MHz
frame_parms
->
N_RB_DL
=
N_RB_DL
;
//50 for 10MHz and 25 for 5 MHz
frame_parms
->
N_RB_UL
=
N_RB_DL
;
frame_parms
->
N_RB_UL
=
N_RB_DL
;
frame_parms
->
Ncp
=
extended_prefix_flag
;
frame_parms
->
Ncp
=
extended_prefix_flag
;
frame_parms
->
Nid_cell
=
Nid_cell
;
frame_parms
->
Nid_cell
=
Nid_cell
;
frame_parms
->
nushift
=
Nid_cell
%
6
;
frame_parms
->
nb_antennas_tx
=
N_tx
;
frame_parms
->
nb_antennas_tx
=
N_tx
;
frame_parms
->
nb_antennas_rx
=
N_rx
;
frame_parms
->
nb_antennas_rx
=
N_rx
;
frame_parms
->
frame_type
=
frame_type
;
frame_parms
->
frame_type
=
frame_type
;
...
...
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