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
zzha zzha
OpenXG-RAN
Commits
6a90266a
Commit
6a90266a
authored
Feb 21, 2023
by
Roberto Louro Magueta
Committed by
francescomani
Apr 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add implementation related to 256QAM for 2-layers UL
parent
8c051201
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
17 deletions
+35
-17
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
+2
-2
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+32
-14
openair1/PHY/NR_TRANSPORT/nr_ulsch_llr_computation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_llr_computation.c
+1
-1
No files found.
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
View file @
6a90266a
...
@@ -190,7 +190,7 @@ void nr_ulsch_channel_compensation(int **rxdataF_ext,
...
@@ -190,7 +190,7 @@ void nr_ulsch_channel_compensation(int **rxdataF_ext,
int
**
ul_ch_estimates_ext
,
int
**
ul_ch_estimates_ext
,
int
**
ul_ch_mag
,
int
**
ul_ch_mag
,
int
**
ul_ch_magb
,
int
**
ul_ch_magb
,
int
**
ul_ch_magc
,
int
**
ul_ch_magc
,
int
**
rxdataF_comp
,
int
**
rxdataF_comp
,
int
***
rho
,
int
***
rho
,
NR_DL_FRAME_PARMS
*
frame_parms
,
NR_DL_FRAME_PARMS
*
frame_parms
,
...
@@ -282,7 +282,7 @@ void nr_ulsch_256qam_llr(int32_t *rxdataF_comp,
...
@@ -282,7 +282,7 @@ void nr_ulsch_256qam_llr(int32_t *rxdataF_comp,
void
nr_ulsch_compute_llr
(
int32_t
*
rxdataF_comp
,
void
nr_ulsch_compute_llr
(
int32_t
*
rxdataF_comp
,
int32_t
*
ul_ch_mag
,
int32_t
*
ul_ch_mag
,
int32_t
*
ul_ch_magb
,
int32_t
*
ul_ch_magb
,
int32_t
*
ul_ch_magc
,
int32_t
*
ul_ch_magc
,
int16_t
*
ulsch_llr
,
int16_t
*
ulsch_llr
,
uint32_t
nb_rb
,
uint32_t
nb_rb
,
uint32_t
nb_re
,
uint32_t
nb_re
,
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
6a90266a
...
@@ -1484,6 +1484,7 @@ uint8_t nr_ulsch_mmse_2layers(NR_DL_FRAME_PARMS *frame_parms,
...
@@ -1484,6 +1484,7 @@ uint8_t nr_ulsch_mmse_2layers(NR_DL_FRAME_PARMS *frame_parms,
int
**
rxdataF_comp
,
int
**
rxdataF_comp
,
int
**
ul_ch_mag
,
int
**
ul_ch_mag
,
int
**
ul_ch_magb
,
int
**
ul_ch_magb
,
int
**
ul_ch_magc
,
int
**
ul_ch_estimates_ext
,
int
**
ul_ch_estimates_ext
,
unsigned
short
nb_rb
,
unsigned
short
nb_rb
,
unsigned
char
n_rx
,
unsigned
char
n_rx
,
...
@@ -1747,33 +1748,41 @@ uint8_t nr_ulsch_mmse_2layers(NR_DL_FRAME_PARMS *frame_parms,
...
@@ -1747,33 +1748,41 @@ uint8_t nr_ulsch_mmse_2layers(NR_DL_FRAME_PARMS *frame_parms,
*
*
*
*
**************************************************************************/
**************************************************************************/
__m128i
*
rxdataF_comp128_0
,
*
rxdataF_comp128_1
,
*
ul_ch_mag128_0
=
NULL
,
*
ul_ch_mag128b_0
=
NULL
,
*
ul_ch_mag128_1
=
NULL
,
*
ul_ch_mag128b_1
=
NULL
,
*
determ_fin_128
;
__m128i
*
ul_ch_mag128_0
=
NULL
,
*
ul_ch_mag128b_0
=
NULL
,
*
ul_ch_mag128c_0
=
NULL
;
// Layer 0
__m128i
*
ul_ch_mag128_1
=
NULL
,
*
ul_ch_mag128b_1
=
NULL
,
*
ul_ch_mag128c_1
=
NULL
;
// Layer 1
__m128i
mmtmpD0
,
mmtmpD1
,
mmtmpD2
,
mmtmpD3
;
__m128i
mmtmpD0
,
mmtmpD1
,
mmtmpD2
,
mmtmpD3
;
__m128i
*
after_mf_a_128
,
*
after_mf_b_128
,
*
after_mf_c_128
,
*
after_mf_d_128
;
__m128i
QAM_amp128
=
{
0
},
QAM_amp128b
=
{
0
},
QAM_amp128c
=
{
0
};
__m128i
QAM_amp128
=
{
0
},
QAM_amp128b
=
{
0
};
determ_fin_128
=
(
__m128i
*
)
&
determ_fin
[
0
];
__m128i
*
determ_fin_128
=
(
__m128i
*
)
&
determ_fin
[
0
];
rxdataF_comp128_0
=
(
__m128i
*
)
&
rxdataF_comp
[
0
][
symbol
*
(
off
+
nb_rb
*
12
)];
//
aatx=0 @ aarx =0
__m128i
*
rxdataF_comp128_0
=
(
__m128i
*
)
&
rxdataF_comp
[
0
][
symbol
*
(
off
+
nb_rb
*
12
)];
//
aatx=0 @ aarx =0
rxdataF_comp128_1
=
(
__m128i
*
)
&
rxdataF_comp
[
n_rx
][
symbol
*
(
off
+
nb_rb
*
12
)];
//
aatx=1 @ aarx =0
__m128i
*
rxdataF_comp128_1
=
(
__m128i
*
)
&
rxdataF_comp
[
n_rx
][
symbol
*
(
off
+
nb_rb
*
12
)];
//
aatx=1 @ aarx =0
after_mf_a_128
=
(
__m128i
*
)
af_mf_00
;
__m128i
*
after_mf_a_128
=
(
__m128i
*
)
af_mf_00
;
after_mf_b_128
=
(
__m128i
*
)
af_mf_01
;
__m128i
*
after_mf_b_128
=
(
__m128i
*
)
af_mf_01
;
after_mf_c_128
=
(
__m128i
*
)
af_mf_10
;
__m128i
*
after_mf_c_128
=
(
__m128i
*
)
af_mf_10
;
after_mf_d_128
=
(
__m128i
*
)
af_mf_11
;
__m128i
*
after_mf_d_128
=
(
__m128i
*
)
af_mf_11
;
if
(
mod_order
>
2
)
{
if
(
mod_order
>
2
)
{
if
(
mod_order
==
4
)
{
if
(
mod_order
==
4
)
{
QAM_amp128
=
_mm_set1_epi16
(
QAM16_n1
);
//
2/sqrt(10)
QAM_amp128
=
_mm_set1_epi16
(
QAM16_n1
);
//
2/sqrt(10)
QAM_amp128b
=
_mm_setzero_si128
();
QAM_amp128b
=
_mm_setzero_si128
();
QAM_amp128c
=
_mm_setzero_si128
();
}
else
if
(
mod_order
==
6
)
{
}
else
if
(
mod_order
==
6
)
{
QAM_amp128
=
_mm_set1_epi16
(
QAM64_n1
);
//4/sqrt{42}
QAM_amp128
=
_mm_set1_epi16
(
QAM64_n1
);
// 4/sqrt{42}
QAM_amp128b
=
_mm_set1_epi16
(
QAM64_n2
);
//2/sqrt{42}
QAM_amp128b
=
_mm_set1_epi16
(
QAM64_n2
);
// 2/sqrt{42}
QAM_amp128c
=
_mm_setzero_si128
();
}
else
if
(
mod_order
==
8
)
{
QAM_amp128
=
_mm_set1_epi16
(
QAM256_n1
);
QAM_amp128b
=
_mm_set1_epi16
(
QAM256_n2
);
QAM_amp128c
=
_mm_set1_epi16
(
QAM256_n3
);
}
}
ul_ch_mag128_0
=
(
__m128i
*
)
&
ul_ch_mag
[
0
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128_0
=
(
__m128i
*
)
&
ul_ch_mag
[
0
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128b_0
=
(
__m128i
*
)
&
ul_ch_magb
[
0
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128b_0
=
(
__m128i
*
)
&
ul_ch_magb
[
0
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128c_0
=
(
__m128i
*
)
&
ul_ch_magc
[
0
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128_1
=
(
__m128i
*
)
&
ul_ch_mag
[
frame_parms
->
nb_antennas_rx
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128_1
=
(
__m128i
*
)
&
ul_ch_mag
[
frame_parms
->
nb_antennas_rx
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128b_1
=
(
__m128i
*
)
&
ul_ch_magb
[
frame_parms
->
nb_antennas_rx
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128b_1
=
(
__m128i
*
)
&
ul_ch_magb
[
frame_parms
->
nb_antennas_rx
][
symbol
*
(
off
+
nb_rb
*
12
)];
ul_ch_mag128c_1
=
(
__m128i
*
)
&
ul_ch_magc
[
frame_parms
->
nb_antennas_rx
][
symbol
*
(
off
+
nb_rb
*
12
)];
}
}
for
(
int
rb
=
0
;
rb
<
3
*
nb_rb_0
;
rb
++
)
{
for
(
int
rb
=
0
;
rb
<
3
*
nb_rb_0
;
rb
++
)
{
...
@@ -1799,18 +1808,24 @@ uint8_t nr_ulsch_mmse_2layers(NR_DL_FRAME_PARMS *frame_parms,
...
@@ -1799,18 +1808,24 @@ uint8_t nr_ulsch_mmse_2layers(NR_DL_FRAME_PARMS *frame_parms,
// Layer 0
// Layer 0
ul_ch_mag128_0
[
0
]
=
mmtmpD2
;
ul_ch_mag128_0
[
0
]
=
mmtmpD2
;
ul_ch_mag128b_0
[
0
]
=
mmtmpD2
;
ul_ch_mag128b_0
[
0
]
=
mmtmpD2
;
ul_ch_mag128c_0
[
0
]
=
mmtmpD2
;
ul_ch_mag128_0
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128_0
[
0
],
QAM_amp128
);
ul_ch_mag128_0
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128_0
[
0
],
QAM_amp128
);
ul_ch_mag128_0
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128_0
[
0
],
1
);
ul_ch_mag128_0
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128_0
[
0
],
1
);
ul_ch_mag128b_0
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128b_0
[
0
],
QAM_amp128b
);
ul_ch_mag128b_0
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128b_0
[
0
],
QAM_amp128b
);
ul_ch_mag128b_0
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128b_0
[
0
],
1
);
ul_ch_mag128b_0
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128b_0
[
0
],
1
);
ul_ch_mag128c_0
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128c_0
[
0
],
QAM_amp128c
);
ul_ch_mag128c_0
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128c_0
[
0
],
1
);
// Layer 1
// Layer 1
ul_ch_mag128_1
[
0
]
=
mmtmpD2
;
ul_ch_mag128_1
[
0
]
=
mmtmpD2
;
ul_ch_mag128b_1
[
0
]
=
mmtmpD2
;
ul_ch_mag128b_1
[
0
]
=
mmtmpD2
;
ul_ch_mag128c_1
[
0
]
=
mmtmpD2
;
ul_ch_mag128_1
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128_1
[
0
],
QAM_amp128
);
ul_ch_mag128_1
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128_1
[
0
],
QAM_amp128
);
ul_ch_mag128_1
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128_1
[
0
],
1
);
ul_ch_mag128_1
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128_1
[
0
],
1
);
ul_ch_mag128b_1
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128b_1
[
0
],
QAM_amp128b
);
ul_ch_mag128b_1
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128b_1
[
0
],
QAM_amp128b
);
ul_ch_mag128b_1
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128b_1
[
0
],
1
);
ul_ch_mag128b_1
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128b_1
[
0
],
1
);
ul_ch_mag128c_1
[
0
]
=
_mm_mulhi_epi16
(
ul_ch_mag128c_1
[
0
],
QAM_amp128c
);
ul_ch_mag128c_1
[
0
]
=
_mm_slli_epi16
(
ul_ch_mag128c_1
[
0
],
1
);
}
}
// multiply by channel Inv
// multiply by channel Inv
...
@@ -1843,6 +1858,8 @@ uint8_t nr_ulsch_mmse_2layers(NR_DL_FRAME_PARMS *frame_parms,
...
@@ -1843,6 +1858,8 @@ uint8_t nr_ulsch_mmse_2layers(NR_DL_FRAME_PARMS *frame_parms,
ul_ch_mag128_1
+=
1
;
ul_ch_mag128_1
+=
1
;
ul_ch_mag128b_0
+=
1
;
ul_ch_mag128b_0
+=
1
;
ul_ch_mag128b_1
+=
1
;
ul_ch_mag128b_1
+=
1
;
ul_ch_mag128c_0
+=
1
;
ul_ch_mag128c_1
+=
1
;
rxdataF_comp128_0
+=
1
;
rxdataF_comp128_0
+=
1
;
rxdataF_comp128_1
+=
1
;
rxdataF_comp128_1
+=
1
;
after_mf_a_128
+=
1
;
after_mf_a_128
+=
1
;
...
@@ -2075,6 +2092,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
...
@@ -2075,6 +2092,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
pusch_vars
->
rxdataF_comp
,
pusch_vars
->
rxdataF_comp
,
pusch_vars
->
ul_ch_mag0
,
pusch_vars
->
ul_ch_mag0
,
pusch_vars
->
ul_ch_magb0
,
pusch_vars
->
ul_ch_magb0
,
pusch_vars
->
ul_ch_magc0
,
pusch_vars
->
ul_ch_estimates_ext
,
pusch_vars
->
ul_ch_estimates_ext
,
rel15_ul
->
rb_size
,
rel15_ul
->
rb_size
,
frame_parms
->
nb_antennas_rx
,
frame_parms
->
nb_antennas_rx
,
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_llr_computation.c
View file @
6a90266a
...
@@ -463,7 +463,7 @@ void nr_ulsch_256qam_llr(int32_t *rxdataF_comp,
...
@@ -463,7 +463,7 @@ void nr_ulsch_256qam_llr(int32_t *rxdataF_comp,
void
nr_ulsch_compute_llr
(
int32_t
*
rxdataF_comp
,
void
nr_ulsch_compute_llr
(
int32_t
*
rxdataF_comp
,
int32_t
*
ul_ch_mag
,
int32_t
*
ul_ch_mag
,
int32_t
*
ul_ch_magb
,
int32_t
*
ul_ch_magb
,
int32_t
*
ul_ch_magc
,
int32_t
*
ul_ch_magc
,
int16_t
*
ulsch_llr
,
int16_t
*
ulsch_llr
,
uint32_t
nb_rb
,
uint32_t
nb_rb
,
uint32_t
nb_re
,
uint32_t
nb_re
,
...
...
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