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
a6f2310e
Commit
a6f2310e
authored
Sep 29, 2015
by
Xiwen JIANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add beamforming mode as an input parameter of llr computation
parent
d89807b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
22 deletions
+38
-22
openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c
+4
-2
openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c
openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c
+28
-18
openair1/PHY/LTE_TRANSPORT/proto.h
openair1/PHY/LTE_TRANSPORT/proto.h
+6
-2
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c
View file @
a6f2310e
...
...
@@ -739,7 +739,8 @@ int rx_pdsch(PHY_VARS_UE *phy_vars_ue,
lte_ue_pdsch_vars
[
eNB_id
]
->
dl_ch_mag0
,
symbol
,
first_symbol_flag
,
nb_rb
,
adjust_G2
(
frame_parms
,
dlsch0_harq
->
rb_alloc
,
4
,
subframe
,
symbol
),
lte_ue_pdsch_vars
[
eNB_id
]
->
llr128
);
lte_ue_pdsch_vars
[
eNB_id
]
->
llr128
,
beamforming_mode
);
}
else
if
(
i_mod
==
2
)
{
dlsch_16qam_qpsk_llr
(
frame_parms
,
lte_ue_pdsch_vars
[
eNB_id
]
->
rxdataF_comp0
,
...
...
@@ -785,7 +786,8 @@ int rx_pdsch(PHY_VARS_UE *phy_vars_ue,
lte_ue_pdsch_vars
[
eNB_id
]
->
dl_ch_magb0
,
symbol
,
first_symbol_flag
,
nb_rb
,
adjust_G2
(
frame_parms
,
dlsch0_harq
->
rb_alloc
,
6
,
subframe
,
symbol
),
lte_ue_pdsch_vars
[
eNB_id
]
->
llr128
);
lte_ue_pdsch_vars
[
eNB_id
]
->
llr128
,
beamforming_mode
);
}
else
if
(
i_mod
==
2
)
{
dlsch_64qam_qpsk_llr
(
frame_parms
,
lte_ue_pdsch_vars
[
eNB_id
]
->
rxdataF_comp0
,
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c
View file @
a6f2310e
/*******************************************************************************
/*
*****************************************************************************
OpenAirInterface
Copyright(c) 1999 - 2014 Eurecom
...
...
@@ -663,16 +664,15 @@ int dlsch_qpsk_llr(LTE_DL_FRAME_PARMS *frame_parms,
if
((
symbol_mod
==
0
)
||
(
symbol_mod
==
(
4
-
frame_parms
->
Ncp
)))
{
if
(
frame_parms
->
mode1_flag
==
0
&&
beamforming_mode
!=
7
)
len
=
(
nb_rb
*
8
)
;
//
- (2*pbch_pss_sss_adjust/3);
len
=
(
nb_rb
*
8
)
-
(
2
*
pbch_pss_sss_adjust
/
3
);
else
len
=
(
nb_rb
*
10
)
;
//
- (5*pbch_pss_sss_adjust/6);
len
=
(
nb_rb
*
10
)
-
(
5
*
pbch_pss_sss_adjust
/
6
);
}
else
if
((
beamforming_mode
==
7
)
&&
(
frame_parms
->
Ncp
==
0
)
&&
(
symbol
==
3
||
symbol
==
6
||
symbol
==
9
||
symbol
==
12
)){
len
=
(
nb_rb
*
9
);
len
=
(
nb_rb
*
9
)
-
(
3
*
pbch_pss_sss_adjust
/
4
)
;
}
else
if
((
beamforming_mode
==
7
)
&&
(
frame_parms
->
Ncp
==
1
)
&&
(
symbol
==
4
||
symbol
==
7
||
symbol
==
10
)){
len
=
(
nb_rb
*
8
);
}
else
{
len
=
(
nb_rb
*
12
);
// - pbch_pss_sss_adjust;
len
=
(
nb_rb
*
8
)
-
(
2
*
pbch_pss_sss_adjust
/
3
);
}
else
{
len
=
(
nb_rb
*
12
)
-
pbch_pss_sss_adjust
;
}
// printf("dlsch_qpsk_llr: symbol %d,nb_rb %d, len %d,pbch_pss_sss_adjust %d\n",symbol,nb_rb,len,pbch_pss_sss_adjust);
...
...
@@ -702,7 +702,8 @@ void dlsch_16qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
uint8_t
first_symbol_flag
,
unsigned
short
nb_rb
,
uint16_t
pbch_pss_sss_adjust
,
int16_t
**
llr32p
)
int16_t
**
llr32p
,
uint8_t
beamforming_mode
)
{
__m128i
*
rxF
=
(
__m128i
*
)
&
rxdataF_comp
[
0
][(
symbol
*
frame_parms
->
N_RB_DL
*
12
)];
...
...
@@ -724,12 +725,16 @@ void dlsch_16qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
ch_mag
=
(
__m128i
*
)
&
dl_ch_mag
[
0
][(
symbol
*
frame_parms
->
N_RB_DL
*
12
)];
if
((
symbol_mod
==
0
)
||
(
symbol_mod
==
(
4
-
frame_parms
->
Ncp
)))
{
if
(
frame_parms
->
mode1_flag
==
0
)
len
=
nb_rb
*
8
-
(
2
*
pbch_pss_sss_adjust
/
3
);
if
(
frame_parms
->
mode1_flag
==
0
&&
beamforming_mode
!=
7
)
len
=
(
nb_rb
*
8
)
-
(
2
*
pbch_pss_sss_adjust
/
3
);
else
len
=
nb_rb
*
10
-
(
5
*
pbch_pss_sss_adjust
/
6
);
len
=
(
nb_rb
*
10
)
-
(
5
*
pbch_pss_sss_adjust
/
6
);
}
else
if
((
beamforming_mode
==
7
)
&&
(
frame_parms
->
Ncp
==
0
)
&&
(
symbol
==
3
||
symbol
==
6
||
symbol
==
9
||
symbol
==
12
)){
len
=
(
nb_rb
*
9
)
-
(
3
*
pbch_pss_sss_adjust
/
4
);
}
else
if
((
beamforming_mode
==
7
)
&&
(
frame_parms
->
Ncp
==
1
)
&&
(
symbol
==
4
||
symbol
==
7
||
symbol
==
10
)){
len
=
(
nb_rb
*
8
)
-
(
2
*
pbch_pss_sss_adjust
/
3
);
}
else
{
len
=
nb_rb
*
12
-
pbch_pss_sss_adjust
;
len
=
(
nb_rb
*
12
)
-
pbch_pss_sss_adjust
;
}
// update output pointer according to number of REs in this symbol (<<2 because 4 bits per RE)
...
...
@@ -778,7 +783,8 @@ void dlsch_64qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
uint8_t
first_symbol_flag
,
unsigned
short
nb_rb
,
uint16_t
pbch_pss_sss_adjust
,
short
**
llr_save
)
short
**
llr_save
,
uint8_t
beamforming_mode
)
{
__m128i
*
rxF
=
(
__m128i
*
)
&
rxdataF_comp
[
0
][(
symbol
*
frame_parms
->
N_RB_DL
*
12
)];
...
...
@@ -799,12 +805,16 @@ void dlsch_64qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
ch_magb
=
(
__m128i
*
)
&
dl_ch_magb
[
0
][(
symbol
*
frame_parms
->
N_RB_DL
*
12
)];
if
((
symbol_mod
==
0
)
||
(
symbol_mod
==
(
4
-
frame_parms
->
Ncp
)))
{
if
(
frame_parms
->
mode1_flag
==
0
)
len
=
nb_rb
*
8
-
(
2
*
pbch_pss_sss_adjust
/
3
);
if
(
frame_parms
->
mode1_flag
==
0
&&
beamforming_mode
!=
7
)
len
=
(
nb_rb
*
8
)
-
(
2
*
pbch_pss_sss_adjust
/
3
);
else
len
=
nb_rb
*
10
-
(
5
*
pbch_pss_sss_adjust
/
6
);
len
=
(
nb_rb
*
10
)
-
(
5
*
pbch_pss_sss_adjust
/
6
);
}
else
if
((
beamforming_mode
==
7
)
&&
(
frame_parms
->
Ncp
==
0
)
&&
(
symbol
==
3
||
symbol
==
6
||
symbol
==
9
||
symbol
==
12
)){
len
=
(
nb_rb
*
9
)
-
(
3
*
pbch_pss_sss_adjust
/
4
);
}
else
if
((
beamforming_mode
==
7
)
&&
(
frame_parms
->
Ncp
==
1
)
&&
(
symbol
==
4
||
symbol
==
7
||
symbol
==
10
)){
len
=
(
nb_rb
*
8
)
-
(
2
*
pbch_pss_sss_adjust
/
3
);
}
else
{
len
=
nb_rb
*
12
-
pbch_pss_sss_adjust
;
len
=
(
nb_rb
*
12
)
-
pbch_pss_sss_adjust
;
}
llr2
=
llr
;
...
...
openair1/PHY/LTE_TRANSPORT/proto.h
View file @
a6f2310e
...
...
@@ -718,6 +718,7 @@ int32_t dlsch_qpsk_llr(LTE_DL_FRAME_PARMS *frame_parms,
@param nb_rb number of RBs for this allocation
@param pbch_pss_sss_adjust Adjustment factor in RE for PBCH/PSS/SSS allocations
@param llr128p pointer to pointer to symbol in dlsch_llr
@param beamforming_mode beamforming mode
*/
void
dlsch_16qam_llr
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
...
...
@@ -728,7 +729,8 @@ void dlsch_16qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
uint8_t
first_symbol_flag
,
uint16_t
nb_rb
,
uint16_t
pbch_pss_sss_adjust
,
int16_t
**
llr128p
);
int16_t
**
llr128p
,
uint8_t
beamforming_mode
);
/**
\brief This function generates log-likelihood ratios (decoder input) for single-stream 16QAM received waveforms
...
...
@@ -741,6 +743,7 @@ void dlsch_16qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
@param first_symbol_flag
@param nb_rb number of RBs for this allocation
@param pbch_pss_sss_adjust PBCH/PSS/SSS RE adjustment (in REs)
@param beamforming_mode beamforming mode
*/
void
dlsch_64qam_llr
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
rxdataF_comp
,
...
...
@@ -751,7 +754,8 @@ void dlsch_64qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
uint8_t
first_symbol_flag
,
uint16_t
nb_rb
,
uint16_t
pbch_pss_sss_adjust
,
short
**
llr_save
);
short
**
llr_save
,
uint8_t
beamforming_mode
);
/** \fn dlsch_siso(LTE_DL_FRAME_PARMS *frame_parms,
int32_t **rxdataF_comp,
...
...
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