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
02e1b643
Commit
02e1b643
authored
Jul 13, 2023
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small code review
parent
e198b741
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+1
-1
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+2
-2
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+2
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
+2
-1
No files found.
openair1/PHY/defs_nr_common.h
View file @
02e1b643
...
...
@@ -45,7 +45,7 @@
#define MAX_NUM_SUBCARRIER_SPACING 5
#define NR_MAX_OFDM_SYMBOL_SIZE 4096
#define NR_SYMBOLS_PER_SLOT
14
#define NR_SYMBOLS_PER_SLOT
NR_NUMBER_OF_SYMBOLS_PER_SLOT
#define ONE_OVER_SQRT2_Q15 23170
#define ONE_OVER_TWO_Q15 16384
...
...
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
02e1b643
...
...
@@ -366,8 +366,8 @@ void config_common_ue(NR_UE_MAC_INST_t *mac,
cfg
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
=
0
;
cfg
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
=
0
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
cfg
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
+=
(
(
uint32_t
)
scc
->
ssb_PositionsInBurst
->
choice
.
longBitmap
.
buf
[
3
-
i
]
<<
i
*
8
)
;
cfg
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
+=
(
(
uint32_t
)
scc
->
ssb_PositionsInBurst
->
choice
.
longBitmap
.
buf
[
7
-
i
]
<<
i
*
8
)
;
cfg
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
+=
(
uint32_t
)
scc
->
ssb_PositionsInBurst
->
choice
.
longBitmap
.
buf
[
3
-
i
]
<<
i
*
8
;
cfg
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
+=
(
uint32_t
)
scc
->
ssb_PositionsInBurst
->
choice
.
longBitmap
.
buf
[
7
-
i
]
<<
i
*
8
;
}
break
;
default:
...
...
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
02e1b643
...
...
@@ -342,8 +342,8 @@ static void config_common(gNB_MAC_INST *nrmac, int pdsch_AntennaPorts, int pusch
cfg
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
.
value
=
0
;
cfg
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
.
value
=
0
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
cfg
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
.
value
+=
(
(
uint32_t
)
scc
->
ssb_PositionsInBurst
->
choice
.
longBitmap
.
buf
[
3
-
i
]
<<
i
*
8
)
;
cfg
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
.
value
+=
(
(
uint32_t
)
scc
->
ssb_PositionsInBurst
->
choice
.
longBitmap
.
buf
[
7
-
i
]
<<
i
*
8
)
;
cfg
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
.
value
+=
(
uint32_t
)
scc
->
ssb_PositionsInBurst
->
choice
.
longBitmap
.
buf
[
3
-
i
]
<<
i
*
8
;
cfg
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
.
value
+=
(
uint32_t
)
scc
->
ssb_PositionsInBurst
->
choice
.
longBitmap
.
buf
[
7
-
i
]
<<
i
*
8
;
}
break
;
default:
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
View file @
02e1b643
...
...
@@ -40,6 +40,7 @@
#include "UTIL/OPT/opt.h"
#include "RRC/NR/nr_rrc_config.h"
#include "common/utils/nr/nr_common.h"
#include "openair1/PHY/defs_nr_common.h"
#define ENABLE_MAC_PAYLOAD_DEBUG
...
...
@@ -101,7 +102,7 @@ static void fill_ssb_vrb_map(NR_COMMON_channels_t *cc, int rbStart, int ssb_subc
uint16_t
*
vrb_map
=
cc
[
CC_id
].
vrb_map
;
const
int
extra_prb
=
ssb_subcarrier_offset
>
0
;
for
(
int
rb
=
0
;
rb
<
20
+
extra_prb
;
rb
++
)
vrb_map
[
rbStart
+
rb
]
=
SL_to_bitmap
(
symStart
%
14
,
4
);
vrb_map
[
rbStart
+
rb
]
=
SL_to_bitmap
(
symStart
%
NR_SYMBOLS_PER_SLOT
,
4
);
}
void
schedule_nr_mib
(
module_id_t
module_idP
,
frame_t
frameP
,
sub_frame_t
slotP
,
nfapi_nr_dl_tti_request_t
*
DL_req
)
...
...
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