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
lizhongxiao
OpenXG-RAN
Commits
68e968e5
Commit
68e968e5
authored
Nov 13, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create gNB_scheduler_SRS.c
parent
6c767458
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
100 additions
and
2 deletions
+100
-2
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+1
-0
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
+2
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+2
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_SRS.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_SRS.c
+93
-0
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+2
-0
No files found.
cmake_targets/CMakeLists.txt
View file @
68e968e5
...
@@ -2120,6 +2120,7 @@ set (MAC_NR_SRC
...
@@ -2120,6 +2120,7 @@ set (MAC_NR_SRC
${
NR_GNB_MAC_DIR
}
/gNB_scheduler_phytest.c
${
NR_GNB_MAC_DIR
}
/gNB_scheduler_phytest.c
${
NR_GNB_MAC_DIR
}
/gNB_scheduler_uci.c
${
NR_GNB_MAC_DIR
}
/gNB_scheduler_uci.c
${
NR_GNB_MAC_DIR
}
/gNB_scheduler_RA.c
${
NR_GNB_MAC_DIR
}
/gNB_scheduler_RA.c
${
NR_GNB_MAC_DIR
}
/gNB_scheduler_SRS.c
)
)
...
...
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
View file @
68e968e5
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
68e968e5
...
@@ -397,6 +397,8 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
...
@@ -397,6 +397,8 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
nr_schedule_pucch
(
module_idP
,
frame
,
slot
);
nr_schedule_pucch
(
module_idP
,
frame
,
slot
);
nr_schedule_srs
(
module_idP
,
frame
,
slot
);
stop_meas
(
&
RC
.
nrmac
[
module_idP
]
->
eNB_scheduler
);
stop_meas
(
&
RC
.
nrmac
[
module_idP
]
->
eNB_scheduler
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_gNB_DLSCH_ULSCH_SCHEDULER
,
VCD_FUNCTION_OUT
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_gNB_DLSCH_ULSCH_SCHEDULER
,
VCD_FUNCTION_OUT
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_SRS.c
0 → 100644
View file @
68e968e5
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
* except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.openairinterface.org/?page_id=698
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*-------------------------------------------------------------------------------
* For more information about the OpenAirInterface (OAI) Software Alliance:
* contact@openairinterface.org
*/
/*! \file gNB_scheduler_SRS.c
* \brief primitives used for sounding reference signal
* \date 2021
*/
#include "platform_types.h"
/* MAC */
#include "nr_mac_gNB.h"
#include "NR_MAC_COMMON/nr_mac_extern.h"
/* Utils */
#include "common/utils/LOG/vcd_signal_dumper.h"
void
nr_schedule_srs_aperiodic
(
module_id_t
module_idP
,
frame_t
frameP
,
sub_frame_t
slotP
,
NR_SRS_ResourceSet_t
*
srs_resource_set
)
{
LOG_W
(
NR_PHY
,
"Aperiodic SRS scheduling is not implemented yet!
\n
"
);
}
void
nr_schedule_srs_semi_persistent
(
module_id_t
module_idP
,
frame_t
frameP
,
sub_frame_t
slotP
,
NR_SRS_ResourceSet_t
*
srs_resource_set
)
{
LOG_W
(
NR_PHY
,
"Semi-persistent SRS scheduling is not implemented yet!
\n
"
);
}
void
nr_schedule_srs_periodic
(
module_id_t
module_idP
,
frame_t
frameP
,
sub_frame_t
slotP
,
NR_SRS_ResourceSet_t
*
srs_resource_set
)
{
LOG_W
(
NR_PHY
,
"Periodic SRS scheduling is not implemented yet!
\n
"
);
}
void
nr_schedule_srs
(
module_id_t
module_idP
,
frame_t
frameP
,
sub_frame_t
slotP
)
{
gNB_MAC_INST
*
mac
=
RC
.
nrmac
[
module_idP
];
for
(
int
UE_id
=
0
;
UE_id
<
MAX_MOBILES_PER_GNB
;
UE_id
++
)
{
NR_CellGroupConfig_t
*
cg
=
mac
->
UE_info
.
CellGroup
[
UE_id
];
NR_BWP_UplinkDedicated_t
*
ubwpd
=
NULL
;
if
(
cg
&&
cg
->
spCellConfig
&&
cg
->
spCellConfig
->
spCellConfigDedicated
&&
cg
->
spCellConfig
->
spCellConfigDedicated
->
uplinkConfig
&&
cg
->
spCellConfig
->
spCellConfigDedicated
->
uplinkConfig
->
initialUplinkBWP
)
{
ubwpd
=
cg
->
spCellConfig
->
spCellConfigDedicated
->
uplinkConfig
->
initialUplinkBWP
;
}
else
{
continue
;
}
NR_SRS_Config_t
*
srs_Config
=
ubwpd
->
srs_Config
->
choice
.
setup
;
for
(
int
rs
=
0
;
rs
<
srs_Config
->
srs_ResourceSetToAddModList
->
list
.
count
;
rs
++
)
{
NR_SRS_ResourceSet_t
*
srs_resource_set
=
srs_Config
->
srs_ResourceSetToAddModList
->
list
.
array
[
rs
];
switch
(
srs_resource_set
->
resourceType
.
present
)
{
case
NR_SRS_ResourceSet__resourceType_PR_aperiodic
:
nr_schedule_srs_aperiodic
(
module_idP
,
frameP
,
slotP
,
srs_resource_set
);
break
;
case
NR_SRS_ResourceSet__resourceType_PR_semi_persistent
:
nr_schedule_srs_semi_persistent
(
module_idP
,
frameP
,
slotP
,
srs_resource_set
);
break
;
case
NR_SRS_ResourceSet__resourceType_PR_periodic
:
nr_schedule_srs_periodic
(
module_idP
,
frameP
,
slotP
,
srs_resource_set
);
break
;
default:
break
;
}
}
}
}
\ No newline at end of file
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
68e968e5
...
@@ -190,6 +190,8 @@ void nr_schedule_pucch(int Mod_idP,
...
@@ -190,6 +190,8 @@ void nr_schedule_pucch(int Mod_idP,
frame_t
frameP
,
frame_t
frameP
,
sub_frame_t
slotP
);
sub_frame_t
slotP
);
void
nr_schedule_srs
(
module_id_t
module_idP
,
frame_t
frameP
,
sub_frame_t
slotP
);
void
nr_csirs_scheduling
(
int
Mod_idP
,
void
nr_csirs_scheduling
(
int
Mod_idP
,
frame_t
frame
,
frame_t
frame
,
sub_frame_t
slot
,
sub_frame_t
slot
,
...
...
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