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
ZhouShuya
OpenXG-RAN
Commits
6ba02668
Commit
6ba02668
authored
Nov 16, 2018
by
Matthieu Kanj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
function calls for NPDCCH and NPDSCH
parent
5506e79f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
77 additions
and
20 deletions
+77
-20
openair1/PHY/LTE_TRANSPORT/SIB_NB_IoT.c
openair1/PHY/LTE_TRANSPORT/SIB_NB_IoT.c
+2
-2
openair1/PHY/LTE_TRANSPORT/dlsch_coding_NB_IoT.c
openair1/PHY/LTE_TRANSPORT/dlsch_coding_NB_IoT.c
+38
-16
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
+3
-0
openair1/PHY/defs.h
openair1/PHY/defs.h
+1
-1
openair1/SCHED/IF_Module_L1_primitives_NB_IoT.c
openair1/SCHED/IF_Module_L1_primitives_NB_IoT.c
+4
-0
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
+27
-1
targets/SIMU/USER/init_lte.c
targets/SIMU/USER/init_lte.c
+2
-0
No files found.
openair1/PHY/LTE_TRANSPORT/SIB_NB_IoT.c
View file @
6ba02668
...
...
@@ -214,7 +214,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
{
int
done
=
0
;
if
(
(
RAR
->
active
==
1
)
&&
(
frame_parms
->
flag_free_sf
==
0
)
)
if
(
RAR
->
active
==
1
)
{
uint8_t
*
RAR_pdu
=
RAR
->
harq_process
->
pdu
;
uint32_t
rep
=
RAR
->
repetition_number
;
...
...
@@ -337,7 +337,7 @@ int generate_NPDCCH_NB_IoT(NB_IoT_eNB_NPDCCH_t *DCI,
uint8_t
ncce_index
=
0
;
/// = DCI->ncce_index[i];
uint8_t
agr_level
=
2
;
/// = DCI->aggregation_level[i];
if
(
(
DCI
->
active
[
i
]
==
1
)
&&
(
frame_parms
->
flag_free_sf
==
0
)
)
if
(
DCI
->
active
[
i
]
==
1
)
{
uint8_t
*
DCI_pdu
=
DCI
->
pdu
[
i
];
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_coding_NB_IoT.c
View file @
6ba02668
...
...
@@ -84,6 +84,19 @@ void free_eNB_dlsch_NB_IoT(NB_IoT_eNB_NDLSCH_t *dlsch)
}
void
free_eNB_dlcch_NB_IoT
(
NB_IoT_eNB_NPDCCH_t
*
dlcch
)
{
if
(
dlcch
)
{
free16
(
dlcch
,
sizeof
(
NB_IoT_eNB_NPDCCH_t
));
dlcch
=
NULL
;
}
}
void
ccode_encode_npdsch_NB_IoT
(
int32_t
numbits
,
uint8_t
*
inPtr
,
...
...
@@ -202,23 +215,7 @@ NB_IoT_eNB_NDLSCH_t *new_eNB_dlsch_NB_IoT(uint8_t type, LTE_DL_FRAME_PARMS* fram
exit_flag
=
1
;
}
// if (abstraction_flag==0) {
// account for filler in first segment and CRCs for multiple segment case
// dlsch->harq_process->c[0] = (uint8_t*)malloc16(3*3*(MAX_TBS_DL_SIZE_BITS_NB_IoT+24));
// dlsch->harq_process->d[0] = (uint8_t*)malloc(96+(3*(24+MAX_TBS_DL_SIZE_BITS_NB_IoT)));
/// dlsch->harq_process->e[0] = (uint8_t*)malloc(MAX_NUM_DL_CHANNEL_BITS_NB_IoT);
// dlsch->harq_process->s_e[0] = (uint8_t*)malloc(MAX_NUM_DL_CHANNEL_BITS_NB_IoT);
/* if (dlsch->harq_process->c[0]) {
bzero(dlsch->harq_process->c[0],3*3*(MAX_TBS_DL_SIZE_BITS_NB_IoT+24));
} else {
printf("Can't get c\n");
exit_flag=2;
}
*/
if
(
dlsch
->
harq_process
->
d
)
{
bzero
((
void
*
)
dlsch
->
harq_process
->
d
,
96
+
(
3
*
(
24
+
MAX_TBS_DL_SIZE_BITS_NB_IoT
)));
...
...
@@ -259,6 +256,31 @@ NB_IoT_eNB_NDLSCH_t *new_eNB_dlsch_NB_IoT(uint8_t type, LTE_DL_FRAME_PARMS* fram
}
///////////////////////////////////////////////////////////////////////////
NB_IoT_eNB_NPDCCH_t
*
new_eNB_dlcch_NB_IoT
(
LTE_DL_FRAME_PARMS
*
frame_parms
)
{
NB_IoT_eNB_NPDCCH_t
*
dlcch
;
dlcch
=
(
NB_IoT_eNB_NPDCCH_t
*
)
malloc16
(
sizeof
(
NB_IoT_eNB_NPDCCH_t
));
if
(
dlcch
)
{
bzero
(
dlcch
,
sizeof
(
NB_IoT_eNB_NPDCCH_t
));
return
(
dlcch
);
}
/// LOG_D(PHY,"new_eNB_dlsch exit flag %d, size of %ld\n",
// exit_flag, sizeof(NB_IoT_eNB_NDLSCH_t));
free_eNB_dlcch_NB_IoT
(
dlcch
);
return
(
NULL
);
}
/*************************************************************************
...
...
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
View file @
6ba02668
...
...
@@ -43,6 +43,7 @@
//NPSS
void
free_eNB_dlsch_NB_IoT
(
NB_IoT_eNB_NDLSCH_t
*
dlsch
);
void
free_eNB_dlcch_NB_IoT
(
NB_IoT_eNB_NPDCCH_t
*
dlcch
);
void
init_unscrambling_lut_NB_IoT
(
void
);
...
...
@@ -154,6 +155,8 @@ void dlsch_scrambling_Gen_NB_IoT(LTE_DL_FRAME_PARMS *frame_parms,
NB_IoT_eNB_NDLSCH_t
*
new_eNB_dlsch_NB_IoT
(
uint8_t
length
,
LTE_DL_FRAME_PARMS
*
frame_parms
);
NB_IoT_eNB_NPDCCH_t
*
new_eNB_dlcch_NB_IoT
(
LTE_DL_FRAME_PARMS
*
frame_parms
);
/*void dlsch_scrambling_Gen_NB_IoT(LTE_DL_FRAME_PARMS *frame_parms,
NB_IoT_eNB_NDLSCH_t *dlsch,
int tot_bits, // total number of bits to transmit
...
...
openair1/PHY/defs.h
View file @
6ba02668
...
...
@@ -517,7 +517,7 @@ NB_IoT_eNB_NDLSCH_t *ndlsch_SIB23;
NB_IoT_eNB_NDLSCH_t
*
ndlsch_RAR
;
NB_IoT_eNB_NPDCCH_t
*
npdcch
[
NUMBER_OF_UE_MAX_NB_IoT
];
//NB_IoT_eNB_NDLSCH_t ndlsch_rar;
NB_IoT_eNB_NPDCCH_t
npdcch_DCI
;
NB_IoT_eNB_NPDCCH_t
*
npdcch_DCI
;
NB_IoT_eNB_NULSCH_t
*
ulsch_NB_IoT
[
NUMBER_OF_UE_MAX
+
1
];
////////////// For IF Module /////////////////////////////
...
...
openair1/SCHED/IF_Module_L1_primitives_NB_IoT.c
View file @
6ba02668
...
...
@@ -199,6 +199,10 @@ void handle_nfapi_dlsch_pdu_NB_IoT(PHY_VARS_eNB *eNB,
//check if the PDU is for RAR
if
(
eNB
->
ndlsch_RAR
!=
NULL
&&
rel13
->
rnti
==
eNB
->
ndlsch_RAR
->
rnti
)
//rnti for the RAR should have been set priviously by the DCI
{
eNB
->
ndlsch_RAR
->
active
=
1
;
eNB
->
ndlsch_RAR
->
harq_process
->
TBS
=
rel13
->
length
;
eNB
->
ndlsch_RAR
->
harq_process
->
pdu
=
sdu
;
eNB
->
ndlsch_RAR
->
npdsch_start_symbol
=
rel13
->
start_symbol
;
eNB
->
ndlsch_RAR
->
active
=
1
;
...
...
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
View file @
6ba02668
...
...
@@ -330,7 +330,33 @@ void common_signal_procedures_NB_IoT(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
subframe
,
RB_IoT_ID
);
}
///////////////////////////////// END ///////////////////////////////////////////
if
(
(
subframe
!=
0
)
&&
(
subframe
!=
5
)
&&
(
nsss_state
!=
1
)
&&
(
fp
->
flag_free_sf
==
0
)
)
{
NB_IoT_eNB_NPDCCH_t
*
npdcch_str
=
eNB
->
npdcch_DCI
;
NB_IoT_eNB_NDLSCH_t
*
RAR
=
eNB
->
ndlsch_RAR
;
/////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////// NPDCCH ////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
generate_NPDCCH_NB_IoT
(
npdcch_str
,
txdataF
,
AMP
,
fp
,
frame
,
subframe
,
RB_IoT_ID
);
/////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////// NPDSCH ////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
generate_NDLSCH_NB_IoT
(
RAR
,
txdataF
,
AMP
,
fp
,
frame
,
subframe
,
RB_IoT_ID
);
///////////////////////////////////////////////////////////////////////////////////
}
generate_pilots_NB_IoT
(
eNB
,
txdataF
,
...
...
targets/SIMU/USER/init_lte.c
View file @
6ba02668
...
...
@@ -147,6 +147,8 @@ PHY_VARS_eNB* init_lte_eNB(LTE_DL_FRAME_PARMS *frame_parms,
PHY_vars_eNB
->
ndlsch_SIB23
=
new_eNB_dlsch_NB_IoT
(
1
,
frame_parms
);
PHY_vars_eNB
->
ndlsch_RAR
=
new_eNB_dlsch_NB_IoT
(
1
,
frame_parms
);
PHY_vars_eNB
->
npdcch_DCI
=
new_eNB_dlcch_NB_IoT
(
frame_parms
);
PHY_vars_eNB
->
UL_INFO
.
nrach_ind
.
nrach_pdu_list
=
(
nfapi_nrach_indication_pdu_t
*
)
malloc16
(
sizeof
(
nfapi_nrach_indication_pdu_t
));
PHY_vars_eNB
->
ndlsch_SIB1
->
rnti
=
0xffff
;
...
...
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