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
550ab500
Commit
550ab500
authored
May 04, 2020
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compilation of generator
parent
cabbb72c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.c
+8
-3
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
+3
-3
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/cnProc_gen.c
View file @
550ab500
...
@@ -9,12 +9,17 @@
...
@@ -9,12 +9,17 @@
#include "../nrLDPC_bnProc.h"
#include "../nrLDPC_bnProc.h"
#include "cnProc_gen.h"
#include "cnProc_gen.h"
void
nrLDPC_cnProc_BG1
(
t_nrLDPC_lut
*
p_lut
,
t_nrLDPC_procBuf
*
p_procBuf
,
uint16_t
Z
)
void
nrLDPC_cnProc_BG1
_generator
(
t_nrLDPC_procBuf
*
p_procBuf
,
uint16_t
Z
,
int
R
)
{
{
printf
(
"void nrLDPC_cnProc_BG1_Z%d
\n
"
,
Z
);
printf
(
"void nrLDPC_cnProc_BG1_Z%d
\n
"
,
Z
);
const
uint8_t
*
lut_numCnInCnGroups
=
p_lut
->
numCnInCnGroups
;
const
uint8_t
*
lut_numCnInCnGroups
;
const
uint32_t
*
lut_startAddrCnGroups
=
p_lut
->
startAddrCnGroups
;
const
uint32_t
*
lut_startAddrCnGroups
=
lut_startAddrCnGroups_BG1
;
if
(
R
==
0
)
lut_numCnInCnGroups
=
lut_numCnInCnGroups_BG1_R13
;
else
if
(
R
==
1
)
lut_numCnInCnGroups
=
lut_numCnInCnGroups_BG1_R23
;
else
if
(
R
==
2
)
lut_numCnInCnGroups
=
lut_numCnInCnGroups_BG1_R89
;
else
{
printf
(
"aborting, illegal R %d
\n
"
,
R
);
abort
();}
int8_t
*
cnProcBuf
=
p_procBuf
->
cnProcBuf
;
int8_t
*
cnProcBuf
=
p_procBuf
->
cnProcBuf
;
int8_t
*
cnProcBufRes
=
p_procBuf
->
cnProcBufRes
;
int8_t
*
cnProcBufRes
=
p_procBuf
->
cnProcBufRes
;
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_tools/main.c
View file @
550ab500
...
@@ -59,12 +59,12 @@ int main(int argc, char *argv[])
...
@@ -59,12 +59,12 @@ int main(int argc, char *argv[])
t_nrLDPC_procBuf
*
p_procBuf
=
&
cnProcBuf
;
t_nrLDPC_procBuf
*
p_procBuf
=
&
cnProcBuf
;
// load_nrLDPClib();
// load_nrLDPClib();
t_nrLDPC_lut
lut_numCnInCnGroups
;
t_nrLDPC_lut
*
p_lut
=
&
lut_numCnInCnGroups
;
// load_nrLDPClib_ref("_orig", &encoder_orig);
// load_nrLDPClib_ref("_orig", &encoder_orig);
nrLDPC_cnProc_BG1
(
p_lut
,
p_procBuf
,
384
);
// Z=384, R=1/3
nrLDPC_cnProc_BG1_generator
(
p_procBuf
,
384
,
0
);
//nrLDPC_cnProc_BG1(&lut_numCnInCnGroups, &cnProcBuf, 380);
//nrLDPC_cnProc_BG1(&lut_numCnInCnGroups, &cnProcBuf, 380);
//for (block_length=8;block_length<=MAX_BLOCK_LENGTH;block_length+=8)
//for (block_length=8;block_length<=MAX_BLOCK_LENGTH;block_length+=8)
...
...
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