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
Michael Black
OpenXG-RAN
Commits
852a6c4f
Commit
852a6c4f
authored
Mar 28, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove write-only variables
parent
ca4b438d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
40 deletions
+7
-40
cmake_targets/at_commands/CMakeLists.txt
cmake_targets/at_commands/CMakeLists.txt
+1
-1
cmake_targets/nas_sim_tools/CMakeLists.txt
cmake_targets/nas_sim_tools/CMakeLists.txt
+1
-1
openair1/PHY/CODING/TESTBENCH/polartest.c
openair1/PHY/CODING/TESTBENCH/polartest.c
+0
-6
openair1/PHY/CODING/lte_rate_matching.c
openair1/PHY/CODING/lte_rate_matching.c
+1
-3
openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c
openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c
+2
-8
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
+1
-15
openair1/PHY/LTE_UE_TRANSPORT/pmch_ue.c
openair1/PHY/LTE_UE_TRANSPORT/pmch_ue.c
+1
-4
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
+0
-2
No files found.
cmake_targets/at_commands/CMakeLists.txt
View file @
852a6c4f
...
...
@@ -82,7 +82,7 @@ endif()
set_property
(
CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release RelWithDebInfo MinSizeRel
)
#
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-msse4.2 -std=gnu99 -Wall -Wstrict-prototypes -fno-strict-aliasing -rdynamic -funroll-loops
-Wno-packed-bitfield-compat
"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-msse4.2 -std=gnu99 -Wall -Wstrict-prototypes -fno-strict-aliasing -rdynamic -funroll-loops"
)
set
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-ggdb -DMALLOC_CHECK_=3"
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
-ggdb -DMALLOC_CHECK_=3 -O2"
)
...
...
cmake_targets/nas_sim_tools/CMakeLists.txt
View file @
852a6c4f
...
...
@@ -10,7 +10,7 @@ add_definitions(-std=gnu99)
ENABLE_LANGUAGE
(
C
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
C_FLAGS_PROCESSOR
}
-Werror -Wall -Wstrict-prototypes -
Wno-packed-bitfield-compat -
g"
)
"
${
CMAKE_C_FLAGS
}
${
C_FLAGS_PROCESSOR
}
-Werror -Wall -Wstrict-prototypes -g"
)
set
(
OPENAIR_DIR $ENV{OPENAIR_DIR}
)
set
(
OPENAIR3_DIR $ENV{OPENAIR_DIR}/openair3
)
...
...
openair1/PHY/CODING/TESTBENCH/polartest.c
View file @
852a6c4f
...
...
@@ -29,7 +29,6 @@ int main(int argc, char *argv[])
uint32_t
decoderState
=
0
,
blockErrorState
=
0
;
//0 = Success, -1 = Decoding failed, 1 = Block Error.
uint16_t
testLength
=
NR_POLAR_PBCH_PAYLOAD_BITS
,
coderLength
=
NR_POLAR_PBCH_E
;
uint16_t
blockErrorCumulative
=
0
,
bitErrorCumulative
=
0
;
double
timeEncoderCumulative
=
0
,
timeDecoderCumulative
=
0
;
uint8_t
aggregation_level
=
8
,
decoderListSize
=
8
,
logFlag
=
0
;
uint16_t
rnti
=
0
;
...
...
@@ -326,8 +325,6 @@ int main(int argc, char *argv[])
#endif
//Iteration times are in microseconds.
timeEncoderCumulative
+=
(
timeEncoder
.
diff
/
(
get_cpu_freq_GHz
()
*
1000
.
0
));
timeDecoderCumulative
+=
(
timeDecoder
.
diff
/
(
get_cpu_freq_GHz
()
*
1000
.
0
));
if
(
logFlag
)
fprintf
(
logFile
,
",%f,%d,%u,%f,%f
\n
"
,
SNR
,
nBitError
,
blockErrorState
,
(
timeEncoder
.
diff
/
(
get_cpu_freq_GHz
()
*
1000
.
0
)),
(
timeDecoder
.
diff
/
(
get_cpu_freq_GHz
()
*
1000
.
0
)));
if
(
nBitError
<
0
)
{
...
...
@@ -351,14 +348,11 @@ int main(int argc, char *argv[])
decoderListSize
,
SNR
,
((
double
)
blockErrorCumulative
/
iterations
),
((
double
)
bitErrorCumulative
/
(
iterations
*
testLength
)),
(
double
)
timeEncoder
.
diff
/
timeEncoder
.
trials
/
(
get_cpu_freq_GHz
()
*
1000
.
0
),(
double
)
timeDecoder
.
diff
/
timeDecoder
.
trials
/
(
get_cpu_freq_GHz
()
*
1000
.
0
));
//(timeEncoderCumulative/iterations),timeDecoderCumulative/iterations);
if
(
blockErrorCumulative
==
0
&&
bitErrorCumulative
==
0
)
break
;
blockErrorCumulative
=
0
;
bitErrorCumulative
=
0
;
timeEncoderCumulative
=
0
;
timeDecoderCumulative
=
0
;
}
print_meas
(
&
timeEncoder
,
"polar_encoder"
,
NULL
,
NULL
);
...
...
openair1/PHY/CODING/lte_rate_matching.c
View file @
852a6c4f
...
...
@@ -174,7 +174,7 @@ uint32_t sub_block_interleaving_cc(uint32_t D, uint8_t *d,uint8_t *w) {
void
sub_block_deinterleaving_turbo
(
uint32_t
D
,
int16_t
*
d
,
int16_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
;
int16_t
*
d1
,
*
d2
,
*
d3
;
...
...
@@ -200,7 +200,6 @@ void sub_block_deinterleaving_turbo(uint32_t D,int16_t *d,int16_t *w) {
#ifdef RM_DEBUG2
printf
(
"Col %d
\n
"
,
col
);
#endif
index
=
bitrev
[
col
];
index3
=
bitrev_x3
[
col
];
//3*index;
for
(
row
=
0
;
row
<
RTC
;
row
++
)
{
...
...
@@ -208,7 +207,6 @@ void sub_block_deinterleaving_turbo(uint32_t D,int16_t *d,int16_t *w) {
d2
[
index3
]
=
w
[
Kpi
+
k2
];
d3
[
index3
]
=
w
[
Kpi
+
1
+
k2
];
index3
+=
96
;
index
+=
32
;
k
++
;
k2
++
;
k2
++
;
...
...
openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c
View file @
852a6c4f
...
...
@@ -771,7 +771,6 @@ void ulsch_correct_ext(int32_t **rxdataF_ext,
void
ulsch_channel_compensation
(
int32_t
**
rxdataF_ext
,
int32_t
**
ul_ch_estimates_ext
,
int32_t
**
ul_ch_mag
,
int32_t
**
ul_ch_magb
,
int32_t
**
rxdataF_comp
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
symbol
,
...
...
@@ -780,13 +779,13 @@ void ulsch_channel_compensation(int32_t **rxdataF_ext,
uint8_t
output_shift
)
{
uint16_t
rb
;
#if defined(__x86_64__) || defined(__i386__)
__m128i
*
ul_ch128
,
*
ul_ch_mag128
,
*
ul_ch_mag128b
,
*
rxdataF128
,
*
rxdataF_comp128
;
__m128i
*
ul_ch128
,
*
ul_ch_mag128
,
*
rxdataF128
,
*
rxdataF_comp128
;
uint8_t
aarx
;
//,symbol_mod;
__m128i
mmtmpU0
,
mmtmpU1
,
mmtmpU2
,
mmtmpU3
;
#elif defined(__arm__) || defined(__aarch64__)
int16x4_t
*
ul_ch128
,
*
rxdataF128
;
int16x8_t
*
ul_ch_mag128
,
*
ul_ch_mag128b
,
*
rxdataF_comp128
;
int16x8_t
*
ul_ch_mag128
,
*
rxdataF_comp128
;
uint8_t
aarx
;
//,symbol_mod;
int32x4_t
mmtmpU0
,
mmtmpU1
,
mmtmpU0b
,
mmtmpU1b
;
int16_t
conj
[
4
]
__attribute__
((
aligned
(
16
)))
=
{
1
,
-
1
,
1
,
-
1
};
...
...
@@ -798,13 +797,11 @@ void ulsch_channel_compensation(int32_t **rxdataF_ext,
#if defined(__x86_64__) || defined(__i386__)
ul_ch128
=
(
__m128i
*
)
&
ul_ch_estimates_ext
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128
=
(
__m128i
*
)
&
ul_ch_mag
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128b
=
(
__m128i
*
)
&
ul_ch_magb
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF128
=
(
__m128i
*
)
&
rxdataF_ext
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128
=
(
__m128i
*
)
&
rxdataF_comp
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
#elif defined(__arm__) || defined(__aarch64__)
ul_ch128
=
(
int16x4_t
*
)
&
ul_ch_estimates_ext
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128
=
(
int16x8_t
*
)
&
ul_ch_mag
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128b
=
(
int16x8_t
*
)
&
ul_ch_magb
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF128
=
(
int16x4_t
*
)
&
rxdataF_ext
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128
=
(
int16x8_t
*
)
&
rxdataF_comp
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
#endif
...
...
@@ -912,7 +909,6 @@ void ulsch_channel_compensation(int32_t **rxdataF_ext,
ul_ch128
+=
3
;
ul_ch_mag128
+=
3
;
ul_ch_mag128b
+=
3
;
rxdataF128
+=
3
;
rxdataF_comp128
+=
3
;
#elif defined(__arm__) || defined(__aarch64__)
...
...
@@ -962,7 +958,6 @@ void ulsch_channel_compensation(int32_t **rxdataF_ext,
ul_ch128
+=
6
;
ul_ch_mag128
+=
3
;
ul_ch_mag128b
+=
3
;
rxdataF128
+=
6
;
rxdataF_comp128
+=
3
;
#endif
...
...
@@ -1169,7 +1164,6 @@ void rx_ulsch(PHY_VARS_eNB *eNB,
pusch_vars
->
rxdataF_ext
,
pusch_vars
->
drs_ch_estimates
,
pusch_vars
->
ul_ch_mag
,
pusch_vars
->
ul_ch_magb
,
pusch_vars
->
rxdataF_comp
,
frame_parms
,
l
,
...
...
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
View file @
852a6c4f
...
...
@@ -4550,12 +4550,11 @@ void dlsch_alamouti(LTE_DL_FRAME_PARMS *frame_parms,
unsigned
short
nb_rb
)
{
#if defined(__x86_64__)||defined(__i386__)
short
*
rxF0
,
*
rxF1
;
__m128i
*
ch_mag0
,
*
ch_mag1
,
*
ch_mag0b
,
*
ch_mag1b
,
*
rxF0_128
;
__m128i
*
ch_mag0
,
*
ch_mag1
,
*
ch_mag0b
,
*
ch_mag1b
;
unsigned
char
rb
,
re
;
int
jj
=
(
symbol
*
frame_parms
->
N_RB_DL
*
12
);
uint8_t
symbol_mod
=
(
symbol
>=
(
7
-
frame_parms
->
Ncp
))
?
symbol
-
(
7
-
frame_parms
->
Ncp
)
:
symbol
;
uint8_t
pilots
=
((
symbol_mod
==
0
)
||
(
symbol_mod
==
(
4
-
frame_parms
->
Ncp
)))
?
1
:
0
;
rxF0_128
=
(
__m128i
*
)
&
rxdataF_comp
[
0
][
jj
];
//amp = _mm_set1_epi16(ONE_OVER_2_Q15);
// printf("Doing alamouti!\n");
rxF0
=
(
short
*
)
&
rxdataF_comp
[
0
][
jj
];
//tx antenna 0 h0*y
...
...
@@ -4590,33 +4589,20 @@ void dlsch_alamouti(LTE_DL_FRAME_PARMS *frame_parms,
//ch_mag0b[0] = _mm_srai_epi16(ch_mag0b[0],1);
//ch_mag0b[1] = _mm_srai_epi16(ch_mag0b[1],1);
//rxF0_128[0] = _mm_mulhi_epi16(rxF0_128[0],amp);
//rxF0_128[0] = _mm_slli_epi16(rxF0_128[0],1);
//rxF0_128[1] = _mm_mulhi_epi16(rxF0_128[1],amp);
//rxF0_128[1] = _mm_slli_epi16(rxF0_128[1],1);
//rxF0_128[0] = _mm_srai_epi16(rxF0_128[0],1);
//rxF0_128[1] = _mm_srai_epi16(rxF0_128[1],1);
if
(
pilots
==
0
)
{
ch_mag0
[
2
]
=
_mm_adds_epi16
(
ch_mag0
[
2
],
ch_mag1
[
2
]);
ch_mag0b
[
2
]
=
_mm_adds_epi16
(
ch_mag0b
[
2
],
ch_mag1b
[
2
]);
//ch_mag0[2] = _mm_srai_epi16(ch_mag0[2],1);
//ch_mag0b[2] = _mm_srai_epi16(ch_mag0b[2],1);
//rxF0_128[2] = _mm_mulhi_epi16(rxF0_128[2],amp);
//rxF0_128[2] = _mm_slli_epi16(rxF0_128[2],1);
//rxF0_128[2] = _mm_srai_epi16(rxF0_128[2],1);
ch_mag0
+=
3
;
ch_mag1
+=
3
;
ch_mag0b
+=
3
;
ch_mag1b
+=
3
;
rxF0_128
+=
3
;
}
else
{
ch_mag0
+=
2
;
ch_mag1
+=
2
;
ch_mag0b
+=
2
;
ch_mag1b
+=
2
;
rxF0_128
+=
2
;
}
}
...
...
openair1/PHY/LTE_UE_TRANSPORT/pmch_ue.c
View file @
852a6c4f
...
...
@@ -145,7 +145,7 @@ void mch_extract_rbs_khz_1dot25(int **rxdataF,
/*unsigned char symbol,*/
unsigned
char
subframe
,
LTE_DL_FRAME_PARMS
*
frame_parms
)
{
int
i
,
j
,
offset
,
aarx
,
numext
;
int
i
,
j
,
offset
,
aarx
;
if
(
(
subframe
&
0x1
)
==
0
)
{
offset
=
0
;
...
...
@@ -153,8 +153,6 @@ void mch_extract_rbs_khz_1dot25(int **rxdataF,
offset
=
3
;
}
numext
=
0
;
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
for
(
i
=
0
,
j
=
0
;
i
<
frame_parms
->
N_RB_DL
*
72
;
i
++
)
{
if
(
((
i
-
offset
)
%
6
)
!=
0
)
{
...
...
@@ -163,7 +161,6 @@ void mch_extract_rbs_khz_1dot25(int **rxdataF,
rxdataF_ext
[
aarx
][(
frame_parms
->
N_RB_DL
*
60
)
+
j
+
0
]
=
rxdataF
[
aarx
][
i
+
1
+
0
];
//DC
dl_ch_estimates_ext
[
aarx
][
j
+
0
]
=
dl_ch_estimates
[
aarx
][
i
+
0
];
dl_ch_estimates_ext
[
aarx
][(
frame_parms
->
N_RB_DL
*
60
)
+
j
+
0
]
=
dl_ch_estimates
[
aarx
][
i
+
(
frame_parms
->
N_RB_DL
*
72
)
+
0
];
numext
+=
2
;
j
++
;
}
}
...
...
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
View file @
852a6c4f
...
...
@@ -813,7 +813,6 @@ uint8_t nr_ue_get_rach(module_id_t mod_id,
uint16_t
sdu_lengths
[
NB_RB_MAX
]
=
{
0
};
int
TBS_bytes
=
848
;
int
mac_ce_len
=
0
;
int
header_length_total
=
0
;
unsigned
short
post_padding
=
1
;
// fill ulsch_buffer with random data
...
...
@@ -823,7 +822,6 @@ uint8_t nr_ue_get_rach(module_id_t mod_id,
//Sending SDUs with size 1
//Initialize elements of sdu_lengths
sdu_lengths
[
0
]
=
TBS_bytes
-
3
-
post_padding
-
mac_ce_len
;
header_length_total
+=
2
+
(
sdu_lengths
[
0
]
>=
128
);
size_sdu
+=
sdu_lengths
[
0
];
if
(
size_sdu
>
0
)
{
...
...
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