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
e4ef9d3a
Commit
e4ef9d3a
authored
Jun 25, 2022
by
Sagar Parsawar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added same slot scheduling for multiple gNB and PRS resources
parent
7a8c977e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
75 deletions
+39
-75
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
+7
-1
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+0
-2
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+15
-24
openair1/SCHED_NR/sched_nr.h
openair1/SCHED_NR/sched_nr.h
+0
-1
openair1/SCHED_NR_UE/defs.h
openair1/SCHED_NR_UE/defs.h
+0
-1
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+16
-30
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
+1
-16
No files found.
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
View file @
e4ef9d3a
...
...
@@ -57,11 +57,17 @@ int nr_prs_channel_estimation(uint8_t gNB_id,
NR_DL_FRAME_PARMS
*
frame_params
)
{
int32_t
**
rxdataF
=
ue
->
common_vars
.
common_vars_rx_data_per_thread
[
proc
->
thread_id
].
rxdataF
;
uint32_t
**
nr_gold_prs
=
ue
->
nr_gold_prs
[
gNB_id
][
rsc_id
][
proc
->
nr_slot_rx
];
prs_data_t
*
prs_cfg
=
&
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
;
prs_meas_t
**
prs_meas
=
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_meas
;
int32_t
**
prs_chestF
=
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_ch_estimates
;
int32_t
**
prs_chestT
=
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_ch_estimates_time
;
int
slot_prs
;
if
(
prs_cfg
->
PRSResourceRepetition
>
1
)
slot_prs
=
proc
->
nr_slot_rx
-
prs_cfg
->
PRSResourceTimeGap
;
else
slot_prs
=
proc
->
nr_slot_rx
;
uint32_t
**
nr_gold_prs
=
ue
->
nr_gold_prs
[
gNB_id
][
rsc_id
][
slot_prs
];
uint8_t
rxAnt
=
0
,
idx
=
0
;
int16_t
*
rxF
,
*
pil
,
*
fl
,
*
fm
,
*
fmm
,
*
fml
,
*
fmr
,
*
fr
,
mod_prs
[
NR_MAX_PRS_LENGTH
<<
1
];
...
...
openair1/PHY/defs_nr_UE.h
View file @
e4ef9d3a
...
...
@@ -734,8 +734,6 @@ typedef struct {
NR_UE_DLSCH_t
*
dlsch_MCH
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PRS
*
prs_vars
[
NR_MAX_PRS_COMB_SIZE
];
uint8_t
prs_active_gNBs
;
uint8_t
prs_start_symb
;
uint8_t
prs_end_symb
;
//Paging parameters
uint32_t
IMSImod1024
;
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
e4ef9d3a
...
...
@@ -63,24 +63,6 @@ void nr_set_ssb_first_subcarrier(nfapi_nr_config_request_scf_t *cfg, NR_DL_FRAME
LOG_D
(
PHY
,
"SSB first subcarrier %d (%d,%d)
\n
"
,
fp
->
ssb_start_subcarrier
,
cfg
->
ssb_table
.
ssb_offset_point_a
.
value
,
sco
);
}
uint8_t
check_prs_slot_gNB
(
uint8_t
*
prs_rsc_id
,
NR_gNB_PRS
*
prs_vars
,
NR_DL_FRAME_PARMS
*
fp
,
int
frame_tx
,
int
nr_slot_tx
)
{
uint8_t
is_prs_slot
=
0
,
rsc_id
=
0
;
for
(
rsc_id
=
0
;
rsc_id
<
prs_vars
->
NumPRSResources
;
rsc_id
++
)
{
for
(
int
i
=
0
;
i
<
prs_vars
->
prs_cfg
[
rsc_id
].
PRSResourceRepetition
;
i
++
)
{
if
(
(((
frame_tx
*
fp
->
slots_per_frame
+
nr_slot_tx
)
-
(
prs_vars
->
prs_cfg
[
rsc_id
].
PRSResourceSetPeriod
[
1
]
+
prs_vars
->
prs_cfg
[
rsc_id
].
PRSResourceOffset
))
%
prs_vars
->
prs_cfg
[
rsc_id
].
PRSResourceSetPeriod
[
0
])
==
i
*
prs_vars
->
prs_cfg
[
rsc_id
].
PRSResourceTimeGap
)
{
is_prs_slot
=
1
;
*
prs_rsc_id
=
rsc_id
;
break
;
}
}
}
return
is_prs_slot
;
}
void
nr_common_signal_procedures
(
PHY_VARS_gNB
*
gNB
,
int
frame
,
int
slot
,
nfapi_nr_dl_tti_ssb_pdu
ssb_pdu
)
{
NR_DL_FRAME_PARMS
*
fp
=&
gNB
->
frame_parms
;
...
...
@@ -146,8 +128,7 @@ void phy_procedures_gNB_TX(processingData_L1tx_t *msgTx,
PHY_VARS_gNB
*
gNB
=
msgTx
->
gNB
;
NR_DL_FRAME_PARMS
*
fp
=&
gNB
->
frame_parms
;
nfapi_nr_config_request_scf_t
*
cfg
=
&
gNB
->
gNB_config
;
int
offset
=
gNB
->
CC_id
;
uint8_t
rsc_id
=
0
,
is_prs_slot
=
0
;
int
offset
=
gNB
->
CC_id
,
slot_prs
;
int
txdataF_offset
=
slot
*
fp
->
samples_per_slot_wCP
;
if
((
cfg
->
cell_config
.
frame_duplex_type
.
value
==
TDD
)
&&
...
...
@@ -162,11 +143,21 @@ void phy_procedures_gNB_TX(processingData_L1tx_t *msgTx,
}
// Check for PRS slot
is_prs_slot
=
check_prs_slot_gNB
(
&
rsc_id
,
&
gNB
->
prs_vars
,
fp
,
frame
,
slot
);
if
(
is_prs_slot
)
for
(
int
rsc_id
=
0
;
rsc_id
<
gNB
->
prs_vars
.
NumPRSResources
;
rsc_id
++
)
{
LOG_D
(
PHY
,
"gNB_TX: frame %d, slot %d, PRS Resource ID %d
\n
"
,
frame
,
slot
,
rsc_id
);
nr_generate_prs
(
gNB
->
nr_gold_prs
[
rsc_id
][
slot
],
&
gNB
->
common_vars
.
txdataF
[
0
][
txdataF_offset
],
AMP
,
&
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
],
cfg
,
fp
);
for
(
int
i
=
0
;
i
<
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
].
PRSResourceRepetition
;
i
++
)
{
if
(
(((
frame
*
fp
->
slots_per_frame
+
slot
)
-
(
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
].
PRSResourceSetPeriod
[
1
]
+
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
].
PRSResourceOffset
))
%
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
].
PRSResourceSetPeriod
[
0
])
==
i
*
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
].
PRSResourceTimeGap
)
{
if
(
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
].
PRSResourceRepetition
>
1
)
slot_prs
=
slot
-
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
].
PRSResourceTimeGap
;
else
slot_prs
=
slot
;
LOG_D
(
PHY
,
"gNB_TX: frame %d, slot %d, PRS Resource ID %d
\n
"
,
frame
,
slot
,
rsc_id
);
nr_generate_prs
(
gNB
->
nr_gold_prs
[
rsc_id
][
slot_prs
],
&
gNB
->
common_vars
.
txdataF
[
0
][
txdataF_offset
],
AMP
,
&
gNB
->
prs_vars
.
prs_cfg
[
rsc_id
],
cfg
,
fp
);
}
}
}
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_gNB_COMMON_TX
,
1
);
...
...
openair1/SCHED_NR/sched_nr.h
View file @
e4ef9d3a
...
...
@@ -54,7 +54,6 @@ void nr_fep_full(RU_t *ru, int slot);
void
nr_fep_full_2thread
(
RU_t
*
ru
,
int
slot
);
void
feptx_prec
(
RU_t
*
ru
,
int
frame_tx
,
int
tti_tx
);
int
nr_phy_init_RU
(
RU_t
*
ru
);
uint8_t
check_prs_slot_gNB
(
uint8_t
*
prs_rsc_id
,
NR_gNB_PRS
*
prs_vars
,
NR_DL_FRAME_PARMS
*
fp
,
int
frame_tx
,
int
nr_slot_tx
);
void
nr_phy_free_RU
(
RU_t
*
ru
);
#endif
openair1/SCHED_NR_UE/defs.h
View file @
e4ef9d3a
...
...
@@ -373,7 +373,6 @@ int get_tx_harq_id(NR_UE_ULSCH_t *ulsch, int slot_tx);
int
is_pbch_in_slot
(
fapi_nr_config_request_t
*
config
,
int
frame
,
int
slot
,
NR_DL_FRAME_PARMS
*
fp
);
int
is_ssb_in_slot
(
fapi_nr_config_request_t
*
config
,
int
frame
,
int
slot
,
NR_DL_FRAME_PARMS
*
fp
);
uint8_t
check_prs_slot_nrUE
(
PHY_VARS_NR_UE
*
ue
,
NR_DL_FRAME_PARMS
*
fp
,
uint8_t
*
prs_gNB_id
,
uint8_t
*
prs_rsc_id
,
int
frame_rx
,
int
nr_slot_rx
);
/*! \brief This function prepares the dl indication to pass to the MAC
@param
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
e4ef9d3a
...
...
@@ -1374,28 +1374,6 @@ int is_pbch_in_slot(fapi_nr_config_request_t *config, int frame, int slot, NR_DL
}
}
uint8_t
check_prs_slot_nrUE
(
PHY_VARS_NR_UE
*
ue
,
NR_DL_FRAME_PARMS
*
fp
,
uint8_t
*
prs_gNB_id
,
uint8_t
*
prs_rsc_id
,
int
frame_rx
,
int
nr_slot_rx
)
{
uint8_t
is_prs_slot
=
0
,
rsc_id
=
0
,
gNB_id
=
0
;
for
(
gNB_id
=
0
;
gNB_id
<
ue
->
prs_active_gNBs
;
gNB_id
++
)
{
for
(
rsc_id
=
0
;
rsc_id
<
ue
->
prs_vars
[
gNB_id
]
->
NumPRSResources
;
rsc_id
++
)
{
for
(
int
i
=
0
;
i
<
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceRepetition
;
i
++
)
{
if
(
(((
frame_rx
*
fp
->
slots_per_frame
+
nr_slot_rx
)
-
(
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceSetPeriod
[
1
]
+
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceOffset
))
%
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceSetPeriod
[
0
])
==
i
*
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceTimeGap
)
{
is_prs_slot
=
1
;
*
prs_rsc_id
=
rsc_id
;
*
prs_gNB_id
=
gNB_id
;
return
is_prs_slot
;
}
}
}
}
return
is_prs_slot
;
}
int
phy_procedures_nrUE_RX
(
PHY_VARS_NR_UE
*
ue
,
UE_nr_rxtx_proc_t
*
proc
,
uint8_t
gNB_id
,
...
...
@@ -1409,7 +1387,7 @@ int phy_procedures_nrUE_RX(PHY_VARS_NR_UE *ue,
int
slot_pbch
;
int
slot_ssb
;
fapi_nr_config_request_t
*
cfg
=
&
ue
->
nrUE_config
;
uint8_t
rsc_id
=
0
,
is_prs_slot
=
0
,
prs_gNB_id
=
0
;
int
num_prs
=
0
;
uint8_t
nb_symb_pdcch
=
phy_pdcch_config
->
nb_search_space
>
0
?
phy_pdcch_config
->
pdcch_config
[
0
].
coreset
.
duration
:
0
;
uint8_t
dci_cnt
=
0
;
...
...
@@ -1484,19 +1462,27 @@ int phy_procedures_nrUE_RX(PHY_VARS_NR_UE *ue,
}
// Check for PRS slot
is_prs_slot
=
check_prs_slot_nrUE
(
ue
,
fp
,
&
prs_gNB_id
,
&
rsc_id
,
frame_rx
,
nr_slot_rx
);
if
(
is_prs_slot
)
for
(
int
gNB_id
=
0
;
gNB_id
<
ue
->
prs_active_gNBs
;
gNB_id
++
)
{
for
(
int
j
=
ue
->
prs_start_symb
;
j
<
ue
->
prs_end_symb
;
j
++
)
for
(
int
rsc_id
=
0
;
rsc_id
<
ue
->
prs_vars
[
gNB_id
]
->
NumPRSResources
;
rsc_id
++
)
{
for
(
int
i
=
0
;
i
<
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceRepetition
;
i
++
)
{
if
(
(((
frame_rx
*
fp
->
slots_per_frame
+
nr_slot_rx
)
-
(
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceSetPeriod
[
1
]
+
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceOffset
))
%
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceSetPeriod
[
0
])
==
i
*
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
PRSResourceTimeGap
)
{
for
(
int
j
=
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
SymbolStart
;
(
j
<
(
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
SymbolStart
+
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
rsc_id
].
prs_cfg
.
NumPRSSymbols
));
j
++
)
{
nr_slot_fep
(
ue
,
proc
,
(
j
%
fp
->
symbols_per_slot
),
nr_slot_rx
);
}
nr_prs_channel_estimation
(
prs_gNB_id
,
rsc_id
,
ue
,
proc
,
fp
);
}
}
nr_prs_channel_estimation
(
gNB_id
,
rsc_id
,
ue
,
proc
,
fp
);
num_prs
++
;
}
}
// for i
}
// for rsc_id
}
// for gNB_id
if
((
frame_rx
%
64
==
0
)
&&
(
nr_slot_rx
==
0
))
{
LOG_I
(
NR_PHY
,
"============================================
\n
"
);
...
...
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
View file @
e4ef9d3a
...
...
@@ -1347,7 +1347,7 @@ void RCconfig_nr_ue_L1(void) {
void
RCconfig_nrUE_prs
(
void
*
cfg
)
{
int
j
=
0
,
k
=
0
,
gNB_id
=
0
,
prs_start
=
0
,
prs_end
=
0
;
int
j
=
0
,
k
=
0
,
gNB_id
=
0
;
char
aprefix
[
MAX_OPTNAME_SIZE
*
2
+
8
];
PHY_VARS_NR_UE
*
ue
=
(
PHY_VARS_NR_UE
*
)
cfg
;
...
...
@@ -1393,17 +1393,6 @@ void RCconfig_nrUE_prs(void *cfg)
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
k
].
prs_cfg
.
MutingPattern1
[
l
]
=
PRS_ParamList
.
paramarray
[
j
][
PRS_MUTING_PATTERN1_LIST
].
uptr
[
l
];
for
(
int
l
=
0
;
l
<
PRS_ParamList
.
paramarray
[
j
][
PRS_MUTING_PATTERN2_LIST
].
numelt
;
l
++
)
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
k
].
prs_cfg
.
MutingPattern2
[
l
]
=
PRS_ParamList
.
paramarray
[
j
][
PRS_MUTING_PATTERN2_LIST
].
uptr
[
l
];
if
(
gNB_id
==
0
&&
k
==
0
)
{
prs_start
=
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
k
].
prs_cfg
.
SymbolStart
;
prs_end
=
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
k
].
prs_cfg
.
SymbolStart
+
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
k
].
prs_cfg
.
NumPRSSymbols
;
}
else
{
prs_start
=
MIN
((
prs_start
),
(
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
k
].
prs_cfg
.
SymbolStart
));
prs_end
=
MAX
((
prs_end
),
(
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
k
].
prs_cfg
.
SymbolStart
+
ue
->
prs_vars
[
gNB_id
]
->
prs_resource
[
k
].
prs_cfg
.
NumPRSSymbols
));
}
}
// for k
k
=
0
;
...
...
@@ -1454,10 +1443,6 @@ void RCconfig_nrUE_prs(void *cfg)
LOG_I
(
NR_PHY
,
"No %s configuration found
\n
"
,
PRS_ParamList
.
listname
);
}
}
ue
->
prs_start_symb
=
prs_start
;
ue
->
prs_end_symb
=
prs_end
;
LOG_I
(
PHY
,
"prs_active_gNBs %d, prs_start_symb %d, prs_end_symb %d
\n
"
,
ue
->
prs_active_gNBs
,
ue
->
prs_start_symb
,
ue
->
prs_end_symb
);
AssertFatal
((
prs_start
<=
prs_end
)
||
(
prs_end
>
NR_SYMBOLS_PER_SLOT
),
"Invalid PRS symbol allocation, please check the start and end symbols
\n
"
);
}
/*
...
...
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