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
0a9ea26b
Commit
0a9ea26b
authored
Feb 12, 2019
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bit-wise choice of SSB to transmit
parent
102ec930
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
openair1/PHY/INIT/nr_parms.c
openair1/PHY/INIT/nr_parms.c
+1
-1
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+1
-1
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+3
-6
No files found.
openair1/PHY/INIT/nr_parms.c
View file @
0a9ea26b
...
...
@@ -46,7 +46,7 @@ int nr_init_frame_parms0(NR_DL_FRAME_PARMS *fp,
fp
->
numerology_index
=
mu
;
fp
->
Ncp
=
Ncp
;
fp
->
N_RB_DL
=
N_RB_DL
;
fp
->
L_ssb
=
8
;
// TODO get the number of SSB value from higher layers (and config file finally)
fp
->
L_ssb
=
255
;
// TODO get the number of SSB value from higher layers (and config file finally)
fp
->
ssb_type
=
nr_ssb_type_B
;
// TODO get the type from higher layers (and config file finally)
...
...
openair1/PHY/defs_nr_common.h
View file @
0a9ea26b
...
...
@@ -309,7 +309,7 @@ typedef struct NR_DL_FRAME_PARMS {
/// SSB type
nr_ssb_type_e
ssb_type
;
/// Number of SSB
uint
8
_t
L_ssb
;
uint
64
_t
L_ssb
;
/// PBCH polar encoder params
t_nrPolar_params
pbch_polar_params
;
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
0a9ea26b
...
...
@@ -150,9 +150,6 @@ void nr_common_signal_procedures (PHY_VARS_gNB *gNB,int frame, int slot) {
Lmax
=
(
fp
->
dl_CarrierFreq
<
3e9
)
?
4
:
8
;
// max number of ssb
if
(
fp
->
L_ssb
>
Lmax
)
AssertFatal
(
0
==
1
,
"Invalid number of SSB larger than %d
\n
"
,
Lmax
);
LOG_D
(
PHY
,
"common_signal_procedures: frame %d, slot %d
\n
"
,
frame
,
slot
);
if
(
rel_slot
<
10
&&
rel_slot
>=
0
)
...
...
@@ -160,7 +157,7 @@ void nr_common_signal_procedures (PHY_VARS_gNB *gNB,int frame, int slot) {
for
(
int
i
=
0
;
i
<
2
;
i
++
)
// max two SSB per frame
{
ssb_index
=
i
+
2
*
rel_slot
;
// computing the ssb_index
if
(
ssb_index
<
(
fp
->
L_ssb
))
// generating the ssb only if the current ssb index is lower than number of SSB configured
if
(
(
fp
->
L_ssb
>>
ssb_index
)
&
0x01
)
// generating the ssb only if the bit of L_ssb at current ssb index is 1
{
int
ssb_start_symbol_abs
=
nr_get_ssb_start_symbol
(
cfg
,
fp
,
ssb_index
);
// computing the starting symbol for current ssb
ssb_start_symbol
=
ssb_start_symbol_abs
%
14
;
// start symbol wrt slot
...
...
@@ -229,7 +226,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
num_dci
=
gNB
->
pdcch_vars
.
num_dci
;
num_pdsch_rnti
=
gNB
->
pdcch_vars
.
num_pdsch_rnti
;
if
(
num_dci
)
{
/*
if (num_dci) {
LOG_I(PHY, "[gNB %d] Frame %d slot %d \
Calling nr_generate_dci_top (number of DCI %d)\n", gNB->Mod_id, frame, slot, num_dci);
...
...
@@ -248,7 +245,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
AMP, slot, *fp, *cfg);
}
}
}
}
*/
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_ENB_TX
+
offset
,
0
);
}
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