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
wangjie
OpenXG-RAN
Commits
e72e1d87
Commit
e72e1d87
authored
Feb 03, 2020
by
adk
Committed by
Thomas Schlichter
Mar 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added PUSCH PTRS structs (UE + gNB) and parameters initialization
parent
6c8938d5
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
87 additions
and
28 deletions
+87
-28
openair1/PHY/INIT/nr_init.c
openair1/PHY/INIT/nr_init.c
+16
-3
openair1/PHY/INIT/nr_init_ue.c
openair1/PHY/INIT/nr_init_ue.c
+22
-3
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
+1
-1
openair1/PHY/NR_TRANSPORT/nr_dlsch_tools.c
openair1/PHY/NR_TRANSPORT/nr_dlsch_tools.c
+1
-1
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+5
-5
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
+1
-1
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
+6
-6
openair1/PHY/defs_gNB.h
openair1/PHY/defs_gNB.h
+3
-2
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+3
-1
openair1/PHY/impl_defs_nr.h
openair1/PHY/impl_defs_nr.h
+27
-3
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+2
-2
No files found.
openair1/PHY/INIT/nr_init.c
View file @
e72e1d87
...
@@ -85,6 +85,8 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
...
@@ -85,6 +85,8 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
nfapi_nr_config_request_t
*
cfg
=
&
gNB
->
gNB_config
;
nfapi_nr_config_request_t
*
cfg
=
&
gNB
->
gNB_config
;
NR_gNB_COMMON
*
const
common_vars
=
&
gNB
->
common_vars
;
NR_gNB_COMMON
*
const
common_vars
=
&
gNB
->
common_vars
;
NR_gNB_PUSCH
**
const
pusch_vars
=
gNB
->
pusch_vars
;
NR_gNB_PUSCH
**
const
pusch_vars
=
gNB
->
pusch_vars
;
dmrs_UplinkConfig_t
*
dmrs_Uplink_Config
=
&
gNB
->
pusch_config
.
dmrs_UplinkConfig
;
ptrs_UplinkConfig_t
*
ptrs_Uplink_Config
=
&
gNB
->
pusch_config
.
dmrs_UplinkConfig
.
ptrs_UplinkConfig
;
/*LTE_eNB_SRS *const srs_vars = gNB->srs_vars;
/*LTE_eNB_SRS *const srs_vars = gNB->srs_vars;
LTE_eNB_PRACH *const prach_vars = &gNB->prach_vars;*/
LTE_eNB_PRACH *const prach_vars = &gNB->prach_vars;*/
...
@@ -154,9 +156,9 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
...
@@ -154,9 +156,9 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
}
}
//------------- config PUSCH DMRS parameters(to be updated from RRC)--------------//
//------------- config PUSCH DMRS parameters(to be updated from RRC)--------------//
gNB
->
dmrs_UplinkConfig
.
pusch_dmrs_type
=
pusch_dmrs_type1
;
dmrs_Uplink_Config
->
pusch_dmrs_type
=
pusch_dmrs_type1
;
gNB
->
dmrs_UplinkConfig
.
pusch_dmrs_AdditionalPosition
=
pusch_dmrs_pos0
;
dmrs_Uplink_Config
->
pusch_dmrs_AdditionalPosition
=
pusch_dmrs_pos0
;
gNB
->
dmrs_UplinkConfig
.
pusch_maxLength
=
pusch_len1
;
dmrs_Uplink_Config
->
pusch_maxLength
=
pusch_len1
;
//--------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------//
nr_init_pdsch_dmrs
(
gNB
,
cfg
->
sch_config
.
physical_cell_id
.
value
);
nr_init_pdsch_dmrs
(
gNB
,
cfg
->
sch_config
.
physical_cell_id
.
value
);
...
@@ -168,6 +170,17 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
...
@@ -168,6 +170,17 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
gNB
->
pusch_config
.
pusch_TimeDomainResourceAllocation
[
i
]
->
mappingType
=
typeB
;
gNB
->
pusch_config
.
pusch_TimeDomainResourceAllocation
[
i
]
->
mappingType
=
typeB
;
}
}
gNB
->
ptrs_configured
=
0
;
//------------- config PUSCH PTRS parameters(to be updated from RRC)--------------//
ptrs_Uplink_Config
->
timeDensity
.
ptrs_mcs1
=
0
;
// setting MCS values to 0 indicate abscence of time_density field in the configuration
ptrs_Uplink_Config
->
timeDensity
.
ptrs_mcs2
=
0
;
ptrs_Uplink_Config
->
timeDensity
.
ptrs_mcs3
=
0
;
ptrs_Uplink_Config
->
frequencyDensity
.
n_rb0
=
0
;
// setting N_RB values to 0 indicate abscence of frequency_density field in the configuration
ptrs_Uplink_Config
->
frequencyDensity
.
n_rb1
=
0
;
ptrs_Uplink_Config
->
resourceElementOffset
=
0
;
//--------------------------------------------------------------------------------//
/// Transport init necessary for NR synchro
/// Transport init necessary for NR synchro
init_nr_transport
(
gNB
);
init_nr_transport
(
gNB
);
...
...
openair1/PHY/INIT/nr_init_ue.c
View file @
e72e1d87
...
@@ -659,6 +659,8 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
...
@@ -659,6 +659,8 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
abstraction_flag
=
0
;
abstraction_flag
=
0
;
fp
->
nb_antennas_tx
=
1
;
fp
->
nb_antennas_tx
=
1
;
fp
->
nb_antennas_rx
=
1
;
fp
->
nb_antennas_rx
=
1
;
dmrs_UplinkConfig_t
*
dmrs_Uplink_Config
=
&
ue
->
pusch_config
.
dmrs_UplinkConfig
;
ptrs_UplinkConfig_t
*
ptrs_Uplink_Config
=
&
ue
->
pusch_config
.
dmrs_UplinkConfig
.
ptrs_UplinkConfig
;
printf
(
"Initializing UE vars (abstraction %"
PRIu8
") for eNB TXant %"
PRIu8
", UE RXant %"
PRIu8
"
\n
"
,
abstraction_flag
,
fp
->
nb_antennas_tx
,
fp
->
nb_antennas_rx
);
printf
(
"Initializing UE vars (abstraction %"
PRIu8
") for eNB TXant %"
PRIu8
", UE RXant %"
PRIu8
"
\n
"
,
abstraction_flag
,
fp
->
nb_antennas_tx
,
fp
->
nb_antennas_rx
);
//LOG_D(PHY,"[MSC_NEW][FRAME 00000][PHY_UE][MOD %02u][]\n", ue->Mod_id+NB_eNB_INST);
//LOG_D(PHY,"[MSC_NEW][FRAME 00000][PHY_UE][MOD %02u][]\n", ue->Mod_id+NB_eNB_INST);
nr_init_frame_parms_ue
(
fp
,
NR_MU_1
,
NORMAL
,
fp
->
N_RB_DL
,
n_ssb_crb
,
k_ssb
);
nr_init_frame_parms_ue
(
fp
,
NR_MU_1
,
NORMAL
,
fp
->
N_RB_DL
,
n_ssb_crb
,
k_ssb
);
...
@@ -711,9 +713,9 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
...
@@ -711,9 +713,9 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
}
}
//------------- config DMRS parameters--------------//
//------------- config DMRS parameters--------------//
ue
->
dmrs_UplinkConfig
.
pusch_dmrs_type
=
pusch_dmrs_type1
;
dmrs_Uplink_Config
->
pusch_dmrs_type
=
pusch_dmrs_type1
;
ue
->
dmrs_UplinkConfig
.
pusch_dmrs_AdditionalPosition
=
pusch_dmrs_pos0
;
dmrs_Uplink_Config
->
pusch_dmrs_AdditionalPosition
=
pusch_dmrs_pos0
;
ue
->
dmrs_UplinkConfig
.
pusch_maxLength
=
pusch_len1
;
dmrs_Uplink_Config
->
pusch_maxLength
=
pusch_len1
;
//-------------------------------------------------//
//-------------------------------------------------//
ue
->
dmrs_DownlinkConfig
.
pdsch_dmrs_type
=
pdsch_dmrs_type1
;
ue
->
dmrs_DownlinkConfig
.
pdsch_dmrs_type
=
pdsch_dmrs_type1
;
ue
->
dmrs_DownlinkConfig
.
pdsch_dmrs_AdditionalPosition
=
pdsch_dmrs_pos0
;
ue
->
dmrs_DownlinkConfig
.
pdsch_dmrs_AdditionalPosition
=
pdsch_dmrs_pos0
;
...
@@ -743,6 +745,23 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
...
@@ -743,6 +745,23 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
///////////
///////////
////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////PUSCH PTRS init/////////////////////////
///////////
ue
->
ptrs_configured
=
0
;
// flag to be toggled by RCC
//------------- config PTRS parameters--------------//
ptrs_Uplink_Config
->
timeDensity
.
ptrs_mcs1
=
0
;
// setting MCS values to 0 indicate abscence of time_density field in the configuration
ptrs_Uplink_Config
->
timeDensity
.
ptrs_mcs2
=
0
;
ptrs_Uplink_Config
->
timeDensity
.
ptrs_mcs3
=
0
;
ptrs_Uplink_Config
->
frequencyDensity
.
n_rb0
=
0
;
// setting N_RB values to 0 indicate abscence of frequency_density field in the configuration
ptrs_Uplink_Config
->
frequencyDensity
.
n_rb1
=
0
;
ptrs_Uplink_Config
->
resourceElementOffset
=
0
;
//-------------------------------------------------//
///////////
////////////////////////////////////////////////////////////////////////////////////////////
for
(
i
=
0
;
i
<
10
;
i
++
)
for
(
i
=
0
;
i
<
10
;
i
++
)
ue
->
tx_power_dBm
[
i
]
=-
127
;
ue
->
tx_power_dBm
[
i
]
=-
127
;
...
...
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
View file @
e72e1d87
...
@@ -117,7 +117,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
...
@@ -117,7 +117,7 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
//------------------generate DMRS------------------//
//------------------generate DMRS------------------//
length_dmrs
=
gNB
->
dmrs_UplinkConfig
.
pusch_maxLength
;
length_dmrs
=
dmrs_UplinkConfig
->
pusch_maxLength
;
nr_gold_pusch
(
gNB
,
symbol
,
n_idDMRS
,
length_dmrs
);
nr_gold_pusch
(
gNB
,
symbol
,
n_idDMRS
,
length_dmrs
);
...
...
openair1/PHY/NR_TRANSPORT/nr_dlsch_tools.c
View file @
e72e1d87
...
@@ -338,7 +338,7 @@ void nr_fill_ulsch(PHY_VARS_gNB *gNB,
...
@@ -338,7 +338,7 @@ void nr_fill_ulsch(PHY_VARS_gNB *gNB,
rel15_ul
->
ulsch_pdu_rel15
.
number_rbs
=
ulsch_pdu
->
rb_size
;
rel15_ul
->
ulsch_pdu_rel15
.
number_rbs
=
ulsch_pdu
->
rb_size
;
rel15_ul
->
ulsch_pdu_rel15
.
start_symbol
=
ulsch_pdu
->
start_symbol_index
;
rel15_ul
->
ulsch_pdu_rel15
.
start_symbol
=
ulsch_pdu
->
start_symbol_index
;
rel15_ul
->
ulsch_pdu_rel15
.
number_symbols
=
ulsch_pdu
->
nr_of_symbols
;
rel15_ul
->
ulsch_pdu_rel15
.
number_symbols
=
ulsch_pdu
->
nr_of_symbols
;
rel15_ul
->
ulsch_pdu_rel15
.
length_dmrs
=
gNB
->
dmrs_UplinkConfig
.
pusch_maxLength
;
rel15_ul
->
ulsch_pdu_rel15
.
length_dmrs
=
gNB
->
pusch_config
.
dmrs_UplinkConfig
.
pusch_maxLength
;
rel15_ul
->
ulsch_pdu_rel15
.
Qm
=
ulsch_pdu
->
qam_mod_order
;
rel15_ul
->
ulsch_pdu_rel15
.
Qm
=
ulsch_pdu
->
qam_mod_order
;
rel15_ul
->
ulsch_pdu_rel15
.
mcs
=
ulsch_pdu
->
mcs_index
;
rel15_ul
->
ulsch_pdu_rel15
.
mcs
=
ulsch_pdu
->
mcs_index
;
rel15_ul
->
ulsch_pdu_rel15
.
rv
=
ulsch_pdu
->
pusch_data
.
rv_index
;
rel15_ul
->
ulsch_pdu_rel15
.
rv
=
ulsch_pdu
->
pusch_data
.
rv_index
;
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
e72e1d87
...
@@ -1030,12 +1030,12 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
...
@@ -1030,12 +1030,12 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
0
,
0
,
0
,
0
,
rel15_ul
->
number_symbols
,
rel15_ul
->
number_symbols
,
&
gNB
->
dmrs_UplinkConfig
,
&
gNB
->
pusch_config
.
dmrs_UplinkConfig
,
mapping_type
,
mapping_type
,
frame_parms
->
ofdm_symbol_size
);
frame_parms
->
ofdm_symbol_size
);
if
(
dmrs_symbol_flag
==
1
){
if
(
dmrs_symbol_flag
==
1
){
nb_re_pusch
=
rel15_ul
->
number_rbs
*
((
gNB
->
dmrs_UplinkConfig
.
pusch_dmrs_type
==
pusch_dmrs_type1
)
?
6
:
8
);
nb_re_pusch
=
rel15_ul
->
number_rbs
*
((
gNB
->
pusch_config
.
dmrs_UplinkConfig
.
pusch_dmrs_type
==
pusch_dmrs_type1
)
?
6
:
8
);
gNB
->
pusch_vars
[
UE_id
]
->
dmrs_symbol
=
symbol
;
gNB
->
pusch_vars
[
UE_id
]
->
dmrs_symbol
=
symbol
;
}
else
{
}
else
{
nb_re_pusch
=
rel15_ul
->
number_rbs
*
NR_NB_SC_PER_RB
;
nb_re_pusch
=
rel15_ul
->
number_rbs
*
NR_NB_SC_PER_RB
;
...
@@ -1054,7 +1054,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
...
@@ -1054,7 +1054,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
symbol
,
symbol
,
bwp_start_subcarrier
,
bwp_start_subcarrier
,
rel15_ul
->
number_rbs
,
rel15_ul
->
number_rbs
,
&
gNB
->
dmrs_UplinkConfig
);
&
gNB
->
pusch_config
.
dmrs_UplinkConfig
);
//----------------------------------------------------------
//----------------------------------------------------------
//--------------------- RBs extraction ---------------------
//--------------------- RBs extraction ---------------------
...
@@ -1073,7 +1073,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
...
@@ -1073,7 +1073,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
gNB
->
pusch_vars
[
UE_id
]
->
dmrs_symbol
,
gNB
->
pusch_vars
[
UE_id
]
->
dmrs_symbol
,
rel15_ul
->
number_symbols
,
rel15_ul
->
number_symbols
,
mapping_type
,
mapping_type
,
&
gNB
->
dmrs_UplinkConfig
);
&
gNB
->
pusch_config
.
dmrs_UplinkConfig
);
nr_ulsch_scale_channel
(
gNB
->
pusch_vars
[
UE_id
]
->
ul_ch_estimates_ext
,
nr_ulsch_scale_channel
(
gNB
->
pusch_vars
[
UE_id
]
->
ul_ch_estimates_ext
,
frame_parms
,
frame_parms
,
...
@@ -1081,7 +1081,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
...
@@ -1081,7 +1081,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
symbol
,
symbol
,
dmrs_symbol_flag
,
dmrs_symbol_flag
,
rel15_ul
->
number_rbs
,
rel15_ul
->
number_rbs
,
gNB
->
dmrs_UplinkConfig
.
pusch_dmrs_type
);
gNB
->
pusch_config
.
dmrs_UplinkConfig
.
pusch_dmrs_type
);
if
(
first_symbol_flag
==
1
)
{
if
(
first_symbol_flag
==
1
)
{
...
...
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
View file @
e72e1d87
...
@@ -1975,7 +1975,7 @@ uint16_t nr_dci_format_size (PHY_VARS_NR_UE *ue,
...
@@ -1975,7 +1975,7 @@ uint16_t nr_dci_format_size (PHY_VARS_NR_UE *ue,
PUSCH_Config_t
pusch_config
=
ue
->
pusch_config
;
PUSCH_Config_t
pusch_config
=
ue
->
pusch_config
;
PUCCH_Config_t
pucch_config_dedicated
=
ue
->
pucch_config_dedicated_nr
[
eNB_id
];
PUCCH_Config_t
pucch_config_dedicated
=
ue
->
pucch_config_dedicated_nr
[
eNB_id
];
crossCarrierSchedulingConfig_t
crossCarrierSchedulingConfig
=
ue
->
crossCarrierSchedulingConfig
;
crossCarrierSchedulingConfig_t
crossCarrierSchedulingConfig
=
ue
->
crossCarrierSchedulingConfig
;
dmrs_UplinkConfig_t
dmrs_UplinkConfig
=
ue
->
dmrs_UplinkConfig
;
dmrs_UplinkConfig_t
dmrs_UplinkConfig
=
ue
->
pusch_config
.
dmrs_UplinkConfig
;
dmrs_DownlinkConfig_t
dmrs_DownlinkConfig
=
ue
->
dmrs_DownlinkConfig
;
dmrs_DownlinkConfig_t
dmrs_DownlinkConfig
=
ue
->
dmrs_DownlinkConfig
;
csi_MeasConfig_t
csi_MeasConfig
=
ue
->
csi_MeasConfig
;
csi_MeasConfig_t
csi_MeasConfig
=
ue
->
csi_MeasConfig
;
PUSCH_ServingCellConfig_t
PUSCH_ServingCellConfig
=
ue
->
PUSCH_ServingCellConfig
;
PUSCH_ServingCellConfig_t
PUSCH_ServingCellConfig
=
ue
->
PUSCH_ServingCellConfig
;
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
View file @
e72e1d87
...
@@ -142,14 +142,14 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
...
@@ -142,14 +142,14 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
0
,
0
,
0
,
0
,
harq_process_ul_ue
->
number_of_symbols
,
harq_process_ul_ue
->
number_of_symbols
,
&
UE
->
dmrs_UplinkConfig
,
&
UE
->
pusch_config
.
dmrs_UplinkConfig
,
mapping_type
,
mapping_type
,
frame_parms
->
ofdm_symbol_size
);
frame_parms
->
ofdm_symbol_size
);
ulsch_ue
->
length_dmrs
=
UE
->
dmrs_UplinkConfig
.
pusch_maxLength
;
ulsch_ue
->
length_dmrs
=
UE
->
pusch_config
.
dmrs_UplinkConfig
.
pusch_maxLength
;
ulsch_ue
->
rnti
=
n_rnti
;
ulsch_ue
->
rnti
=
n_rnti
;
ulsch_ue
->
Nid_cell
=
Nid_cell
;
ulsch_ue
->
Nid_cell
=
Nid_cell
;
ulsch_ue
->
nb_re_dmrs
=
((
UE
->
dmrs_UplinkConfig
.
pusch_dmrs_type
==
pusch_dmrs_type1
)
?
6
:
4
)
*
number_dmrs_symbols
;
ulsch_ue
->
nb_re_dmrs
=
((
UE
->
pusch_config
.
dmrs_UplinkConfig
.
pusch_dmrs_type
==
pusch_dmrs_type1
)
?
6
:
4
)
*
number_dmrs_symbols
;
N_RE_prime
=
NR_NB_SC_PER_RB
*
harq_process_ul_ue
->
number_of_symbols
-
ulsch_ue
->
nb_re_dmrs
-
N_PRB_oh
;
N_RE_prime
=
NR_NB_SC_PER_RB
*
harq_process_ul_ue
->
number_of_symbols
-
ulsch_ue
->
nb_re_dmrs
-
N_PRB_oh
;
...
@@ -277,7 +277,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
...
@@ -277,7 +277,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
pusch_dmrs
=
UE
->
nr_gold_pusch_dmrs
[
slot
];
pusch_dmrs
=
UE
->
nr_gold_pusch_dmrs
[
slot
];
n_dmrs
=
(
harq_process_ul_ue
->
nb_rb
*
ulsch_ue
->
nb_re_dmrs
);
n_dmrs
=
(
harq_process_ul_ue
->
nb_rb
*
ulsch_ue
->
nb_re_dmrs
);
int16_t
mod_dmrs
[
n_dmrs
<<
1
];
int16_t
mod_dmrs
[
n_dmrs
<<
1
];
dmrs_type
=
UE
->
dmrs_UplinkConfig
.
pusch_dmrs_type
;
dmrs_type
=
UE
->
pusch_config
.
dmrs_UplinkConfig
.
pusch_dmrs_type
;
///////////
///////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
@@ -313,7 +313,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
...
@@ -313,7 +313,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
0
,
0
,
0
,
0
,
harq_process_ul_ue
->
number_of_symbols
,
harq_process_ul_ue
->
number_of_symbols
,
&
UE
->
dmrs_UplinkConfig
,
&
UE
->
pusch_config
.
dmrs_UplinkConfig
,
mapping_type
,
mapping_type
,
frame_parms
->
ofdm_symbol_size
);
frame_parms
->
ofdm_symbol_size
);
...
@@ -379,7 +379,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
...
@@ -379,7 +379,7 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
n
,
n
,
delta
,
delta
,
harq_process_ul_ue
->
number_of_symbols
,
harq_process_ul_ue
->
number_of_symbols
,
&
UE
->
dmrs_UplinkConfig
,
&
UE
->
pusch_config
.
dmrs_UplinkConfig
,
mapping_type
,
mapping_type
,
frame_parms
->
ofdm_symbol_size
);
frame_parms
->
ofdm_symbol_size
);
...
...
openair1/PHY/defs_gNB.h
View file @
e72e1d87
...
@@ -670,6 +670,9 @@ typedef struct PHY_VARS_gNB_s {
...
@@ -670,6 +670,9 @@ typedef struct PHY_VARS_gNB_s {
/// PDSCH DMRS sequence
/// PDSCH DMRS sequence
uint32_t
****
nr_gold_pdsch_dmrs
;
uint32_t
****
nr_gold_pdsch_dmrs
;
/// flag to indicate if PTRS is configured
uint8_t
ptrs_configured
;
/// PUSCH DMRS
/// PUSCH DMRS
uint32_t
nr_gold_pusch
[
2
][
20
][
2
][
NR_MAX_PUSCH_DMRS_INIT_LENGTH_DWORD
];
uint32_t
nr_gold_pusch
[
2
][
20
][
2
][
NR_MAX_PUSCH_DMRS_INIT_LENGTH_DWORD
];
...
@@ -727,8 +730,6 @@ typedef struct PHY_VARS_gNB_s {
...
@@ -727,8 +730,6 @@ typedef struct PHY_VARS_gNB_s {
// SRS Variables
// SRS Variables
SOUNDINGRS_UL_CONFIG_DEDICATED
soundingrs_ul_config_dedicated
[
NUMBER_OF_UE_MAX
];
SOUNDINGRS_UL_CONFIG_DEDICATED
soundingrs_ul_config_dedicated
[
NUMBER_OF_UE_MAX
];
dmrs_UplinkConfig_t
dmrs_UplinkConfig
;
dmrs_DownlinkConfig_t
dmrs_DownlinkConfig
;
dmrs_DownlinkConfig_t
dmrs_DownlinkConfig
;
uint8_t
ncs_cell
[
20
][
7
];
uint8_t
ncs_cell
[
20
][
7
];
...
...
openair1/PHY/defs_nr_UE.h
View file @
e72e1d87
...
@@ -1012,6 +1012,9 @@ typedef struct {
...
@@ -1012,6 +1012,9 @@ typedef struct {
/// PUSCH DMRS sequence
/// PUSCH DMRS sequence
uint32_t
****
nr_gold_pusch_dmrs
;
uint32_t
****
nr_gold_pusch_dmrs
;
/// flag to indicate if PTRS is configured
uint8_t
ptrs_configured
;
uint32_t
X_u
[
64
][
839
];
uint32_t
X_u
[
64
][
839
];
uint32_t
high_speed_flag
;
uint32_t
high_speed_flag
;
...
@@ -1143,7 +1146,6 @@ typedef struct {
...
@@ -1143,7 +1146,6 @@ typedef struct {
crossCarrierSchedulingConfig_t
crossCarrierSchedulingConfig
;
crossCarrierSchedulingConfig_t
crossCarrierSchedulingConfig
;
supplementaryUplink_t
supplementaryUplink
;
supplementaryUplink_t
supplementaryUplink
;
dmrs_UplinkConfig_t
dmrs_UplinkConfig
;
dmrs_DownlinkConfig_t
dmrs_DownlinkConfig
;
dmrs_DownlinkConfig_t
dmrs_DownlinkConfig
;
csi_MeasConfig_t
csi_MeasConfig
;
csi_MeasConfig_t
csi_MeasConfig
;
PUSCH_ServingCellConfig_t
PUSCH_ServingCellConfig
;
PUSCH_ServingCellConfig_t
PUSCH_ServingCellConfig
;
...
...
openair1/PHY/impl_defs_nr.h
View file @
e72e1d87
...
@@ -510,9 +510,6 @@ typedef struct {
...
@@ -510,9 +510,6 @@ typedef struct {
uint8_t
startSymbolAndLength
;
uint8_t
startSymbolAndLength
;
}
PUSCH_TimeDomainResourceAllocation_t
;
}
PUSCH_TimeDomainResourceAllocation_t
;
////////////////////////////////////////////////////////////////////////////////################################
////////////////////////////////////////////////////////////////////////////////################################
typedef
struct
{
// The IE PTRS-UplinkConfig is used to configure uplink Phase-Tracking-Reference-Signals (PTRS)
}
ptrs_UplinkConfig_t
;
typedef
enum
{
typedef
enum
{
maxCodeBlockGroupsPerTransportBlock_n2
=
2
,
maxCodeBlockGroupsPerTransportBlock_n2
=
2
,
maxCodeBlockGroupsPerTransportBlock_n4
=
4
,
maxCodeBlockGroupsPerTransportBlock_n4
=
4
,
...
@@ -544,6 +541,12 @@ typedef enum {
...
@@ -544,6 +541,12 @@ typedef enum {
pusch_dmrs_pos2
=
2
,
pusch_dmrs_pos2
=
2
,
pusch_dmrs_pos3
=
3
,
pusch_dmrs_pos3
=
3
,
}
pusch_dmrs_AdditionalPosition_t
;
}
pusch_dmrs_AdditionalPosition_t
;
typedef
enum
{
offset00
=
0
,
offset01
=
1
,
offset10
=
2
,
offset11
=
3
,
}
ptrs_resource_elementoffset_t
;
typedef
enum
{
typedef
enum
{
pdsch_len1
=
1
,
pdsch_len1
=
1
,
pdsch_len2
=
2
pdsch_len2
=
2
...
@@ -552,6 +555,22 @@ typedef enum {
...
@@ -552,6 +555,22 @@ typedef enum {
pusch_len1
=
1
,
pusch_len1
=
1
,
pusch_len2
=
2
pusch_len2
=
2
}
pusch_maxLength_t
;
}
pusch_maxLength_t
;
typedef
struct
{
uint8_t
ptrs_mcs1
;
uint8_t
ptrs_mcs2
;
uint8_t
ptrs_mcs3
;
}
ptrs_time_density_t
;
typedef
struct
{
uint16_t
n_rb0
;
uint16_t
n_rb1
;
}
ptrs_frequency_density_t
;
typedef
struct
{
// The IE PTRS-UplinkConfig is used to configure uplink Phase-Tracking-Reference-Signals (PTRS)
uint8_t
num_ptrs_ports
;
ptrs_resource_elementoffset_t
resourceElementOffset
;
ptrs_time_density_t
timeDensity
;
ptrs_frequency_density_t
frequencyDensity
;
uint32_t
ul_ptrs_power
;
}
ptrs_UplinkConfig_t
;
typedef
struct
{
// The IE DMRS-DownlinkConfig is used to configure downlink demodulation reference signals for PDSCH
typedef
struct
{
// The IE DMRS-DownlinkConfig is used to configure downlink demodulation reference signals for PDSCH
pdsch_dmrs_type_t
pdsch_dmrs_type
;
pdsch_dmrs_type_t
pdsch_dmrs_type
;
pdsch_dmrs_AdditionalPosition_t
pdsch_dmrs_AdditionalPosition
;
pdsch_dmrs_AdditionalPosition_t
pdsch_dmrs_AdditionalPosition
;
...
@@ -563,6 +582,7 @@ typedef struct { // The IE DMRS-UplinkConfig is used to configure uplink demodul
...
@@ -563,6 +582,7 @@ typedef struct { // The IE DMRS-UplinkConfig is used to configure uplink demodul
pusch_dmrs_type_t
pusch_dmrs_type
;
pusch_dmrs_type_t
pusch_dmrs_type
;
pusch_dmrs_AdditionalPosition_t
pusch_dmrs_AdditionalPosition
;
pusch_dmrs_AdditionalPosition_t
pusch_dmrs_AdditionalPosition
;
pusch_maxLength_t
pusch_maxLength
;
pusch_maxLength_t
pusch_maxLength
;
ptrs_UplinkConfig_t
ptrs_UplinkConfig
;
uint16_t
scramblingID0
;
uint16_t
scramblingID0
;
uint16_t
scramblingID1
;
uint16_t
scramblingID1
;
}
dmrs_UplinkConfig_t
;
}
dmrs_UplinkConfig_t
;
...
@@ -647,6 +667,10 @@ typedef struct {
...
@@ -647,6 +667,10 @@ typedef struct {
* resourceAllocation
* resourceAllocation
*/
*/
ul_resourceAllocation_t
ul_resourceAllocation
;
ul_resourceAllocation_t
ul_resourceAllocation
;
/*
* DMRS-Uplinkconfig
*/
dmrs_UplinkConfig_t
dmrs_UplinkConfig
;
/*
/*
* rgb_Size
* rgb_Size
*/
*/
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
e72e1d87
...
@@ -244,11 +244,11 @@ void nr_ulsch_procedures(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx, int UE_id
...
@@ -244,11 +244,11 @@ void nr_ulsch_procedures(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx, int UE_id
0
,
0
,
0
,
0
,
number_symbols
,
number_symbols
,
&
gNB
->
dmrs_UplinkConfig
,
&
gNB
->
pusch_config
.
dmrs_UplinkConfig
,
mapping_type
,
mapping_type
,
frame_parms
->
ofdm_symbol_size
);
frame_parms
->
ofdm_symbol_size
);
nb_re_dmrs
=
((
gNB
->
dmrs_UplinkConfig
.
pusch_dmrs_type
==
pusch_dmrs_type1
)
?
6
:
4
)
*
number_dmrs_symbols
;
nb_re_dmrs
=
((
gNB
->
pusch_config
.
dmrs_UplinkConfig
.
pusch_dmrs_type
==
pusch_dmrs_type1
)
?
6
:
4
)
*
number_dmrs_symbols
;
G
=
nr_get_G
(
nfapi_ulsch_pdu_rel15
->
number_rbs
,
G
=
nr_get_G
(
nfapi_ulsch_pdu_rel15
->
number_rbs
,
number_symbols
,
number_symbols
,
...
...
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