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
Michael Black
OpenXG-RAN
Commits
166aae35
Commit
166aae35
authored
Aug 10, 2022
by
francescomani
Committed by
Robert Schmidt
Aug 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes to get 100MHz working with 2 layers
parent
61312ca6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
19 deletions
+19
-19
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface_scf.h
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface_scf.h
+1
-1
openair1/PHY/MODULATION/nr_modulation.c
openair1/PHY/MODULATION/nr_modulation.c
+2
-2
openair1/PHY/MODULATION/nr_modulation.h
openair1/PHY/MODULATION/nr_modulation.h
+2
-2
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
+2
-2
openair2/LAYER2/NR_MAC_COMMON/nr_compute_tbs_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_compute_tbs_common.c
+10
-10
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
+1
-1
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+1
-1
No files found.
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface_scf.h
View file @
166aae35
...
@@ -40,7 +40,7 @@ typedef struct {
...
@@ -40,7 +40,7 @@ typedef struct {
uint16_t
length
;
uint16_t
length
;
union
{
union
{
uint32_t
*
ptr
;
uint32_t
*
ptr
;
uint32_t
direct
[
16384
];
uint32_t
direct
[
38016
];
}
value
;
}
value
;
}
nfapi_nr_tx_data_request_tlv_t
;
}
nfapi_nr_tx_data_request_tlv_t
;
...
...
openair1/PHY/MODULATION/nr_modulation.c
View file @
166aae35
...
@@ -251,7 +251,7 @@ void nr_modulation(uint32_t *in,
...
@@ -251,7 +251,7 @@ void nr_modulation(uint32_t *in,
void
nr_layer_mapping
(
int16_t
**
mod_symbs
,
void
nr_layer_mapping
(
int16_t
**
mod_symbs
,
uint8_t
n_layers
,
uint8_t
n_layers
,
uint
16
_t
n_symbs
,
uint
32
_t
n_symbs
,
int16_t
**
tx_layers
)
int16_t
**
tx_layers
)
{
{
LOG_D
(
PHY
,
"Doing layer mapping for %d layers, %d symbols
\n
"
,
n_layers
,
n_symbs
);
LOG_D
(
PHY
,
"Doing layer mapping for %d layers, %d symbols
\n
"
,
n_layers
,
n_symbs
);
...
@@ -323,7 +323,7 @@ void nr_layer_mapping(int16_t **mod_symbs,
...
@@ -323,7 +323,7 @@ void nr_layer_mapping(int16_t **mod_symbs,
void
nr_ue_layer_mapping
(
int16_t
*
mod_symbs
,
void
nr_ue_layer_mapping
(
int16_t
*
mod_symbs
,
uint8_t
n_layers
,
uint8_t
n_layers
,
uint
16
_t
n_symbs
,
uint
32
_t
n_symbs
,
int16_t
**
tx_layers
)
{
int16_t
**
tx_layers
)
{
for
(
int
i
=
0
;
i
<
n_symbs
/
n_layers
;
i
++
)
{
for
(
int
i
=
0
;
i
<
n_symbs
/
n_layers
;
i
++
)
{
...
...
openair1/PHY/MODULATION/nr_modulation.h
View file @
166aae35
...
@@ -56,7 +56,7 @@ void nr_modulation(uint32_t *in,
...
@@ -56,7 +56,7 @@ void nr_modulation(uint32_t *in,
void
nr_layer_mapping
(
int16_t
**
mod_symbs
,
void
nr_layer_mapping
(
int16_t
**
mod_symbs
,
uint8_t
n_layers
,
uint8_t
n_layers
,
uint
16
_t
n_symbs
,
uint
32
_t
n_symbs
,
int16_t
**
tx_layers
);
int16_t
**
tx_layers
);
/*! \brief Perform NR layer mapping. TS 38.211 V15.4.0 subclause 7.3.1.3
/*! \brief Perform NR layer mapping. TS 38.211 V15.4.0 subclause 7.3.1.3
...
@@ -68,7 +68,7 @@ void nr_layer_mapping(int16_t **mod_symbs,
...
@@ -68,7 +68,7 @@ void nr_layer_mapping(int16_t **mod_symbs,
void
nr_ue_layer_mapping
(
int16_t
*
mod_symbs
,
void
nr_ue_layer_mapping
(
int16_t
*
mod_symbs
,
uint8_t
n_layers
,
uint8_t
n_layers
,
uint
16
_t
n_symbs
,
uint
32
_t
n_symbs
,
int16_t
**
tx_layers
);
int16_t
**
tx_layers
);
...
...
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
View file @
166aae35
...
@@ -103,7 +103,7 @@ void nr_generate_pdsch(processingData_L1tx_t *msgTx,
...
@@ -103,7 +103,7 @@ void nr_generate_pdsch(processingData_L1tx_t *msgTx,
uint32_t
***
pdsch_dmrs
=
gNB
->
nr_gold_pdsch_dmrs
[
slot
];
uint32_t
***
pdsch_dmrs
=
gNB
->
nr_gold_pdsch_dmrs
[
slot
];
uint16_t
dmrs_symbol_map
=
rel15
->
dlDmrsSymbPos
;
//single DMRS: 010000100 Double DMRS 110001100
uint16_t
dmrs_symbol_map
=
rel15
->
dlDmrsSymbPos
;
//single DMRS: 010000100 Double DMRS 110001100
uint8_t
dmrs_len
=
get_num_dmrs
(
rel15
->
dlDmrsSymbPos
);
uint8_t
dmrs_len
=
get_num_dmrs
(
rel15
->
dlDmrsSymbPos
);
uint
16
_t
nb_re
=
((
12
*
rel15
->
NrOfSymbols
)
-
nb_re_dmrs
*
dmrs_len
-
xOverhead
)
*
rel15
->
rbSize
*
rel15
->
nrOfLayers
;
uint
32
_t
nb_re
=
((
12
*
rel15
->
NrOfSymbols
)
-
nb_re_dmrs
*
dmrs_len
-
xOverhead
)
*
rel15
->
rbSize
*
rel15
->
nrOfLayers
;
uint8_t
Qm
=
rel15
->
qamModOrder
[
0
];
uint8_t
Qm
=
rel15
->
qamModOrder
[
0
];
uint32_t
encoded_length
=
nb_re
*
Qm
;
uint32_t
encoded_length
=
nb_re
*
Qm
;
int16_t
mod_dmrs
[
n_dmrs
<<
1
]
__attribute__
((
aligned
(
16
)));
int16_t
mod_dmrs
[
n_dmrs
<<
1
]
__attribute__
((
aligned
(
16
)));
...
@@ -254,7 +254,7 @@ void nr_generate_pdsch(processingData_L1tx_t *msgTx,
...
@@ -254,7 +254,7 @@ void nr_generate_pdsch(processingData_L1tx_t *msgTx,
1
+
dmrs_Type
,
nl
,
Wt
[
0
],
Wt
[
1
],
Wf
[
0
],
Wf
[
1
],
delta
,
l_prime
,
l0
,
dmrs_symbol
);
1
+
dmrs_Type
,
nl
,
Wt
[
0
],
Wt
[
1
],
Wf
[
0
],
Wf
[
1
],
delta
,
l_prime
,
l0
,
dmrs_symbol
);
#endif
#endif
uint
16
_t
m
=
0
,
dmrs_idx
=
0
;
uint
32
_t
m
=
0
,
dmrs_idx
=
0
;
// Loop Over OFDM symbols:
// Loop Over OFDM symbols:
for
(
int
l
=
rel15
->
StartSymbolIndex
;
l
<
rel15
->
StartSymbolIndex
+
rel15
->
NrOfSymbols
;
l
++
)
{
for
(
int
l
=
rel15
->
StartSymbolIndex
;
l
<
rel15
->
StartSymbolIndex
+
rel15
->
NrOfSymbols
;
l
++
)
{
...
...
openair2/LAYER2/NR_MAC_COMMON/nr_compute_tbs_common.c
View file @
166aae35
...
@@ -46,18 +46,18 @@ uint32_t nr_compute_tbs(uint16_t Qm,
...
@@ -46,18 +46,18 @@ uint32_t nr_compute_tbs(uint16_t Qm,
uint8_t
Nl
)
uint8_t
Nl
)
{
{
uint16_t
nbp_re
,
nb_re
;
uint32_t
nr_tbs
=
0
;
uint32_t
Ninfo
,
Np_info
,
C
;
uint8_t
n
;
LOG_D
(
NR_MAC
,
"In %s: nb_symb_sch %d, nb_dmrs_prb %d, nb_rb %d, nb_rb_oh %d, tb_scaling %d Nl %d
\n
"
,
__FUNCTION__
,
nb_symb_sch
,
nb_dmrs_prb
,
nb_rb
,
nb_rb_oh
,
tb_scaling
,
Nl
);
LOG_D
(
NR_MAC
,
"In %s: nb_symb_sch %d, nb_dmrs_prb %d, nb_rb %d, nb_rb_oh %d, tb_scaling %d Nl %d
\n
"
,
__FUNCTION__
,
nb_symb_sch
,
nb_dmrs_prb
,
nb_rb
,
nb_rb_oh
,
tb_scaling
,
Nl
);
nbp_re
=
NR_NB_SC_PER_RB
*
nb_symb_sch
-
nb_dmrs_prb
-
nb_rb_oh
;
const
uint32_t
nbp_re
=
NR_NB_SC_PER_RB
*
nb_symb_sch
-
nb_dmrs_prb
-
nb_rb_oh
;
nb_re
=
min
(
156
,
nbp_re
)
*
nb_rb
;
const
uint32_t
nb_re
=
min
(
156
,
nbp_re
)
*
nb_rb
;
// Intermediate number of information bits
// Intermediate number of information bits
// R is tabulated as 10 times the actual code rate
// Rx1024 is tabulated as 10 times the actual code rate
Ninfo
=
((
nb_re
*
R
*
Qm
*
Nl
/
10
)
>>
10
)
>>
tb_scaling
;
const
uint32_t
R_5
=
R
/
5
;
// R can be fractional so we can't divide by 10
// So we ned to right shift by 11 (10 for x1024 and 1 additional as above)
const
uint32_t
Ninfo
=
((
nb_re
*
R_5
*
Qm
*
Nl
)
>>
11
)
>>
tb_scaling
;
uint32_t
nr_tbs
=
0
;
uint32_t
Np_info
,
C
,
n
;
if
(
Ninfo
<=
3824
)
{
if
(
Ninfo
<=
3824
)
{
n
=
max
(
3
,
floor
(
log2
(
Ninfo
))
-
6
);
n
=
max
(
3
,
floor
(
log2
(
Ninfo
))
-
6
);
...
@@ -85,7 +85,7 @@ uint32_t nr_compute_tbs(uint16_t Qm,
...
@@ -85,7 +85,7 @@ uint32_t nr_compute_tbs(uint16_t Qm,
}
}
}
}
LOG_D
(
NR_MAC
,
"In %s: Ninfo %
d
nbp_re %d nb_re %d Qm %d, R %d, tbs %d bits
\n
"
,
__FUNCTION__
,
Ninfo
,
nbp_re
,
nb_re
,
Qm
,
R
,
nr_tbs
);
LOG_D
(
NR_MAC
,
"In %s: Ninfo %
u
nbp_re %d nb_re %d Qm %d, R %d, tbs %d bits
\n
"
,
__FUNCTION__
,
Ninfo
,
nbp_re
,
nb_re
,
Qm
,
R
,
nr_tbs
);
return
nr_tbs
;
return
nr_tbs
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
View file @
166aae35
...
@@ -610,7 +610,7 @@ void schedule_nr_sib1(module_id_t module_idP, frame_t frameP, sub_frame_t slotP)
...
@@ -610,7 +610,7 @@ void schedule_nr_sib1(module_id_t module_idP, frame_t frameP, sub_frame_t slotP)
nfapi_nr_pdu_t
*
tx_req
=
&
gNB_mac
->
TX_req
[
CC_id
].
pdu_list
[
ntx_req
];
nfapi_nr_pdu_t
*
tx_req
=
&
gNB_mac
->
TX_req
[
CC_id
].
pdu_list
[
ntx_req
];
// Data to be transmitted
// Data to be transmitted
bzero
(
tx_req
->
TLVs
[
0
].
value
.
direct
,
MAX_NUM_NR_DLSCH_SEGMENTS_PER_LAYER
*
1056
);
bzero
(
tx_req
->
TLVs
[
0
].
value
.
direct
,
sizeof
(
tx_req
->
TLVs
[
0
].
value
.
direct
)
);
memcpy
(
tx_req
->
TLVs
[
0
].
value
.
direct
,
sib1_payload
,
sib1_sdu_length
);
memcpy
(
tx_req
->
TLVs
[
0
].
value
.
direct
,
sib1_payload
,
sib1_sdu_length
);
tx_req
->
PDU_length
=
TBS
;
tx_req
->
PDU_length
=
TBS
;
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
166aae35
...
@@ -475,7 +475,7 @@ typedef struct NR_UE_harq {
...
@@ -475,7 +475,7 @@ typedef struct NR_UE_harq {
/* Transport block to be sent using this HARQ process, its size is in
/* Transport block to be sent using this HARQ process, its size is in
* sched_pdsch */
* sched_pdsch */
uint32_t
transportBlock
[
16384
];
uint32_t
transportBlock
[
38016
];
// valid up to 4 layers
uint32_t
tb_size
;
uint32_t
tb_size
;
/// sched_pdsch keeps information on MCS etc used for the initial transmission
/// sched_pdsch keeps information on MCS etc used for the initial transmission
...
...
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