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
e785891f
Commit
e785891f
authored
May 07, 2020
by
Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integration of the generated file (nrLDPC_cnProc_BG1_Z384_13 with the LDPC decoder at the base
parent
f8fbd26b
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
100869 additions
and
17 deletions
+100869
-17
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+4
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
+21
-7
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/Makefile
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/Makefile
+3
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.exe
...ir1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.exe
+0
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.h
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.h
+2
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.o
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.o
+0
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/gmon.out
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/gmon.out
+0
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.c
...r/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.c
+100831
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.h
...r/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.h
+4
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
+1
-1
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.o
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.o
+0
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
+1
-1
openair1/PHY/TOOLS/time_meas.h
openair1/PHY/TOOLS/time_meas.h
+2
-2
No files found.
cmake_targets/CMakeLists.txt
View file @
e785891f
...
@@ -1305,19 +1305,23 @@ set(PHY_TURBOIF
...
@@ -1305,19 +1305,23 @@ set(PHY_TURBOIF
set
(
PHY_LDPC_ORIG_SRC
set
(
PHY_LDPC_ORIG_SRC
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.c
)
)
set
(
PHY_LDPC_OPTIM_SRC
set
(
PHY_LDPC_OPTIM_SRC
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder_optim.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder_optim.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.c
)
)
set
(
PHY_LDPC_OPTIM8SEG_SRC
set
(
PHY_LDPC_OPTIM8SEG_SRC
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder_optim8seg.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder_optim8seg.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.c
)
)
set
(
PHY_LDPC_OPTIM8SEGMULTI_SRC
set
(
PHY_LDPC_OPTIM8SEGMULTI_SRC
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder_optim8segmulti.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_encoder/ldpc_encoder_optim8segmulti.c
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.c
)
)
set
(
PHY_NR_CODINGIF
set
(
PHY_NR_CODINGIF
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_load.c;
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_load.c;
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c
View file @
e785891f
/*
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
...
@@ -37,7 +38,7 @@
...
@@ -37,7 +38,7 @@
#include "nrLDPC_mPass.h"
#include "nrLDPC_mPass.h"
#include "nrLDPC_cnProc.h"
#include "nrLDPC_cnProc.h"
#include "nrLDPC_bnProc.h"
#include "nrLDPC_bnProc.h"
#include "nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.h"
#define NR_LDPC_ENABLE_PARITY_CHECK
#define NR_LDPC_ENABLE_PARITY_CHECK
#define NR_LDPC_PROFILER_DETAIL
#define NR_LDPC_PROFILER_DETAIL
...
@@ -81,6 +82,9 @@ static inline uint32_t nrLDPC_decoder_core(int8_t* p_llr, int8_t* p_out, t_nrLDP
...
@@ -81,6 +82,9 @@ static inline uint32_t nrLDPC_decoder_core(int8_t* p_llr, int8_t* p_out, t_nrLDP
uint8_t
numMaxIter
=
p_decParams
->
numMaxIter
;
uint8_t
numMaxIter
=
p_decParams
->
numMaxIter
;
e_nrLDPC_outMode
outMode
=
p_decParams
->
outMode
;
e_nrLDPC_outMode
outMode
=
p_decParams
->
outMode
;
int8_t
*
cnProcBuf
=
p_procBuf
->
cnProcBuf
;
int8_t
*
cnProcBufRes
=
p_procBuf
->
cnProcBufRes
;
// Minimum number of iterations is 1
// Minimum number of iterations is 1
// 0 iterations means hard-decision on input LLRs
// 0 iterations means hard-decision on input LLRs
uint32_t
i
=
1
;
uint32_t
i
=
1
;
...
@@ -142,9 +146,12 @@ static inline uint32_t nrLDPC_decoder_core(int8_t* p_llr, int8_t* p_out, t_nrLDP
...
@@ -142,9 +146,12 @@ static inline uint32_t nrLDPC_decoder_core(int8_t* p_llr, int8_t* p_out, t_nrLDP
start_meas
(
&
p_profiler
->
cnProc
);
start_meas
(
&
p_profiler
->
cnProc
);
#endif
#endif
if
(
BG
==
1
)
if
(
BG
==
1
)
{
{
if
(
Z
==
384
){
nrLDPC_cnProc_BG1_Z384_13
(
p_procBuf
->
cnProcBuf
,
p_procBuf
->
cnProcBufRes
);
}
else
{
nrLDPC_cnProc_BG1
(
p_lut
,
p_procBuf
,
Z
);
nrLDPC_cnProc_BG1
(
p_lut
,
p_procBuf
,
Z
);
}
}
}
else
else
{
{
nrLDPC_cnProc_BG2
(
p_lut
,
p_procBuf
,
Z
);
nrLDPC_cnProc_BG2
(
p_lut
,
p_procBuf
,
Z
);
...
@@ -242,8 +249,12 @@ static inline uint32_t nrLDPC_decoder_core(int8_t* p_llr, int8_t* p_out, t_nrLDP
...
@@ -242,8 +249,12 @@ static inline uint32_t nrLDPC_decoder_core(int8_t* p_llr, int8_t* p_out, t_nrLDP
#endif
#endif
if
(
BG
==
1
)
if
(
BG
==
1
)
{
{
if
(
Z
==
384
){
nrLDPC_cnProc_BG1_Z384_13
(
p_procBuf
->
cnProcBuf
,
p_procBuf
->
cnProcBufRes
);
}
else
{
nrLDPC_cnProc_BG1
(
p_lut
,
p_procBuf
,
Z
);
nrLDPC_cnProc_BG1
(
p_lut
,
p_procBuf
,
Z
);
}
}
}
else
else
{
{
nrLDPC_cnProc_BG2
(
p_lut
,
p_procBuf
,
Z
);
nrLDPC_cnProc_BG2
(
p_lut
,
p_procBuf
,
Z
);
...
@@ -351,9 +362,12 @@ static inline uint32_t nrLDPC_decoder_core(int8_t* p_llr, int8_t* p_out, t_nrLDP
...
@@ -351,9 +362,12 @@ static inline uint32_t nrLDPC_decoder_core(int8_t* p_llr, int8_t* p_out, t_nrLDP
start_meas
(
&
p_profiler
->
cnProc
);
start_meas
(
&
p_profiler
->
cnProc
);
#endif
#endif
if
(
BG
==
1
)
if
(
BG
==
1
)
{
{
if
(
Z
==
384
){
nrLDPC_cnProc_BG1_Z384_13
(
p_procBuf
->
cnProcBuf
,
p_procBuf
->
cnProcBufRes
);
}
else
{
nrLDPC_cnProc_BG1
(
p_lut
,
p_procBuf
,
Z
);
nrLDPC_cnProc_BG1
(
p_lut
,
p_procBuf
,
Z
);
}
}
}
else
else
{
{
nrLDPC_cnProc_BG2
(
p_lut
,
p_procBuf
,
Z
);
nrLDPC_cnProc_BG2
(
p_lut
,
p_procBuf
,
Z
);
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/Makefile
View file @
e785891f
...
@@ -8,12 +8,12 @@ OBJ= $(SRC:.c=.o)
...
@@ -8,12 +8,12 @@ OBJ= $(SRC:.c=.o)
all
:
$(EXEC)
all
:
$(EXEC)
cnProc_gen
:
$(OBJ)
cnProc_gen
:
$(OBJ)
$(CC)
-o
$@
$^
$(LDFLAGS)
-O
$(CC)
-o
$@
$^
$(LDFLAGS)
-O
2
-pg
main.o
:
cnProc_gen.h
main.o
:
cnProc_gen.h
%.o
:
%.c
%.o
:
%.c
$(CC)
-o
$@
-c
$<
$(CFLAGS)
-I
${OPENAIR_HOME}
/openair1
-g
-ggdb
$(CC)
-o
$@
-c
$<
$(CFLAGS)
-I
${OPENAIR_HOME}
/openair1
-g
-pg
.PHONY
:
clean mrproper
.PHONY
:
clean mrproper
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.exe
0 → 100644
View file @
e785891f
File added
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.h
View file @
e785891f
#ifndef NRLDPC_CN_GEN
#ifndef NRLDPC_CN_GEN
#define NRLDPC_DN_GEN
#define NRLDPC_CN_GEN
void
nrLDPC_cnProc_BG1
(
t_nrLDPC_lut
*
p_lut
,
t_nrLDPC_procBuf
*
p_procBuf
,
uint16_t
Z
);
void
nrLDPC_cnProc_BG1_generator
(
uint16_t
Z
,
int
R
);
#endif
#endif
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.o
0 → 100644
View file @
e785891f
File added
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/gmon.out
0 → 100644
View file @
e785891f
File added
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.c
0 → 100644
View file @
e785891f
This diff is collapsed.
Click to expand it.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/ldpc_gen_files/nrLDPC_cnProc_BG1_Z384_13.h
0 → 100644
View file @
e785891f
#ifndef NR_CN_PROC_BG1_OPTIM
#define NR_CN_PROC_BG1_OPTIM
void
nrLDPC_cnProc_BG1_Z384_13
(
int8_t
*
cnProcBuf
,
int8_t
*
cnProcBufRes
);
#endif
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
View file @
e785891f
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include "../nrLDPC_bnProc.h"
#include "../nrLDPC_bnProc.h"
#include "cnProc_gen.h"
#include "cnProc_gen.h"
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
//short lift_size[51]= {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,20,22,24,26,28,30,32,36,40,44,48,52,56,60,64,72,80,88,96,104,112,120,128,144,160,176,192,208,224,240,256,288,320,352,384};
//short lift_size[51]= {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,20,22,24,26,28,30,32,36,40,44,48,52,56,60,64,72,80,88,96,104,112,120,128,144,160,176,192,208,224,240,256,288,320,352,384};
// unsigned int errors, errors_bit, crc_misses;
// unsigned int errors, errors_bit, crc_misses;
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.o
0 → 100644
View file @
e785891f
File added
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
View file @
e785891f
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#ifndef __NR_LDPC_TYPES__H__
#ifndef __NR_LDPC_TYPES__H__
#define __NR_LDPC_TYPES__H__
#define __NR_LDPC_TYPES__H__
#include "
PHY
/TOOLS/time_meas.h"
#include "
../..
/TOOLS/time_meas.h"
#include "nrLDPCdecoder_defs.h"
#include "nrLDPCdecoder_defs.h"
// ==============================================================================
// ==============================================================================
// TYPES
// TYPES
...
...
openair1/PHY/TOOLS/time_meas.h
View file @
e785891f
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
#include <errno.h>
#include <errno.h>
#include <stdio.h>
#include <stdio.h>
#include <pthread.h>
#include <pthread.h>
#include <linux/kernel.h>
//
#include <linux/kernel.h>
#include <linux/types.h>
//
#include <linux/types.h>
// global var to enable openair performance profiler
// global var to enable openair performance profiler
extern
int
opp_enabled
;
extern
int
opp_enabled
;
double
cpu_freq_GHz
__attribute__
((
aligned
(
32
)));;
double
cpu_freq_GHz
__attribute__
((
aligned
(
32
)));;
...
...
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