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
796c931a
Commit
796c931a
authored
Mar 03, 2019
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
soft-beta version of polar decoder step 1
parent
bad87bd1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
69 deletions
+82
-69
openair1/PHY/CODING/nrPolar_tools/nr_polar_decoder.c
openair1/PHY/CODING/nrPolar_tools/nr_polar_decoder.c
+81
-69
openair1/PHY/CODING/nrPolar_tools/nr_polar_defs.h
openair1/PHY/CODING/nrPolar_tools/nr_polar_defs.h
+1
-0
No files found.
openair1/PHY/CODING/nrPolar_tools/nr_polar_decoder.c
View file @
796c931a
...
@@ -1088,6 +1088,7 @@ uint32_t polar_decoder_int16(int16_t *input,
...
@@ -1088,6 +1088,7 @@ uint32_t polar_decoder_int16(int16_t *input,
memcpy
((
void
*
)
&
polarParams
->
tree
.
root
->
alpha
[
0
],(
void
*
)
&
d_tilde
[
0
],
sizeof
(
int16_t
)
*
polarParams
->
N
);
memcpy
((
void
*
)
&
polarParams
->
tree
.
root
->
alpha
[
0
],(
void
*
)
&
d_tilde
[
0
],
sizeof
(
int16_t
)
*
polarParams
->
N
);
for
(
int
iter
=
0
;
iter
<
4
;
iter
++
)
{
generic_polar_decoder
(
polarParams
,
polarParams
->
tree
.
root
);
generic_polar_decoder
(
polarParams
,
polarParams
->
tree
.
root
);
...
@@ -1160,8 +1161,19 @@ uint32_t polar_decoder_int16(int16_t *input,
...
@@ -1160,8 +1161,19 @@ uint32_t polar_decoder_int16(int16_t *input,
out
[
0
]
=
Ar
;
out
[
0
]
=
Ar
;
return
(
crc
^
rxcrc
);
for
(
int
i
=
0
;
i
<
polarParams
->
N
;
i
++
)
printf
(
"alpha[%d]=%d, beta[%d]=%d
\n
"
,
i
,
polarParams
->
tree
.
root
->
alpha
[
i
],
i
,
polarParams
->
tree
.
root
->
beta
[
i
]);
if
(
crc
==
rxcrc
)
return
(
0
);
memcpy
((
void
*
)
&
polarParams
->
tree
.
root
->
alpha
[
0
],(
void
*
)
&
polarParams
->
tree
.
root
->
beta
[
0
],
sizeof
(
int16_t
)
*
polarParams
->
N
);
}
return
(
-
1
);
}
}
openair1/PHY/CODING/nrPolar_tools/nr_polar_defs.h
View file @
796c931a
...
@@ -70,6 +70,7 @@ typedef struct decoder_node_t_s {
...
@@ -70,6 +70,7 @@ typedef struct decoder_node_t_s {
int
all_frozen
;
int
all_frozen
;
int16_t
*
alpha
;
int16_t
*
alpha
;
int16_t
*
beta
;
int16_t
*
beta
;
int16_t
*
soft_beta
;
}
decoder_node_t
;
}
decoder_node_t
;
typedef
struct
decoder_tree_t_s
{
typedef
struct
decoder_tree_t_s
{
...
...
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