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
5c9c2783
Commit
5c9c2783
authored
Feb 14, 2022
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed crc from ldpctest
parent
ba891206
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
openair1/PHY/CODING/TESTBENCH/ldpctest.c
openair1/PHY/CODING/TESTBENCH/ldpctest.c
+2
-11
No files found.
openair1/PHY/CODING/TESTBENCH/ldpctest.c
View file @
5c9c2783
...
@@ -285,15 +285,6 @@ int test_ldpc(short No_iteration,
...
@@ -285,15 +285,6 @@ int test_ldpc(short No_iteration,
removed_bit
=
(
nrows
-
no_punctured_columns
-
2
)
*
Zc
+
block_length
-
(
int
)(
block_length
/
((
float
)
nom_rate
/
(
float
)
denom_rate
));
removed_bit
=
(
nrows
-
no_punctured_columns
-
2
)
*
Zc
+
block_length
-
(
int
)(
block_length
/
((
float
)
nom_rate
/
(
float
)
denom_rate
));
encoder_implemparams_t
impp
=
INIT0_LDPCIMPLEMPARAMS
;
encoder_implemparams_t
impp
=
INIT0_LDPCIMPLEMPARAMS
;
// CRC attachement
for
(
j
=
0
;
j
<
n_segments
;
j
++
)
{
int
crc
=
0
;
crc
=
crc24b
(
test_input
[
j
],
block_length
-
24
)
>>
8
;
test_input
[
j
][(
block_length
-
24
)
>>
3
]
=
((
uint8_t
*
)
&
crc
)[
2
];
test_input
[
j
][
1
+
((
block_length
-
24
)
>>
3
)]
=
((
uint8_t
*
)
&
crc
)[
1
];
test_input
[
j
][
2
+
((
block_length
-
24
)
>>
3
)]
=
((
uint8_t
*
)
&
crc
)[
0
];
}
impp
.
gen_code
=
1
;
impp
.
gen_code
=
1
;
if
(
ntrials
==
0
)
if
(
ntrials
==
0
)
encoder_orig
(
test_input
,
channel_input
,
Zc
,
BG
,
block_length
,
BG
,
&
impp
);
encoder_orig
(
test_input
,
channel_input
,
Zc
,
BG
,
block_length
,
BG
,
&
impp
);
...
@@ -415,7 +406,7 @@ int test_ldpc(short No_iteration,
...
@@ -415,7 +406,7 @@ int test_ldpc(short No_iteration,
//count errors
//count errors
for
(
j
=
0
;
j
<
n_segments
;
j
++
)
{
for
(
j
=
0
;
j
<
n_segments
;
j
++
)
{
for
(
i
=
0
;
i
<
(
block_length
-
24
)
>>
3
;
i
++
)
for
(
i
=
0
;
i
<
(
block_length
)
>>
3
;
i
++
)
{
{
//printf("block_length>>3: %d \n",block_length>>3);
//printf("block_length>>3: %d \n",block_length>>3);
/// printf("i: %d \n",i);
/// printf("i: %d \n",i);
...
@@ -429,7 +420,7 @@ int test_ldpc(short No_iteration,
...
@@ -429,7 +420,7 @@ int test_ldpc(short No_iteration,
}
}
}
}
for
(
i
=
0
;
i
<
block_length
-
24
;
i
++
)
for
(
i
=
0
;
i
<
block_length
;
i
++
)
{
{
estimated_output_bit
[
j
][
i
]
=
(
estimated_output
[
j
][
i
/
8
]
&
(
1
<<
(
i
&
7
)))
>>
(
i
&
7
);
estimated_output_bit
[
j
][
i
]
=
(
estimated_output
[
j
][
i
/
8
]
&
(
1
<<
(
i
&
7
)))
>>
(
i
&
7
);
test_input_bit
[
i
]
=
(
test_input
[
j
][
i
/
8
]
&
(
1
<<
(
i
&
7
)))
>>
(
i
&
7
);
// Further correct for multiple segments
test_input_bit
[
i
]
=
(
test_input
[
j
][
i
/
8
]
&
(
1
<<
(
i
&
7
)))
>>
(
i
&
7
);
// Further correct for multiple segments
...
...
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