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
lizhongxiao
OpenXG-RAN
Commits
6b307e81
Commit
6b307e81
authored
Apr 23, 2020
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix in ratematching for higher rv
parent
745d8a38
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
openair1/PHY/CODING/nr_rate_matching.c
openair1/PHY/CODING/nr_rate_matching.c
+5
-4
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
+3
-0
No files found.
openair1/PHY/CODING/nr_rate_matching.c
View file @
6b307e81
...
@@ -364,8 +364,8 @@ int nr_rate_matching_ldpc(uint8_t Ilbrm,
...
@@ -364,8 +364,8 @@ int nr_rate_matching_ldpc(uint8_t Ilbrm,
if
(
ind
<
Foffset
)
{
// case where we have some bits before the filler and the rest after
if
(
ind
<
Foffset
)
{
// case where we have some bits before the filler and the rest after
memcpy
((
void
*
)
e
,(
void
*
)(
w
+
ind
),
Foffset
-
ind
);
memcpy
((
void
*
)
e
,(
void
*
)(
w
+
ind
),
Foffset
-
ind
);
if
(
E
+
F
<=
Ncb
)
{
// E+F doesn't contain all coded bits
if
(
E
+
F
<=
Ncb
-
ind
)
{
// E+F doesn't contain all coded bits
memcpy
((
void
*
)(
e
+
Foffset
-
ind
),(
void
*
)(
w
+
Foffset
+
F
-
ind
),
E
-
Foffset
+
ind
);
memcpy
((
void
*
)(
e
+
Foffset
-
ind
),(
void
*
)(
w
+
Foffset
+
F
),
E
-
Foffset
+
ind
);
k
=
E
;
k
=
E
;
}
}
else
{
else
{
...
@@ -375,11 +375,12 @@ int nr_rate_matching_ldpc(uint8_t Ilbrm,
...
@@ -375,11 +375,12 @@ int nr_rate_matching_ldpc(uint8_t Ilbrm,
}
}
else
{
else
{
if
(
E
+
F
<=
Ncb
-
ind
)
{
//E+F doesn't contain all coded bits
if
(
E
+
F
<=
Ncb
-
ind
)
{
//E+F doesn't contain all coded bits
memcpy
((
void
*
)(
e
+
Foffset
-
ind
),(
void
*
)(
w
+
Foffset
+
F
-
ind
),
E
-
Foffset
+
ind
);
memcpy
((
void
*
)(
e
),(
void
*
)(
w
+
ind
),
E
);
k
=
E
;
k
=
E
;
}
}
else
{
else
{
memcpy
((
void
*
)(
e
),(
void
*
)(
w
+
ind
),
Ncb
-
ind
);
k
=
Ncb
-
ind
;
}
}
}
}
...
...
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
View file @
6b307e81
...
@@ -460,6 +460,9 @@ int nr_dlsch_encoding(unsigned char *a,
...
@@ -460,6 +460,9 @@ int nr_dlsch_encoding(unsigned char *a,
}
}
F
=
dlsch
->
harq_processes
[
harq_pid
]
->
F
;
Kr
=
dlsch
->
harq_processes
[
harq_pid
]
->
K
;
for
(
r
=
0
;
r
<
dlsch
->
harq_processes
[
harq_pid
]
->
C
;
r
++
)
{
for
(
r
=
0
;
r
<
dlsch
->
harq_processes
[
harq_pid
]
->
C
;
r
++
)
{
if
(
F
>
0
)
{
if
(
F
>
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