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
0ee70df3
Commit
0ee70df3
authored
May 02, 2020
by
Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first commit
parent
cd82d94c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
756 additions
and
0 deletions
+756
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/Makefile
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/Makefile
+27
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.c
+641
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.h
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.h
+7
-0
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
+81
-0
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/Makefile
0 → 100644
View file @
0ee70df3
C
=
gcc
CFLAGS
=
-W
-Wall
-mavx2
LDFLAGS
=
EXEC
=
cnProc_gen
SRC
=
$(
wildcard
*
.c
)
OBJ
=
$(SRC:.c=.o)
all
:
$(EXEC)
cnProc_gen
:
$(OBJ)
$(CC)
-o
$@
$^
$(LDFLAGS)
main.o
:
cnProc_gen.h
%.o
:
%.c
$(CC)
-o
$@
-c
$<
$(CFLAGS)
.PHONY
:
clean mrproper
clean
:
rm
-rf
*
.o
mrproper
:
clean
rm
-rf
$(EXEC)
zip
:
tar
-zcvf
sauvegarde.tar.gz main.c cnProc_gen.c cnProc_geno.h Makefile
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.c
0 → 100644
View file @
0ee70df3
This diff is collapsed.
Click to expand it.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.h
0 → 100644
View file @
0ee70df3
#ifndef NRLDPC_CN_GEN
#define NRLDPC_DN_GEN
void
nrLDPC_cnProc_BG1
(
t_nrLDPC_lut
*
p_lut
,
t_nrLDPC_procBuf
*
p_procBuf
,
uint16_t
Z
);
#endif
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
0 → 100644
View file @
0ee70df3
#include <stdio.h>
#include <immintrin.h>
//#include "../nrLDPCdecoder_defs.h"
#include "../nrLDPC_types.h"
#include "../nrLDPC_init.h"
#include "../nrLDPC_mPass.h"
//#include "../nrLDPC_cnProc.h"
#include "../nrLDPC_bnProc.h"
#include "cnProc_gen.h"
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};
// unsigned int errors, errors_bit, crc_misses;
// double errors_bit_uncoded;
//short block_length=8448; // decoder supports length: 1201 -> 1280, 2401 -> 2560
// short No_iteration=5;
//int n_segments=1;
//double rate=0.333;
//int nom_rate=1;
//int denom_rate=3;
//double SNR0=-2.0,SNR,SNR_lin;
//unsigned char qbits=8;
// unsigned int decoded_errors[10000]; // initiate the size of matrix equivalent to size of SNR
//int c,i=0, i1 = 0;
// int n_trials = 1;
// double SNR_step = 0.1;
// randominit(0);
//int test_uncoded= 0;
//short BG=1,Zc,Kb;
// cpu_freq_GHz = get_cpu_freq_GHz();
//printf("the decoder supports BG2, Kb=10, Z=128 & 256\n");
//printf(" range of blocklength: 1201 -> 1280, 2401 -> 2560\n");
// printf("block length %d: \n", block_length);
//printf("n_trials %d: \n", n_trials);
// printf("SNR0 %f: \n", SNR0);
//find minimum value in all sets of lifting size
/* Zc=0;
for (i1=0; i1 < 51; i1++)
{
if (lift_size[i1] >= (double) block_length/Kb)
{
Zc = lift_size[i1];
//printf("%d\n",Zc);
break;
}
}*/
// Allocate LDPC decoder buffers
// p_nrLDPC_procBuf = nrLDPC_init_mem();
t_nrLDPC_procBuf
cnProcBuf
;
t_nrLDPC_procBuf
*
p_procBuf
=
&
cnProcBuf
;
// load_nrLDPClib();
t_nrLDPC_lut
lut_numCnInCnGroups
;
t_nrLDPC_lut
*
p_lut
=
&
lut_numCnInCnGroups
;
// load_nrLDPClib_ref("_orig", &encoder_orig);
nrLDPC_cnProc_BG1
(
p_lut
,
p_procBuf
,
384
);
//nrLDPC_cnProc_BG1(&lut_numCnInCnGroups, &cnProcBuf, 380);
//for (block_length=8;block_length<=MAX_BLOCK_LENGTH;block_length+=8)
//determine number of bits in codeword
/*
char fname[200];
sprintf(fname,"cnProc_BG1_Zc_%d.c",384);
FILE *fd=fopen(fname,"w");
// AssertFatal(fd!=NULL,"cannot open %s\n",fname);
*/
//fclose(fd);
return
(
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