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
canghaiwuhen
OpenXG-RAN
Commits
54b54f1b
Commit
54b54f1b
authored
Feb 13, 2018
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing to BG1
parent
1ead77b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
openair1/PHY/CODING/ldpc_encoder.c
openair1/PHY/CODING/ldpc_encoder.c
+7
-7
No files found.
openair1/PHY/CODING/ldpc_encoder.c
View file @
54b54f1b
...
...
@@ -5256,14 +5256,14 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl
//Table of possible lifting sizes
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};
//determine number of bits in codeword
if (block_length>3840)
//
if (block_length>3840)
{
BG=1;
Kb = 22;
nrows=46; //parity check bits
ncols=22; //info bits
}
else if (block_length<=3840)
/*
else if (block_length<=3840)
{
BG=2;
nrows=42; //parity check bits
...
...
@@ -5277,7 +5277,7 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl
Kb = 8;
else
Kb = 6;
}
} */
//find minimum value in all sets of lifting size
Zc=0;
...
...
@@ -5337,14 +5337,14 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl
}
// information part and puncture columns
//
memcpy(&channel_input[0], &c[2*Zc], (block_length-2*Zc)*sizeof(uint16_t));
//
memcpy(&channel_input[block_length-2*Zc], &d[0], ((nrows-no_punctured_columns) * Zc-removed_bit)*sizeof(uint16_t));
memcpy(&channel_input[0], &c[2*Zc], (block_length-2*Zc)*sizeof(uint16_t));
memcpy(&channel_input[block_length-2*Zc], &d[0], ((nrows-no_punctured_columns) * Zc-removed_bit)*sizeof(uint16_t));
/*
for (i=0;i<(block_length-2*Zc);i++)
channel_input[i] = c[2*Zc+i];
for (i=0;i<((nrows-no_punctured_columns) * Zc-removed_bit);i++)
channel_input[block_length-2*Zc+i] = d[i];
*/
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