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
常顺宇
OpenXG-RAN
Commits
c63abc08
Commit
c63abc08
authored
Jun 15, 2016
by
lukashov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing merge with develop
parent
199434b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
71 deletions
+70
-71
openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c
openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c
+31
-31
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
+8
-9
openair1/PHY/LTE_TRANSPORT/proto.h
openair1/PHY/LTE_TRANSPORT/proto.h
+26
-26
openair1/SIMULATION/LTE_PHY/dlsim.c
openair1/SIMULATION/LTE_PHY/dlsim.c
+5
-5
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c
View file @
c63abc08
...
@@ -686,15 +686,15 @@ int dlsch_qpsk_llr(LTE_DL_FRAME_PARMS *frame_parms,
...
@@ -686,15 +686,15 @@ int dlsch_qpsk_llr(LTE_DL_FRAME_PARMS *frame_parms,
}
}
int32_t
dlsch_qpsk_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
dlsch_qpsk_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
rxdataF_comp
,
int32_t
**
rxdataF_comp
,
mod_sym
_t
**
sic_buffer
,
//Q15
int32
_t
**
sic_buffer
,
//Q15
int32_t
**
rho_i
,
int32_t
**
rho_i
,
short
*
dlsch_llr
,
short
*
dlsch_llr
,
uint8_t
num_pdcch_symbols
,
uint8_t
num_pdcch_symbols
,
uint16_t
nb_rb
,
uint16_t
nb_rb
,
uint8_t
subframe
,
uint8_t
subframe
,
uint32_t
rb_alloc
,
uint32_t
rb_alloc
,
LTE_UE_DLSCH_t
*
dlsch0
)
LTE_UE_DLSCH_t
*
dlsch0
)
{
{
int16_t
rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
int16_t
rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
...
@@ -929,16 +929,16 @@ void dlsch_16qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
...
@@ -929,16 +929,16 @@ void dlsch_16qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
void
dlsch_16qam_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
void
dlsch_16qam_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
rxdataF_comp
,
int32_t
**
rxdataF_comp
,
mod_sym
_t
**
sic_buffer
,
//Q15
int32
_t
**
sic_buffer
,
//Q15
int32_t
**
rho_i
,
int32_t
**
rho_i
,
int16_t
*
dlsch_llr
,
int16_t
*
dlsch_llr
,
uint8_t
num_pdcch_symbols
,
uint8_t
num_pdcch_symbols
,
int32_t
**
dl_ch_mag
,
int32_t
**
dl_ch_mag
,
uint16_t
nb_rb
,
uint16_t
nb_rb
,
uint8_t
subframe
,
uint8_t
subframe
,
uint32_t
rb_alloc
,
uint32_t
rb_alloc
,
LTE_UE_DLSCH_t
*
dlsch0
LTE_UE_DLSCH_t
*
dlsch0
)
)
{
{
int16_t
rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
int16_t
rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
int16_t
rho_rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
int16_t
rho_rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
...
@@ -1183,18 +1183,18 @@ void dlsch_64qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
...
@@ -1183,18 +1183,18 @@ void dlsch_64qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
//#if 0
//#if 0
void
dlsch_64qam_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
void
dlsch_64qam_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
rxdataF_comp
,
int32_t
**
rxdataF_comp
,
mod_sym
_t
**
sic_buffer
,
//Q15
int32
_t
**
sic_buffer
,
//Q15
int32_t
**
rho_i
,
int32_t
**
rho_i
,
int16_t
*
dlsch_llr
,
int16_t
*
dlsch_llr
,
uint8_t
num_pdcch_symbols
,
uint8_t
num_pdcch_symbols
,
int32_t
**
dl_ch_mag
,
int32_t
**
dl_ch_mag
,
int32_t
**
dl_ch_magb
,
int32_t
**
dl_ch_magb
,
uint16_t
nb_rb
,
uint16_t
nb_rb
,
uint8_t
subframe
,
uint8_t
subframe
,
uint32_t
rb_alloc
,
uint32_t
rb_alloc
,
LTE_UE_DLSCH_t
*
dlsch0
LTE_UE_DLSCH_t
*
dlsch0
)
)
{
{
int16_t
rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
int16_t
rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
int16_t
rho_rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
int16_t
rho_rho_amp_x0
[
2
*
frame_parms
->
N_RB_DL
*
12
];
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
c63abc08
...
@@ -1611,16 +1611,15 @@ int dlsch_modulation(int32_t **txdataF,
...
@@ -1611,16 +1611,15 @@ int dlsch_modulation(int32_t **txdataF,
return
(
re_allocated
);
return
(
re_allocated
);
}
}
<<<<<<<
HEAD
int
dlsch_modulation_SIC
(
mod_sym
_t
**
sic_buffer
,
int
dlsch_modulation_SIC
(
int32
_t
**
sic_buffer
,
int16_t
amp
,
int16_t
amp
,
uint32_t
subframe_offset
,
uint32_t
subframe_offset
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
num_pdcch_symbols
,
uint8_t
num_pdcch_symbols
,
LTE_eNB_DLSCH_t
*
dlsch0
,
LTE_eNB_DLSCH_t
*
dlsch0
,
LTE_eNB_DLSCH_t
*
dlsch1
,
LTE_eNB_DLSCH_t
*
dlsch1
,
int
G
)
int
G
)
{
{
uint8_t
nsymb
;
uint8_t
nsymb
;
...
...
openair1/PHY/LTE_TRANSPORT/proto.h
View file @
c63abc08
...
@@ -211,7 +211,7 @@ int32_t dlsch_modulation(int32_t **txdataF,
...
@@ -211,7 +211,7 @@ int32_t dlsch_modulation(int32_t **txdataF,
LTE_eNB_DLSCH_t
*
dlsch0
,
LTE_eNB_DLSCH_t
*
dlsch0
,
LTE_eNB_DLSCH_t
*
dlsch1
);
LTE_eNB_DLSCH_t
*
dlsch1
);
int32_t
dlsch_modulation_SIC
(
mod_sym
_t
**
sic_buffer
,
int32_t
dlsch_modulation_SIC
(
int32
_t
**
sic_buffer
,
int16_t
amp
,
int16_t
amp
,
uint32_t
sub_frame_offset
,
uint32_t
sub_frame_offset
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
...
@@ -721,14 +721,14 @@ int32_t dlsch_qpsk_llr(LTE_DL_FRAME_PARMS *frame_parms,
...
@@ -721,14 +721,14 @@ int32_t dlsch_qpsk_llr(LTE_DL_FRAME_PARMS *frame_parms,
int32_t
dlsch_qpsk_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
dlsch_qpsk_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int
**
rxdataF_comp
,
int
**
rxdataF_comp
,
mod_sym
_t
**
sic_buffer
,
int32
_t
**
sic_buffer
,
int
**
rho_i
,
int
**
rho_i
,
short
*
dlsch_llr
,
short
*
dlsch_llr
,
uint8_t
num_pdcch_symbols
,
uint8_t
num_pdcch_symbols
,
uint16_t
nb_rb
,
uint16_t
nb_rb
,
uint8_t
subframe
,
uint8_t
subframe
,
uint32_t
rb_alloc
,
uint32_t
rb_alloc
,
LTE_UE_DLSCH_t
*
dlsch0
);
LTE_UE_DLSCH_t
*
dlsch0
);
void
dlsch_16qam_llr
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
void
dlsch_16qam_llr
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
rxdataF_comp
,
int32_t
**
rxdataF_comp
,
...
@@ -753,28 +753,28 @@ void dlsch_16qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
...
@@ -753,28 +753,28 @@ void dlsch_16qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
*/
*/
void
dlsch_16qam_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
void
dlsch_16qam_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
rxdataF_comp
,
int32_t
**
rxdataF_comp
,
mod_sym
_t
**
sic_buffer
,
//Q15
int32
_t
**
sic_buffer
,
//Q15
int32_t
**
rho_i
,
int32_t
**
rho_i
,
int16_t
*
dlsch_llr
,
int16_t
*
dlsch_llr
,
uint8_t
num_pdcch_symbols
,
uint8_t
num_pdcch_symbols
,
int32_t
**
dl_ch_mag
,
int32_t
**
dl_ch_mag
,
uint16_t
nb_rb
,
uint16_t
nb_rb
,
uint8_t
subframe
,
uint8_t
subframe
,
uint32_t
rb_alloc
,
uint32_t
rb_alloc
,
LTE_UE_DLSCH_t
*
dlsch0
);
LTE_UE_DLSCH_t
*
dlsch0
);
void
dlsch_64qam_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
void
dlsch_64qam_llr_SIC
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
rxdataF_comp
,
int32_t
**
rxdataF_comp
,
mod_sym
_t
**
sic_buffer
,
//Q15
int32
_t
**
sic_buffer
,
//Q15
int32_t
**
rho_i
,
int32_t
**
rho_i
,
int16_t
*
dlsch_llr
,
int16_t
*
dlsch_llr
,
uint8_t
num_pdcch_symbols
,
uint8_t
num_pdcch_symbols
,
int32_t
**
dl_ch_mag
,
int32_t
**
dl_ch_mag
,
int32_t
**
dl_ch_magb
,
int32_t
**
dl_ch_magb
,
uint16_t
nb_rb
,
uint16_t
nb_rb
,
uint8_t
subframe
,
uint8_t
subframe
,
uint32_t
rb_alloc
,
uint32_t
rb_alloc
,
LTE_UE_DLSCH_t
*
dlsch0
);
LTE_UE_DLSCH_t
*
dlsch0
);
void
dlsch_64qam_llr
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
void
dlsch_64qam_llr
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
...
...
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
c63abc08
...
@@ -256,7 +256,7 @@ int main(int argc, char **argv)
...
@@ -256,7 +256,7 @@ int main(int argc, char **argv)
LTE_DL_eNB_HARQ_t
*
dlsch0_eNB_harq
;
LTE_DL_eNB_HARQ_t
*
dlsch0_eNB_harq
;
uint8_t
Kmimo
;
uint8_t
Kmimo
;
mod_sym
_t
**
sic_buffer
;
int32
_t
**
sic_buffer
;
int8_t
cw_to_decode_interf
;
int8_t
cw_to_decode_interf
;
int8_t
cw_to_decode_interf_free
;
int8_t
cw_to_decode_interf_free
;
int8_t
cw_non_sic
;
int8_t
cw_non_sic
;
...
@@ -1029,9 +1029,9 @@ n(tikz_fname,"w");
...
@@ -1029,9 +1029,9 @@ n(tikz_fname,"w");
}
}
sic_buffer
=
(
mod_sym_t
**
)
malloc16
(
frame_parms
->
nb_antennas_tx
*
sizeof
(
mod_sym_t
*
)
);
sic_buffer
=
(
int32_t
**
)
malloc16
(
frame_parms
->
nb_antennas_tx
*
sizeof
(
int32_t
*
)
);
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_tx
;
i
++
)
{
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_tx
;
i
++
)
{
sic_buffer
[
i
]
=
malloc16_clear
(
FRAME_LENGTH_COMPLEX_SAMPLES_NO_PREFIX
*
sizeof
(
mod_sym
_t
));
sic_buffer
[
i
]
=
malloc16_clear
(
FRAME_LENGTH_COMPLEX_SAMPLES_NO_PREFIX
*
sizeof
(
int32
_t
));
}
}
if
(
input_fd
==
NULL
)
{
if
(
input_fd
==
NULL
)
{
...
@@ -2119,7 +2119,7 @@ n(tikz_fname,"w");
...
@@ -2119,7 +2119,7 @@ n(tikz_fname,"w");
fflush
(
stdout
);
fflush
(
stdout
);
round
=
0
;
round
=
0
;
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_tx
;
i
++
)
{
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_tx
;
i
++
)
{
memset
(
sic_buffer
[
i
],
0
,
FRAME_LENGTH_COMPLEX_SAMPLES_NO_PREFIX
*
sizeof
(
mod_sym
_t
));
memset
(
sic_buffer
[
i
],
0
,
FRAME_LENGTH_COMPLEX_SAMPLES_NO_PREFIX
*
sizeof
(
int32
_t
));
}
}
//if (trials%100==0)
//if (trials%100==0)
eNB2UE
[
0
]
->
first_run
=
1
;
eNB2UE
[
0
]
->
first_run
=
1
;
...
@@ -2148,7 +2148,7 @@ n(tikz_fname,"w");
...
@@ -2148,7 +2148,7 @@ n(tikz_fname,"w");
// printf("Trial %d : Round %d, pmi_feedback %d \n",trials,round,pmi_feedback);
// printf("Trial %d : Round %d, pmi_feedback %d \n",trials,round,pmi_feedback);
for
(
aa
=
0
;
aa
<
PHY_vars_eNB
->
lte_frame_parms
.
nb_antennas_tx
;
aa
++
)
{
for
(
aa
=
0
;
aa
<
PHY_vars_eNB
->
lte_frame_parms
.
nb_antennas_tx
;
aa
++
)
{
memset
(
&
PHY_vars_eNB
->
lte_eNB_common_vars
.
txdataF
[
eNB_id
][
aa
][
0
],
0
,
FRAME_LENGTH_COMPLEX_SAMPLES_NO_PREFIX
*
sizeof
(
mod_sym
_t
));
memset
(
&
PHY_vars_eNB
->
lte_eNB_common_vars
.
txdataF
[
eNB_id
][
aa
][
0
],
0
,
FRAME_LENGTH_COMPLEX_SAMPLES_NO_PREFIX
*
sizeof
(
int32
_t
));
}
}
if
(
input_fd
==
NULL
)
{
if
(
input_fd
==
NULL
)
{
...
...
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