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
bbb28551
Commit
bbb28551
authored
Feb 28, 2024
by
Robert Schmidt
Committed by
sagar arora
May 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use MAX_MOBILES_PER_GNB in 5G NR code
NUMBER_OF_UE_MAX is a 4G constant, use 5G one instead
parent
ab89bc3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
openair1/PHY/TOOLS/nr_phy_scope.c
openair1/PHY/TOOLS/nr_phy_scope.c
+7
-7
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+1
-1
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+1
-1
No files found.
openair1/PHY/TOOLS/nr_phy_scope.c
View file @
bbb28551
...
@@ -614,8 +614,8 @@ static void pucchIQ (OAIgraph_t *graph, scopeData_t *p, int nb_UEs) {
...
@@ -614,8 +614,8 @@ static void pucchIQ (OAIgraph_t *graph, scopeData_t *p, int nb_UEs) {
static
void
puschThroughtput
(
OAIgraph_t
*
graph
,
scopeData_t
*
p
,
int
nb_UEs
)
{
static
void
puschThroughtput
(
OAIgraph_t
*
graph
,
scopeData_t
*
p
,
int
nb_UEs
)
{
// PUSCH Throughput
// PUSCH Throughput
/*
/*
float tput_time_enb[
NUMBER_OF_UE_MAX
][TPUT_WINDOW_LENGTH] = {{0}};
float tput_time_enb[
MAX_MOBILES_PER_GNB
][TPUT_WINDOW_LENGTH] = {{0}};
float tput_enb[
NUMBER_OF_UE_MAX
][TPUT_WINDOW_LENGTH] = {{0}};
float tput_enb[
MAX_MOBILES_PER_GNB
][TPUT_WINDOW_LENGTH] = {{0}};
memmove( tput_time_enb[UE_id], &tput_time_enb[UE_id][1], (TPUT_WINDOW_LENGTH-1)*sizeof(float) );
memmove( tput_time_enb[UE_id], &tput_time_enb[UE_id][1], (TPUT_WINDOW_LENGTH-1)*sizeof(float) );
memmove( tput_enb[UE_id], &tput_enb[UE_id][1], (TPUT_WINDOW_LENGTH-1)*sizeof(float) );
memmove( tput_enb[UE_id], &tput_enb[UE_id][1], (TPUT_WINDOW_LENGTH-1)*sizeof(float) );
...
@@ -725,7 +725,7 @@ static void *scope_thread_gNB(void *arg) {
...
@@ -725,7 +725,7 @@ static void *scope_thread_gNB(void *arg) {
int
fl_argc
=
1
;
int
fl_argc
=
1
;
char
*
name
=
"5G-gNB-scope"
;
char
*
name
=
"5G-gNB-scope"
;
fl_initialize
(
&
fl_argc
,
&
name
,
NULL
,
0
,
0
);
fl_initialize
(
&
fl_argc
,
&
name
,
NULL
,
0
,
0
);
int
nb_ue
=
min
(
NUMBER_OF_UE_MAX
,
scope_enb_num_ue
);
int
nb_ue
=
min
(
MAX_MOBILES_PER_GNB
,
scope_enb_num_ue
);
OAI_phy_scope_t
*
form_gnb
=
create_phy_scope_gnb
();
OAI_phy_scope_t
*
form_gnb
=
create_phy_scope_gnb
();
while
(
!
oai_exit
)
{
while
(
!
oai_exit
)
{
...
@@ -985,9 +985,9 @@ static void uePdschIQ (scopeGraphData_t **data, OAIgraph_t *graph, PHY_VARS_NR_
...
@@ -985,9 +985,9 @@ static void uePdschIQ (scopeGraphData_t **data, OAIgraph_t *graph, PHY_VARS_NR_
}
}
static
void
uePdschThroughput
(
scopeGraphData_t
**
data
,
OAIgraph_t
*
graph
,
PHY_VARS_NR_UE
*
phy_vars_ue
,
int
eNB_id
,
int
UE_id
)
{
static
void
uePdschThroughput
(
scopeGraphData_t
**
data
,
OAIgraph_t
*
graph
,
PHY_VARS_NR_UE
*
phy_vars_ue
,
int
eNB_id
,
int
UE_id
)
{
/*
/*
float tput_time_ue[
NUMBER_OF_UE_MAX
][TPUT_WINDOW_LENGTH] = {{0}};
float tput_time_ue[
MAX_MOBILES_PER_GNB
][TPUT_WINDOW_LENGTH] = {{0}};
float tput_ue[
NUMBER_OF_UE_MAX
][TPUT_WINDOW_LENGTH] = {{0}};
float tput_ue[
MAX_MOBILES_PER_GNB
][TPUT_WINDOW_LENGTH] = {{0}};
float tput_ue_max[
NUMBER_OF_UE_MAX
] = {0};
float tput_ue_max[
MAX_MOBILES_PER_GNB
] = {0};
// PDSCH Throughput
// PDSCH Throughput
...
@@ -1178,7 +1178,7 @@ static void reset_stats_gNB(FL_OBJECT *button,
...
@@ -1178,7 +1178,7 @@ static void reset_stats_gNB(FL_OBJECT *button,
int i,k;
int i,k;
//PHY_VARS_gNB *phy_vars_gNB = RC.gNB[0][0];
//PHY_VARS_gNB *phy_vars_gNB = RC.gNB[0][0];
for (i=0; i<
NUMBER_OF_UE_MAX
; i++) {
for (i=0; i<
MAX_MOBILES_PER_GNB
; i++) {
for (k=0; k<8; k++) { //harq_processes
for (k=0; k<8; k++) { //harq_processes
/* for (j=0; j<phy_vars_gNB->dlsch[i][0]->Mlimit; j++) {
/* for (j=0; j<phy_vars_gNB->dlsch[i][0]->Mlimit; j++) {
phy_vars_gNB->UE_stats[i].dlsch_NAK[k][j]=0;
phy_vars_gNB->UE_stats[i].dlsch_NAK[k][j]=0;
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
bbb28551
...
@@ -136,7 +136,7 @@ nrUE_params_t *get_nrUE_params(void) {
...
@@ -136,7 +136,7 @@ nrUE_params_t *get_nrUE_params(void) {
uint16_t
n_rnti
=
0x1234
;
uint16_t
n_rnti
=
0x1234
;
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
channel_desc_t
*
UE2gNB
[
NUMBER_OF_UE_MAX
][
NUMBER_OF_gNB_MAX
];
channel_desc_t
*
UE2gNB
[
MAX_MOBILES_PER_GNB
][
NUMBER_OF_gNB_MAX
];
int
NB_UE_INST
=
1
;
int
NB_UE_INST
=
1
;
configmodule_interface_t
*
uniqCfg
=
NULL
;
configmodule_interface_t
*
uniqCfg
=
NULL
;
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
bbb28551
...
@@ -317,7 +317,7 @@ static void rrc_gNB_CU_DU_init(gNB_RRC_INST *rrc)
...
@@ -317,7 +317,7 @@ static void rrc_gNB_CU_DU_init(gNB_RRC_INST *rrc)
void
openair_rrc_gNB_configuration
(
gNB_RRC_INST
*
rrc
,
gNB_RrcConfigurationReq
*
configuration
)
void
openair_rrc_gNB_configuration
(
gNB_RRC_INST
*
rrc
,
gNB_RrcConfigurationReq
*
configuration
)
{
{
AssertFatal
(
rrc
!=
NULL
,
"RC.nrrrc not initialized!"
);
AssertFatal
(
rrc
!=
NULL
,
"RC.nrrrc not initialized!"
);
AssertFatal
(
NUMBER_OF_UE_MAX
<
(
module_id_t
)
0xFFFFFFFFFFFFFFFF
,
" variable overflow"
);
AssertFatal
(
MAX_MOBILES_PER_GNB
<
(
module_id_t
)
0xFFFFFFFFFFFFFFFF
,
" variable overflow"
);
AssertFatal
(
configuration
!=
NULL
,
"configuration input is null
\n
"
);
AssertFatal
(
configuration
!=
NULL
,
"configuration input is null
\n
"
);
rrc
->
module_id
=
0
;
rrc
->
module_id
=
0
;
rrc_gNB_CU_DU_init
(
rrc
);
rrc_gNB_CU_DU_init
(
rrc
);
...
...
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