Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openairinterface5G
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
149
Issues
149
List
Board
Labels
Milestones
Merge Requests
15
Merge Requests
15
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
oai
openairinterface5G
Commits
d54fe24f
Commit
d54fe24f
authored
Apr 21, 2016
by
knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
acceleration of dlsch_modulation
parent
2176299a
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
524 additions
and
86 deletions
+524
-86
lte_rate_matching.c
openair1/PHY/CODING/lte_rate_matching.c
+2
-6
dlsch_llr_computation.c
openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c
+1
-1
dlsch_modulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
+469
-62
dlsch_scrambling.c
openair1/PHY/LTE_TRANSPORT/dlsch_scrambling.c
+42
-9
proto.h
openair1/PHY/LTE_TRANSPORT/proto.h
+3
-1
cmult_vv.c
openair1/PHY/TOOLS/cmult_vv.c
+1
-1
lte_dfts.c
openair1/PHY/TOOLS/lte_dfts.c
+2
-2
dlsim.c
openair1/SIMULATION/LTE_PHY/dlsim.c
+4
-4
No files found.
openair1/PHY/CODING/lte_rate_matching.c
View file @
d54fe24f
...
...
@@ -53,7 +53,7 @@ uint32_t sub_block_interleaving_turbo(uint32_t D, uint8_t *d,uint8_t *w)
{
uint32_t
RTC
=
(
D
>>
5
),
ND
,
ND3
;
uint32_t
row
,
col
,
Kpi
,
index
;
uint32_t
row
,
col
,
Kpi
;
uint32_t
index3
,
k
,
k2
;
#ifdef RM_DEBUG
uint32_t
nulled
=
0
;
...
...
@@ -84,7 +84,6 @@ uint32_t sub_block_interleaving_turbo(uint32_t D, uint8_t *d,uint8_t *w)
#ifdef RM_DEBUG
printf
(
"Col %d
\n
"
,
col
);
#endif
index
=
bitrev
[
col
];
index3
=
bitrev_x3
[
col
];
//3*index;
for
(
row
=
0
;
row
<
RTC
;
row
++
)
{
...
...
@@ -108,10 +107,7 @@ uint32_t sub_block_interleaving_turbo(uint32_t D, uint8_t *d,uint8_t *w)
#endif
index3
+=
96
;
index
+=
32
;
k
++
;
k2
++
;
k2
++
;
k
++
;
k2
+=
2
;
}
}
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c
View file @
d54fe24f
...
...
@@ -861,7 +861,7 @@ void dlsch_64qam_llr(LTE_DL_FRAME_PARMS *frame_parms,
len_mod4
=
len
&
3
;
len2
=
len
>>
2
;
// length in quad words (4 REs)
len2
+=
(
len_mod4
?
0
:
1
);
len2
+=
(
(
len_mod4
==
0
)
?
0
:
1
);
for
(
i
=
0
;
i
<
len2
;
i
++
)
{
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
d54fe24f
This diff is collapsed.
Click to expand it.
openair1/PHY/LTE_TRANSPORT/dlsch_scrambling.c
View file @
d54fe24f
...
...
@@ -56,10 +56,11 @@ void dlsch_scrambling(LTE_DL_FRAME_PARMS *frame_parms,
uint8_t
Ns
)
{
int
i
,
j
,
k
=
0
;
int
i
;
// uint8_t reset;
uint32_t
x1
,
x2
,
s
=
0
;
uint8_t
*
e
=
dlsch
->
harq_processes
[
dlsch
->
current_harq_pid
]
->
e
;
uint8_t
*
dlsch_e
=
dlsch
->
harq_processes
[
dlsch
->
current_harq_pid
]
->
e
;
uint8_t
*
e
=
dlsch_e
;
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_ENB_DLSCH_SCRAMBLING
,
VCD_FUNCTION_IN
);
...
...
@@ -78,24 +79,56 @@ void dlsch_scrambling(LTE_DL_FRAME_PARMS *frame_parms,
for
(
i
=
0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=
(
e
[
19
]
&
1
)
^
((
s
>>
19
)
&
1
);
e
[
20
]
=
(
e
[
20
]
&
1
)
^
((
s
>>
20
)
&
1
);
e
[
21
]
=
(
e
[
21
]
&
1
)
^
((
s
>>
21
)
&
1
);
e
[
22
]
=
(
e
[
22
]
&
1
)
^
((
s
>>
22
)
&
1
);
e
[
23
]
=
(
e
[
23
]
&
1
)
^
((
s
>>
23
)
&
1
);
e
[
24
]
=
(
e
[
24
]
&
1
)
^
((
s
>>
24
)
&
1
);
e
[
25
]
=
(
e
[
25
]
&
1
)
^
((
s
>>
25
)
&
1
);
e
[
26
]
=
(
e
[
26
]
&
1
)
^
((
s
>>
26
)
&
1
);
e
[
27
]
=
(
e
[
27
]
&
1
)
^
((
s
>>
27
)
&
1
);
e
[
28
]
=
(
e
[
28
]
&
1
)
^
((
s
>>
28
)
&
1
);
e
[
29
]
=
(
e
[
29
]
&
1
)
^
((
s
>>
29
)
&
1
);
e
[
30
]
=
(
e
[
30
]
&
1
)
^
((
s
>>
30
)
&
1
);
e
[
31
]
=
(
e
[
31
]
&
1
)
^
((
s
>>
31
)
&
1
);
#ifdef DEBUG_SCRAMBLING
printf
(
"%d
\n
"
,
e
[
k
]);
#endif
}
s
=
lte_gold_generic
(
&
x1
,
&
x2
,
0
);
e
+=
32
;
}
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_ENB_DLSCH_SCRAMBLING
,
VCD_FUNCTION_OUT
);
}
void
dlsch_unscrambling
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
int
mbsfn_flag
,
LTE_UE_DLSCH_t
*
dlsch
,
...
...
openair1/PHY/LTE_TRANSPORT/proto.h
View file @
d54fe24f
...
...
@@ -183,7 +183,9 @@ int32_t allocate_REs_in_RB(LTE_DL_FRAME_PARMS *frame_parms,
int16_t
*
qam_table_s1
,
uint32_t
*
re_allocated
,
uint8_t
skip_dc
,
uint8_t
skip_half
);
uint8_t
skip_half
,
int
*
P1_SHIFT
,
int
*
P2_SHIFT
);
/** \fn int32_t dlsch_modulation(mod_sym_t **txdataF,
...
...
openair1/PHY/TOOLS/cmult_vv.c
View file @
d54fe24f
...
...
@@ -85,7 +85,7 @@ int mult_cpx_conj_vector(int16_t *x1,
// we compute 4 cpx multiply for each loop
for
(
i
=
0
;
i
<
(
N
>>
2
);
i
++
)
{
#if defined(__x86_64__) || defined(__i386__)
#if defined(__x86_64__) || defined(__i386__)
tmp_re
=
_mm_madd_epi16
(
*
x1_128
,
*
x2_128
);
tmp_im
=
_mm_shufflelo_epi16
(
*
x1_128
,
_MM_SHUFFLE
(
2
,
3
,
0
,
1
));
tmp_im
=
_mm_shufflehi_epi16
(
tmp_im
,
_MM_SHUFFLE
(
2
,
3
,
0
,
1
));
...
...
openair1/PHY/TOOLS/lte_dfts.c
View file @
d54fe24f
...
...
@@ -105,7 +105,6 @@ static inline void cmacc(__m128i a,__m128i b, __m128i *re32, __m128i *im32)
static inline void cmult(__m128i a,__m128i b, __m128i *re32, __m128i *im32) __attribute__((always_inline));
static inline void cmult(__m128i a,__m128i b, __m128i *re32, __m128i *im32)
...
...
@@ -1754,7 +1753,8 @@ int16_t tw64c[96] __attribute__((aligned(16))) = { 0,32767,3212,32609,6393,32137
#define simdshort_q15_t __m64
#define shiftright_int16(a,shift) _mm_srai_epi16(a,shift)
#define set1_int16(a) _mm_set1_epi16(a);
#define mulhi_int16(a,b) _mm_slli_epi16(_mm_mulhi_epi16(a,b),1);
//#define mulhi_int16(a,b) _mm_slli_epi16(_mm_mulhi_epi16(a,b),1);
#define mulhi_int16(a,b) _mm_mulhrs_epi16 (a,b)
#elif defined(__arm__)
#define simd_q15_t int16x8_t
#define simdshort_q15_t int16x4_t
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
d54fe24f
...
...
@@ -215,7 +215,7 @@ int main(int argc, char **argv)
// void *data;
// int ii;
// int bler;
double
blerr
[
4
],
uncoded_ber
;
//
,avg_ber;
double
blerr
[
4
],
uncoded_ber
,
avg_ber
;
short
*
uncoded_ber_bit
=
NULL
;
uint8_t
N_RB_DL
=
25
,
osf
=
1
;
frame_t
frame_type
=
FDD
;
...
...
@@ -2623,7 +2623,7 @@ PMI_FEEDBACK:
&
PHY_vars_eNB
->
lte_frame_parms
,
num_pdcch_symbols
,
PHY_vars_eNB
->
dlsch_eNB
[
k
][
0
],
PHY_vars_eNB
->
dlsch_eNB
[
k
][
1
]
);
(
transmission_mode
==
3
)
||
(
transmission_mode
==
4
)
?
PHY_vars_eNB
->
dlsch_eNB
[
k
][
1
]
:
NULL
);
/* avoid gcc warnings */
(
void
)
re_allocated
;
...
...
@@ -3292,7 +3292,7 @@ PMI_FEEDBACK:
PHY_vars_UE
->
dlsch_ue
[
0
][
cw
]
->
harq_processes
[
PHY_vars_UE
->
dlsch_ue
[
0
][
cw
]
->
current_harq_pid
]
->
G
=
coded_bits_per_codeword
;
/*
// calculate uncoded BLER
uncoded_ber
=
0
;
for
(
i
=
0
;
i
<
coded_bits_per_codeword
;
i
++
)
...
...
@@ -3308,7 +3308,7 @@ PMI_FEEDBACK:
if
(
n_frames
==
1
)
write_output
(
"uncoded_ber_bit.m"
,
"uncoded_ber_bit"
,
uncoded_ber_bit
,
coded_bits_per_codeword
,
1
,
0
);
*/
start_meas
(
&
PHY_vars_UE
->
dlsch_unscrambling_stats
);
dlsch_unscrambling
(
&
PHY_vars_UE
->
lte_frame_parms
,
...
...
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