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
alex037yang
OpenXG-RAN
Commits
4a523a39
Commit
4a523a39
authored
Jun 06, 2018
by
Sebastian Wagner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arrays for CRC calculation are defined as constants.
parent
3fd24705
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
145 additions
and
145 deletions
+145
-145
openair1/PHY/CODING/3gpplte_turbo_decoder_sse.c
openair1/PHY/CODING/3gpplte_turbo_decoder_sse.c
+0
-2
openair1/PHY/CODING/TESTBENCH/pdcch_test.c
openair1/PHY/CODING/TESTBENCH/pdcch_test.c
+0
-3
openair1/PHY/CODING/TESTBENCH/viterbi_test.c
openair1/PHY/CODING/TESTBENCH/viterbi_test.c
+0
-2
openair1/PHY/CODING/coding_defs.h
openair1/PHY/CODING/coding_defs.h
+8
-10
openair1/PHY/CODING/crc_byte.c
openair1/PHY/CODING/crc_byte.c
+137
-126
openair1/PHY/INIT/init_top.c
openair1/PHY/INIT/init_top.c
+0
-2
No files found.
openair1/PHY/CODING/3gpplte_turbo_decoder_sse.c
View file @
4a523a39
...
...
@@ -2620,8 +2620,6 @@ int test_logmap8()
test
[
3
]
=
0x92
;
test
[
4
]
=
0xfe
;
crcTableInit
();
crc
=
crc24a
(
test
,
40
)
>>
8
;
...
...
openair1/PHY/CODING/TESTBENCH/pdcch_test.c
View file @
4a523a39
...
...
@@ -52,8 +52,6 @@ void lte_param_init(unsigned char N_tx, unsigned char N_rx)
randominit
(
0
);
set_taus_seed
(
0
);
crcTableInit
();
lte_frame_parms
=
&
(
PHY_config
->
lte_frame_parms
);
//openair1/PHY/impl_defs_lte.h
lte_ue_common_vars
=
&
(
PHY_vars
->
lte_ue_common_vars
);
lte_ue_dlsch_vars
=
&
(
PHY_vars
->
lte_ue_dlsch_vars
);
...
...
@@ -249,7 +247,6 @@ int main(int argc, char *argv[])
randominit
(
0
);
set_taus_seed
(
0
);
crcTableInit
();
ccodelte_init
();
ccodelte_init_inv
();
...
...
openair1/PHY/CODING/TESTBENCH/viterbi_test.c
View file @
4a523a39
...
...
@@ -218,8 +218,6 @@ int main(int argc, char *argv[])
randominit
();
set_taus_seed
();
crcTableInit
();
printf
(
"EbN0, sigma, BER, FER
\n
"
);
for
(
SNR
=
0
;
SNR
<
10
;
SNR
++
)
{
...
...
openair1/PHY/CODING/coding_defs.h
View file @
4a523a39
...
...
@@ -29,8 +29,6 @@
#include <stdint.h>
#include "PHY/defs_common.h"
#define CRC24_A 0
#define CRC24_B 1
#define CRC16 2
...
...
@@ -321,7 +319,7 @@ void ccodedab_init_inv(void);
/*!\fn void crcTableInit(void)
\brief This function initializes the different crc tables.*/
void
crcTableInit
(
void
);
//
void crcTableInit (void);
...
...
@@ -331,7 +329,7 @@ based on 3GPP UMTS/LTE specifications.
@param inPtr Pointer to input byte stream
@param bitlen length of inputs in bits
*/
uint32_t
crc24a
(
uint8_t
*
inPtr
,
int32_t
bitlen
);
uint32_t
crc24a
(
uint8_t
*
inptr
,
u
int32_t
bitlen
);
/*!\fn uint32_t crc24b(uint8_t *inPtr, int32_t bitlen)
\brief This computes a 24-bit crc ('b' variant for transport-block segments)
...
...
@@ -339,26 +337,26 @@ based on 3GPP UMTS/LTE specifications.
@param inPtr Pointer to input byte stream
@param bitlen length of inputs in bits
*/
uint32_t
crc24b
(
uint8_t
*
inPtr
,
int32_t
bitlen
);
uint32_t
crc24b
(
uint8_t
*
inptr
,
u
int32_t
bitlen
);
/*!\fn uint32_t crc16(uint8_t *inPtr, int32_t bitlen)
\brief This computes a 16-bit crc based on 3GPP UMTS specifications.
@param inPtr Pointer to input byte stream
@param bitlen length of inputs in bits*/
uint32_t
crc16
(
uint8_t
*
inPtr
,
int32_t
bitlen
);
uint32_t
crc16
(
uint8_t
*
inptr
,
u
int32_t
bitlen
);
/*!\fn uint32_t crc12(uint8_t *inPtr, int32_t bitlen)
\brief This computes a 12-bit crc based on 3GPP UMTS specifications.
@param inPtr Pointer to input byte stream
@param bitlen length of inputs in bits*/
uint32_t
crc12
(
uint8_t
*
inPtr
,
int32_t
bitlen
);
uint32_t
crc12
(
uint8_t
*
inptr
,
u
int32_t
bitlen
);
/*!\fn uint32_t crc8(uint8_t *inPtr, int32_t bitlen)
\brief This computes a 8-bit crc based on 3GPP UMTS specifications.
@param inPtr Pointer to input byte stream
@param bitlen length of inputs in bits*/
uint32_t
crc8
(
uint8_t
*
inPtr
,
int32_t
bitlen
);
uint32_t
crc8
(
uint8_t
*
inptr
,
u
int32_t
bitlen
);
/*!\fn void phy_viterbi_dot11_sse2(int8_t *y, uint8_t *decoded_bytes, uint16_t n,int offset,int traceback)
\brief This routine performs a SIMD optmized Viterbi decoder for the 802.11 64-state convolutional code. It can be
run in segments with final trace back after last segment.
...
...
openair1/PHY/CODING/crc_byte.c
View file @
4a523a39
This diff is collapsed.
Click to expand it.
openair1/PHY/INIT/init_top.c
View file @
4a523a39
...
...
@@ -67,8 +67,6 @@ void generate_qpsk_table(void)
void
init_lte_top
(
LTE_DL_FRAME_PARMS
*
frame_parms
)
{
crcTableInit
();
ccodedot11_init
();
ccodedot11_init_inv
();
...
...
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