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
859aa1d2
Commit
859aa1d2
authored
Aug 03, 2018
by
Guy De Souza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial BWP config
parent
271303c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
11 deletions
+32
-11
openair1/PHY/INIT/nr_parms.c
openair1/PHY/INIT/nr_parms.c
+15
-1
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
+4
-0
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+7
-4
targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf
.../GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf
+6
-6
No files found.
openair1/PHY/INIT/nr_parms.c
View file @
859aa1d2
...
...
@@ -40,7 +40,7 @@ int nr_init_frame_parms(nfapi_nr_config_request_t* config,
LOG_I
(
PHY
,
"Initializing frame parms for mu %d, N_RB %d, Ncp %d
\n
"
,
mu
,
N_RB
,
Ncp
);
#endif
if
(
Ncp
==
EXTENDED
)
if
(
Ncp
==
NFAPI_CP_
EXTENDED
)
AssertFatal
(
mu
==
NR_MU_2
,
"Invalid cyclic prefix %d for numerology index %d
\n
"
,
Ncp
,
mu
);
switch
(
mu
)
{
...
...
@@ -148,6 +148,14 @@ int nr_init_frame_parms(nfapi_nr_config_request_t* config,
frame_parms
->
samples_per_frame
=
10
*
frame_parms
->
samples_per_subframe
;
frame_parms
->
freq_range
=
(
frame_parms
->
dl_CarrierFreq
<
6e9
)
?
nr_FR1
:
nr_FR2
;
// Initial bandwidth part configuration -- full carrier bandwidth
frame_parms
->
initial_bwp_dl
.
bwp_id
=
0
;
frame_parms
->
initial_bwp_dl
.
scs
=
frame_parms
->
subcarrier_spacing
;
frame_parms
->
initial_bwp_dl
.
location
=
0
;
frame_parms
->
initial_bwp_dl
.
N_RB
=
N_RB
;
frame_parms
->
initial_bwp_dl
.
cyclic_prefix
=
Ncp
;
frame_parms
->
initial_bwp_dl
.
ofdm_symbol_size
=
frame_parms
->
ofdm_symbol_size
;
return
0
;
}
...
...
@@ -300,4 +308,10 @@ void nr_dump_frame_parms(NR_DL_FRAME_PARMS *frame_parms)
LOG_I
(
PHY
,
"frame_parms->samples_per_frame_wCP=%d
\n
"
,
frame_parms
->
samples_per_frame_wCP
);
LOG_I
(
PHY
,
"frame_parms->samples_per_subframe=%d
\n
"
,
frame_parms
->
samples_per_subframe
);
LOG_I
(
PHY
,
"frame_parms->samples_per_frame=%d
\n
"
,
frame_parms
->
samples_per_frame
);
LOG_I
(
PHY
,
"frame_parms->initial_bwp_dl.bwp_id=%d
\n
"
,
frame_parms
->
initial_bwp_dl
.
bwp_id
);
LOG_I
(
PHY
,
"frame_parms->initial_bwp_dl.scs=%d
\n
"
,
frame_parms
->
initial_bwp_dl
.
scs
);
LOG_I
(
PHY
,
"frame_parms->initial_bwp_dl.N_RB=%d
\n
"
,
frame_parms
->
initial_bwp_dl
.
N_RB
);
LOG_I
(
PHY
,
"frame_parms->initial_bwp_dl.cyclic_prefix=%d
\n
"
,
frame_parms
->
initial_bwp_dl
.
cyclic_prefix
);
LOG_I
(
PHY
,
"frame_parms->initial_bwp_dl.location=%d
\n
"
,
frame_parms
->
initial_bwp_dl
.
location
);
LOG_I
(
PHY
,
"frame_parms->initial_bwp_dl.ofdm_symbol_size=%d
\n
"
,
frame_parms
->
initial_bwp_dl
.
ofdm_symbol_size
);
}
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
View file @
859aa1d2
...
...
@@ -32,6 +32,7 @@
#include "nr_dci.h"
void
nr_fill_dci_and_dlsch
(
PHY_VARS_gNB
*
gNB
,
int
frame
,
int
subframe
,
...
...
@@ -77,6 +78,9 @@ void nr_fill_dci_and_dlsch(PHY_VARS_gNB *gNB,
break
;
}
LOG_I
(
MAC
,
"DCI PDU: [0]->0x%08x
\t
[0]->0x%08x [1]->0x%08x
\t
[2]->0x%08x
\t
[3]->0x%08x
\n
"
,
dci_pdu
[
0
],
dci_pdu
[
1
],
dci_pdu
[
2
],
dci_pdu
[
3
]);
/// rest of DCI alloc
memcpy
((
void
*
)
&
dci_alloc
->
pdcch_params
,
(
void
*
)
params_rel15
,
sizeof
(
nfapi_nr_dl_config_pdcch_parameters_rel15_t
));
dci_alloc
->
size
=
nr_get_dci_size
(
NFAPI_NR_DL_DCI_FORMAT_1_0
,
...
...
openair1/PHY/defs_nr_common.h
View file @
859aa1d2
...
...
@@ -106,14 +106,18 @@ typedef enum {
}
nr_frequency_range_e
;
typedef
struct
NR_BWP_PARMS
{
/// Associated numerology index
uint8_t
numerology_index
;
/// Freq domain location
/// BWP ID
uint8_t
bwp_id
;
/// Subcarrier spacing
nr_scs_e
scs
;
/// Freq domain location -- 1st CRB index
uint8_t
location
;
/// Bandwidth in PRB
uint16_t
N_RB
;
/// Size of FFT/IFFT
uint16_t
ofdm_symbol_size
;
/// Cyclic prefix
uint8_t
cyclic_prefix
;
}
NR_BWP_PARMS
;
typedef
struct
{
...
...
@@ -191,7 +195,6 @@ typedef struct NR_DL_FRAME_PARMS {
uint8_t
ttis_per_subframe
;
/// NR number of slots per tti . Assumption only 2 Slot per TTI is supported (Slot Config 1 in 38.211)
uint8_t
slots_per_tti
;
//#endif
/// Number of Physical transmit antennas in node
uint8_t
nb_antennas_tx
;
/// Number of Receive antennas in node
...
...
targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf
View file @
859aa1d2
...
...
@@ -53,11 +53,11 @@ gNBs =
DL_FreqBandIndicatorNR
=
15
;
DL_absoluteFrequencyPointA
=
15
;
DL_offsetToCarrier
=
15
;
DL_SCS_SubcarrierSpacing
=
"kHz
15
"
;
DL_SCS_SubcarrierSpacing
=
"kHz
30
"
;
DL_SCS_SpecificCarrier_k0
=
0
;
DL_carrierBandwidth
=
15
;
DL_locationAndBandwidth
=
15
;
DL_BWP_SubcarrierSpacing
=
"kHz
15
"
;
DL_BWP_SubcarrierSpacing
=
"kHz
30
"
;
DL_BWP_prefix_type
=
"NORMAL"
;
UL_FreqBandIndicatorNR
=
15
;
UL_absoluteFrequencyPointA
=
13
;
...
...
@@ -65,11 +65,11 @@ gNBs =
UL_p_Max
= -
1
;
UL_frequencyShift7p5khz
=
"TRUE"
;
UL_offsetToCarrier
=
10
;
UL_SCS_SubcarrierSpacing
=
"kHz
15
"
;
UL_SCS_SubcarrierSpacing
=
"kHz
30
"
;
UL_SCS_SpecificCarrier_k0
=
0
;
UL_carrierBandwidth
=
15
;
UL_locationAndBandwidth
=
15
;
UL_BWP_SubcarrierSpacing
=
"kHz
15
"
;
UL_BWP_SubcarrierSpacing
=
"kHz
30
"
;
UL_BWP_prefix_type
=
"NORMAL"
;
ServingCellConfigCommon__ssb_PositionsInBurst_PR
=
"shortBitmap"
;
ServingCellConfigCommon_ssb_periodicityServingCell
=
10
;
...
...
@@ -102,7 +102,7 @@ gNBs =
prach_RootSequenceIndex_choice
=
"l839"
;
prach_RootSequenceIndex_l839
=
0
;
prach_RootSequenceIndex_l139
=
0
;
prach_msg1_SubcarrierSpacing
=
"kHz
15
"
;
prach_msg1_SubcarrierSpacing
=
"kHz
30
"
;
restrictedSetConfig
=
"unrestrictedSet"
;
msg3_transformPrecoding
=
"ENABLE"
;
prach_ConfigurationIndex
=
10
;
...
...
@@ -127,7 +127,7 @@ gNBs =
symbolsInResourceBlock
=
"oneSlot"
;
periodicityAndPattern
=
2
;
RateMatchPattern_controlResourceSet
=
5
;
RateMatchPattern_subcarrierSpacing
=
"kHz
15
"
;
RateMatchPattern_subcarrierSpacing
=
"kHz
30
"
;
RateMatchPattern_mode
=
"dynamic"
;
searchSpaceSIB1
=
10
;
searchSpaceOtherSystemInformation
=
10
;
...
...
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