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
canghaiwuhen
OpenXG-RAN
Commits
6454c61f
Commit
6454c61f
authored
Sep 04, 2018
by
Matthieu Kanj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHY TX Gen
parent
c7d050c1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
81 deletions
+14
-81
openair1/PHY/LTE_TRANSPORT/defs_NB_IoT.h
openair1/PHY/LTE_TRANSPORT/defs_NB_IoT.h
+1
-1
openair1/PHY/LTE_TRANSPORT/dlsch_scrambling_NB_IoT.c
openair1/PHY/LTE_TRANSPORT/dlsch_scrambling_NB_IoT.c
+0
-58
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
+2
-14
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+3
-3
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
+6
-4
targets/SIMU/USER/init_lte.c
targets/SIMU/USER/init_lte.c
+2
-1
No files found.
openair1/PHY/LTE_TRANSPORT/defs_NB_IoT.h
View file @
6454c61f
...
...
@@ -614,7 +614,7 @@ typedef struct {
typedef
struct
{
/// Allocated RNTI (0 means DLSCH_t is not currently used)
uint
16
_t
rnti
;
uint
32
_t
rnti
;
/// Active flag for baseband transmitter processing
uint8_t
active
;
/// Indicator of TX activation per subframe. Used during PUCCH detection for ACK/NAK.
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_scrambling_NB_IoT.c
View file @
6454c61f
...
...
@@ -47,64 +47,6 @@
#include "PHY/LTE_REFSIG/defs_NB_IoT.h"
#include "openair1/PHY/extern_NB_IoT.h"
void
dlsch_sib_scrambling_NB_IoT
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
NB_IoT_DL_eNB_SIB_t
*
dlsch
,
int
tot_bits
,
// total number of bits to transmit
uint16_t
Nf
,
// Nf is the frame number (0..9)
uint8_t
Ns
)
{
int
i
,
j
,
k
=
0
;
uint32_t
x1
,
x2
,
s
=
0
;
uint8_t
*
e
=
dlsch
->
e
;
//uint8_t *e=dlsch->harq_processes[dlsch->current_harq_pid]->e;
//x2 = (dlsch->si_rnti<<15) + (frame_parms->Nid_cell + 1) * ( (Nf % 61) + 1 ) ;
x2
=
(
dlsch
->
si_rnti
<<
14
)
+
((
Nf
%
2
)
<<
13
)
+
((
Ns
>>
1
)
<<
9
)
+
frame_parms
->
Nid_cell
;
// for NPDSCH not carriying SIBs
//x2 = (dlsch->harq_process_sib1.rnti<<14) + ((Nf%2)<<13) + ((Ns>>1)<<9) + frame_parms->Nid_cell; //this is c_init in 36.211 Sec 10.2.3.1
s
=
lte_gold_generic_NB_IoT
(
&
x1
,
&
x2
,
1
);
for
(
i
=
0
;
i
<
(
1
+
(
tot_bits
>>
5
));
i
++
)
{
for
(
j
=
0
;
j
<
32
;
j
++
,
k
++
)
{
dlsch
->
s_e
[
k
]
=
(
e
[
k
]
&
1
)
^
((
s
>>
j
)
&
1
);
}
s
=
lte_gold_generic_NB_IoT
(
&
x1
,
&
x2
,
0
);
}
}
void
dlsch_sib_scrambling_rar_NB_IoT
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
NB_IoT_DL_eNB_HARQ_t
*
dlsch
,
int
tot_bits
,
// total number of bits to transmit
uint16_t
Nf
,
// Nf is the frame number (0..9)
uint8_t
Ns
,
uint32_t
rnti
)
{
int
i
,
j
,
k
=
0
;
uint32_t
x1
,
x2
,
s
=
0
;
uint8_t
*
e
=
dlsch
->
e
;
//uint8_t *e=dlsch->harq_processes[dlsch->current_harq_pid]->e;
//x2 = (dlsch->si_rnti<<15) + (frame_parms->Nid_cell + 1) * ( (Nf % 61) + 1 ) ;
x2
=
(
rnti
<<
14
)
+
((
Nf
%
2
)
<<
13
)
+
((
Ns
>>
1
)
<<
9
)
+
frame_parms
->
Nid_cell
;
// for NPDSCH not carriying SIBs
//x2 = (dlsch->harq_process_sib1.rnti<<14) + ((Nf%2)<<13) + ((Ns>>1)<<9) + frame_parms->Nid_cell; //this is c_init in 36.211 Sec 10.2.3.1
s
=
lte_gold_generic_NB_IoT
(
&
x1
,
&
x2
,
1
);
for
(
i
=
0
;
i
<
(
1
+
(
tot_bits
>>
5
));
i
++
)
{
for
(
j
=
0
;
j
<
32
;
j
++
,
k
++
)
{
dlsch
->
s_e
[
k
]
=
(
e
[
k
]
&
1
)
^
((
s
>>
j
)
&
1
);
}
s
=
lte_gold_generic_NB_IoT
(
&
x1
,
&
x2
,
0
);
}
}
void
dlsch_scrambling_Gen_NB_IoT
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
NB_IoT_eNB_NDLSCH_t
*
dlsch
,
...
...
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
View file @
6454c61f
...
...
@@ -120,18 +120,6 @@ void npbch_scrambling(LTE_DL_FRAME_PARMS *frame_parms,
uint8_t
*
npbch_e
,
uint32_t
length
);
void
dlsch_sib_scrambling_NB_IoT
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
NB_IoT_DL_eNB_SIB_t
*
dlsch
,
//NB_IoT_eNB_NDLSCH_t
int
tot_bits
,
uint16_t
Nf
,
uint8_t
Ns
);
void
dlsch_sib_scrambling_rar_NB_IoT
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
NB_IoT_DL_eNB_HARQ_t
*
dlsch
,
int
tot_bits
,
// total number of bits to transmit
uint16_t
Nf
,
// Nf is the frame number (0..9)
uint8_t
Ns
,
uint32_t
rnti
);
void
dlsch_scrambling_Gen_NB_IoT
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
NB_IoT_eNB_NDLSCH_t
*
dlsch
,
...
...
@@ -306,7 +294,7 @@ int dlsch_modulation_NB_IoT(int32_t **txdataF,
unsigned
int
npdsch_data_subframe
,
// subframe index of the data table of npdsch channel (G*Nsf) , values are between 0..Nsf
unsigned
int
subframe
,
unsigned
short
NB_IoT_RB_ID
);
/*
int dlsch_modulation_rar_NB_IoT(int32_t **txdataF,
int16_t amp,
LTE_DL_FRAME_PARMS *frame_parms,
...
...
@@ -317,7 +305,7 @@ int dlsch_modulation_rar_NB_IoT(int32_t **txdataF,
unsigned int subframe,
unsigned short NB_IoT_RB_ID,
uint8_t option);
*/
int32_t
dlsch_encoding_NB_IoT
(
unsigned
char
*
a
,
NB_IoT_DL_eNB_HARQ_t
*
dlsch
,
// NB_IoT_eNB_NDLSCH_t
uint8_t
Nsf
,
// number of subframes required for npdsch pdu transmission calculated from Isf (3GPP spec table)
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
6454c61f
...
...
@@ -718,7 +718,7 @@ if(proc->flag_msg4 == 1 && proc->counter_msg4 > 0)
1
);
//////////// G*2 // option =2 for msg4
dlsch_s
ib_scrambling_rar
_NB_IoT
(
fp
,
dlsch_s
crambling_Gen
_NB_IoT
(
fp
,
rar
,
236
,
frame
,
...
...
@@ -1268,7 +1268,7 @@ if(subframe !=5 && subframe !=0)
1
);
//////////// G*2
dlsch_s
ib_scrambling_rar
_NB_IoT
(
fp
,
dlsch_s
crambling_Gen
_NB_IoT
(
fp
,
rar
,
236
,
frame
,
...
...
@@ -1316,7 +1316,7 @@ if(subframe !=5 && subframe !=0)
1
);
//////////// G*2
dlsch_s
ib_scrambling_rar
_NB_IoT
(
fp
,
dlsch_s
crambling_Gen
_NB_IoT
(
fp
,
rar
,
236
,
frame
,
...
...
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
View file @
6454c61f
...
...
@@ -338,11 +338,12 @@ void common_signal_procedures_NB_IoT(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
1
);
//////////// G*2
dlsch_s
ib_scrambling
_NB_IoT
(
fp
,
dlsch_s
crambling_Gen
_NB_IoT
(
fp
,
sib1
,
1888
,
frame
,
subframe
*
2
);
subframe
*
2
,
eNB
->
ndlsch_SIB1
->
rnti
);
}
dlsch_modulation_NB_IoT
(
txdataF
,
...
...
@@ -375,11 +376,12 @@ void common_signal_procedures_NB_IoT(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
2
);
//////////// G*2
dlsch_s
ib_scrambling
_NB_IoT
(
fp
,
// is called only in subframe 4
dlsch_s
crambling_Gen
_NB_IoT
(
fp
,
// is called only in subframe 4
sib23
,
1888
,
////// total_bits
frame
,
subframe
*
2
);
subframe
*
2
,
eNB
->
ndlsch_SIB23
->
rnti
);
}
if
(
subframe
<
5
)
...
...
targets/SIMU/USER/init_lte.c
View file @
6454c61f
...
...
@@ -147,7 +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
->
ndlsch_SIB1
->
rnti
=
0xffff
;
PHY_vars_eNB
->
ndlsch_SIB23
->
rnti
=
0xffff
;
PHY_vars_eNB
->
rx_total_gain_dB
=
130
;
...
...
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