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
spbro
OpenXG-RAN
Commits
ce846e6f
Commit
ce846e6f
authored
Jul 21, 2020
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix in fapi function in dci for ul
parent
60b82248
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+3
-0
openair1/SCHED_NR/fapi_nr_l1.c
openair1/SCHED_NR/fapi_nr_l1.c
+1
-0
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+4
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+4
-8
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+1
-1
No files found.
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
ce846e6f
...
@@ -1047,6 +1047,8 @@ void init_pucch2_luts() {
...
@@ -1047,6 +1047,8 @@ void init_pucch2_luts() {
bit
=
(
i
&
0x80
)
>
0
?
0
:
1
;
bit
=
(
i
&
0x80
)
>
0
?
0
:
1
;
*
lut_num_i
=
_mm_insert_epi16
(
*
lut_num_i
,
bit
,
7
);
*
lut_num_i
=
_mm_insert_epi16
(
*
lut_num_i
,
bit
,
7
);
*
lut_den_i
=
_mm_insert_epi16
(
*
lut_den_i
,
1
-
bit
,
7
);
*
lut_den_i
=
_mm_insert_epi16
(
*
lut_den_i
,
1
-
bit
,
7
);
#ifdef DEBUG_NR_PUCCH_RX
printf
(
"i %d, lut_num (%d,%d,%d,%d,%d,%d,%d,%d)
\n
"
,
i
,
printf
(
"i %d, lut_num (%d,%d,%d,%d,%d,%d,%d,%d)
\n
"
,
i
,
((
int16_t
*
)
lut_num_i
)[
0
],
((
int16_t
*
)
lut_num_i
)[
0
],
((
int16_t
*
)
lut_num_i
)[
1
],
((
int16_t
*
)
lut_num_i
)[
1
],
...
@@ -1056,6 +1058,7 @@ void init_pucch2_luts() {
...
@@ -1056,6 +1058,7 @@ void init_pucch2_luts() {
((
int16_t
*
)
lut_num_i
)[
5
],
((
int16_t
*
)
lut_num_i
)[
5
],
((
int16_t
*
)
lut_num_i
)[
6
],
((
int16_t
*
)
lut_num_i
)[
6
],
((
int16_t
*
)
lut_num_i
)[
7
]);
((
int16_t
*
)
lut_num_i
)[
7
]);
#endif
}
}
}
}
...
...
openair1/SCHED_NR/fapi_nr_l1.c
View file @
ce846e6f
...
@@ -160,6 +160,7 @@ void nr_schedule_response(NR_Sched_Rsp_t *Sched_INFO){
...
@@ -160,6 +160,7 @@ void nr_schedule_response(NR_Sched_Rsp_t *Sched_INFO){
gNB
->
dlsch
[
i
][
0
]
->
harq_mask
=
0
;
gNB
->
dlsch
[
i
][
0
]
->
harq_mask
=
0
;
}
}
gNB
->
pdcch_pdu
=
NULL
;
gNB
->
pdcch_pdu
=
NULL
;
gNB
->
ul_dci_pdu
=
NULL
;
gNB
->
pbch_configured
=
0
;
gNB
->
pbch_configured
=
0
;
for
(
int
i
=
0
;
i
<
number_dl_pdu
;
i
++
)
{
for
(
int
i
=
0
;
i
<
number_dl_pdu
;
i
++
)
{
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
ce846e6f
...
@@ -162,7 +162,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
...
@@ -162,7 +162,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
if
(
gNB
->
pdcch_pdu
||
gNB
->
ul_dci_pdu
)
{
if
(
gNB
->
pdcch_pdu
||
gNB
->
ul_dci_pdu
)
{
LOG_
D
(
PHY
,
"[gNB %d] Frame %d slot %d Calling nr_generate_dci_top (number of UL/DL DCI %d/%d)
\n
"
,
LOG_
I
(
PHY
,
"[gNB %d] Frame %d slot %d Calling nr_generate_dci_top (number of UL/DL DCI %d/%d)
\n
"
,
gNB
->
Mod_id
,
frame
,
slot
,
gNB
->
Mod_id
,
frame
,
slot
,
gNB
->
ul_dci_pdu
==
NULL
?
0
:
gNB
->
ul_dci_pdu
->
pdcch_pdu
.
pdcch_pdu_rel15
.
numDlDci
,
gNB
->
ul_dci_pdu
==
NULL
?
0
:
gNB
->
ul_dci_pdu
->
pdcch_pdu
.
pdcch_pdu_rel15
.
numDlDci
,
gNB
->
pdcch_pdu
==
NULL
?
0
:
gNB
->
pdcch_pdu
->
pdcch_pdu_rel15
.
numDlDci
);
gNB
->
pdcch_pdu
==
NULL
?
0
:
gNB
->
pdcch_pdu
->
pdcch_pdu_rel15
.
numDlDci
);
...
@@ -438,6 +438,9 @@ void phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
...
@@ -438,6 +438,9 @@ void phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
(
ulsch_harq
->
slot
==
slot_rx
)
&&
(
ulsch_harq
->
slot
==
slot_rx
)
&&
(
ulsch_harq
->
handled
==
0
)){
(
ulsch_harq
->
handled
==
0
)){
LOG_I
(
PHY
,
"PUSCH generation started in frame %d slot %d
\n
"
,
frame_rx
,
slot_rx
);
#ifdef DEBUG_RXDATA
#ifdef DEBUG_RXDATA
NR_DL_FRAME_PARMS
*
frame_parms
=
&
gNB
->
frame_parms
;
NR_DL_FRAME_PARMS
*
frame_parms
=
&
gNB
->
frame_parms
;
RU_t
*
ru
=
gNB
->
RU_list
[
0
];
RU_t
*
ru
=
gNB
->
RU_list
[
0
];
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
ce846e6f
...
@@ -288,7 +288,7 @@ void copy_nr_ulreq(module_id_t module_idP, frame_t frameP, sub_frame_t slotP)
...
@@ -288,7 +288,7 @@ void copy_nr_ulreq(module_id_t module_idP, frame_t frameP, sub_frame_t slotP)
}
}
*/
*/
void
nr_schedule_
ul
sch
(
int
Mod_idP
,
void
nr_schedule_
pu
sch
(
int
Mod_idP
,
int
UE_id
,
int
UE_id
,
frame_t
frameP
,
frame_t
frameP
,
sub_frame_t
slotP
)
{
sub_frame_t
slotP
)
{
...
@@ -296,7 +296,6 @@ void nr_schedule_ulsch(int Mod_idP,
...
@@ -296,7 +296,6 @@ void nr_schedule_ulsch(int Mod_idP,
nfapi_nr_ul_tti_request_t
*
UL_tti_req
=
&
RC
.
nrmac
[
Mod_idP
]
->
UL_tti_req
[
0
];
nfapi_nr_ul_tti_request_t
*
UL_tti_req
=
&
RC
.
nrmac
[
Mod_idP
]
->
UL_tti_req
[
0
];
NR_UE_list_t
*
UE_list
=
&
RC
.
nrmac
[
Mod_idP
]
->
UE_list
;
NR_UE_list_t
*
UE_list
=
&
RC
.
nrmac
[
Mod_idP
]
->
UE_list
;
NR_sched_pusch
*
pusch
=
UE_list
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
;
NR_sched_pusch
*
pusch
=
UE_list
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
;
if
((
pusch
->
active
==
true
)
&&
(
frameP
==
pusch
->
frame
)
&&
(
slotP
==
pusch
->
slot
))
{
if
((
pusch
->
active
==
true
)
&&
(
frameP
==
pusch
->
frame
)
&&
(
slotP
==
pusch
->
slot
))
{
UL_tti_req
->
SFN
=
pusch
->
frame
;
UL_tti_req
->
SFN
=
pusch
->
frame
;
UL_tti_req
->
Slot
=
pusch
->
slot
;
UL_tti_req
->
Slot
=
pusch
->
slot
;
...
@@ -304,7 +303,8 @@ void nr_schedule_ulsch(int Mod_idP,
...
@@ -304,7 +303,8 @@ void nr_schedule_ulsch(int Mod_idP,
UL_tti_req
->
pdus_list
[
UL_tti_req
->
n_pdus
].
pdu_size
=
sizeof
(
nfapi_nr_pusch_pdu_t
);
UL_tti_req
->
pdus_list
[
UL_tti_req
->
n_pdus
].
pdu_size
=
sizeof
(
nfapi_nr_pusch_pdu_t
);
UL_tti_req
->
pdus_list
[
UL_tti_req
->
n_pdus
].
pusch_pdu
=
pusch
->
pusch_pdu
;
UL_tti_req
->
pdus_list
[
UL_tti_req
->
n_pdus
].
pusch_pdu
=
pusch
->
pusch_pdu
;
UL_tti_req
->
n_pdus
+=
1
;
UL_tti_req
->
n_pdus
+=
1
;
pusch
->
active
=
false
;
memset
((
void
*
)
UE_list
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
,
0
,
sizeof
(
NR_sched_pusch
));
}
}
}
}
...
@@ -398,9 +398,6 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
...
@@ -398,9 +398,6 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
nr_ulmix_slots
++
;
nr_ulmix_slots
++
;
if
(
slot_txP
==
0
&&
(
UE_list
->
fiveG_connected
[
UE_id
]
||
get_softmodem_params
()
->
phy_test
))
{
if
(
slot_txP
==
0
&&
(
UE_list
->
fiveG_connected
[
UE_id
]
||
get_softmodem_params
()
->
phy_test
))
{
memset
((
void
*
)
&
UE_list
->
UE_sched_ctrl
[
UE_id
].
sched_pusch
,
0
,
sizeof
(
NR_sched_pusch
));
for
(
int
k
=
0
;
k
<
nr_ulmix_slots
;
k
++
)
{
for
(
int
k
=
0
;
k
<
nr_ulmix_slots
;
k
++
)
{
memset
((
void
*
)
&
UE_list
->
UE_sched_ctrl
[
UE_id
].
sched_pucch
[
k
],
memset
((
void
*
)
&
UE_list
->
UE_sched_ctrl
[
UE_id
].
sched_pucch
[
k
],
0
,
0
,
...
@@ -504,12 +501,11 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
...
@@ -504,12 +501,11 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
}
}
}
}
// This schedules the DCI for Uplink and subsequently PUSCH
// This schedules the DCI for Uplink and subsequently PUSCH
if
(
UE_list
->
fiveG_connected
[
UE_id
])
{
if
(
UE_list
->
fiveG_connected
[
UE_id
])
{
int
tda
=
1
;
// time domain assignment hardcoded for now
int
tda
=
1
;
// time domain assignment hardcoded for now
schedule_fapi_ul_pdu
(
module_idP
,
frame_txP
,
slot_txP
,
num_slots_per_tdd
,
tda
);
schedule_fapi_ul_pdu
(
module_idP
,
frame_txP
,
slot_txP
,
num_slots_per_tdd
,
tda
);
nr_schedule_
ul
sch
(
module_idP
,
UE_id
,
frame_rxP
,
slot_rxP
);
nr_schedule_
pu
sch
(
module_idP
,
UE_id
,
frame_rxP
,
slot_rxP
);
}
}
if
(
UE_list
->
fiveG_connected
[
UE_id
]
&&
(
is_xlsch_in_slot
(
*
dlsch_in_slot_bitmap
,
slot_txP
%
num_slots_per_tdd
)))
{
if
(
UE_list
->
fiveG_connected
[
UE_id
]
&&
(
is_xlsch_in_slot
(
*
dlsch_in_slot_bitmap
,
slot_txP
%
num_slots_per_tdd
)))
{
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
ce846e6f
...
@@ -153,7 +153,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
...
@@ -153,7 +153,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
NR_sched_pucch
*
pucch_sched
,
NR_sched_pucch
*
pucch_sched
,
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
pdsch_config
);
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
pdsch_config
);
void
nr_schedule_
ul
sch
(
int
Mod_idP
,
void
nr_schedule_
pu
sch
(
int
Mod_idP
,
int
UE_id
,
int
UE_id
,
frame_t
frameP
,
frame_t
frameP
,
sub_frame_t
slotP
);
sub_frame_t
slotP
);
...
...
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