Commit 54b54f1b authored by Florian Kaltenberger's avatar Florian Kaltenberger

fixing to BG1

parent 1ead77b2
...@@ -5256,14 +5256,14 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl ...@@ -5256,14 +5256,14 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl
//Table of possible lifting sizes //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}; 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 //determine number of bits in codeword
if (block_length>3840) //if (block_length>3840)
{ {
BG=1; BG=1;
Kb = 22; Kb = 22;
nrows=46; //parity check bits nrows=46; //parity check bits
ncols=22; //info bits ncols=22; //info bits
} }
else if (block_length<=3840) /*else if (block_length<=3840)
{ {
BG=2; BG=2;
nrows=42; //parity check bits nrows=42; //parity check bits
...@@ -5277,7 +5277,7 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl ...@@ -5277,7 +5277,7 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl
Kb = 8; Kb = 8;
else else
Kb = 6; Kb = 6;
} } */
//find minimum value in all sets of lifting size //find minimum value in all sets of lifting size
Zc=0; Zc=0;
...@@ -5337,14 +5337,14 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl ...@@ -5337,14 +5337,14 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl
} }
// information part and puncture columns // information part and puncture columns
//memcpy(&channel_input[0], &c[2*Zc], (block_length-2*Zc)*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)); 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++) for (i=0;i<(block_length-2*Zc);i++)
channel_input[i] = c[2*Zc+i]; channel_input[i] = c[2*Zc+i];
for (i=0;i<((nrows-no_punctured_columns) * Zc-removed_bit);i++) for (i=0;i<((nrows-no_punctured_columns) * Zc-removed_bit);i++)
channel_input[block_length-2*Zc+i] = d[i]; channel_input[block_length-2*Zc+i] = d[i];
*/
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment