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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
7ffb689a
Commit
7ffb689a
authored
Nov 04, 2021
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove rate matching assertion
parent
1b742fbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
+20
-15
openair1/PHY/CODING/nr_rate_matching.c
openair1/PHY/CODING/nr_rate_matching.c
+19
-14
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
+1
-1
No files found.
openair1/PHY/CODING/nr_rate_matching.c
View file @
7ffb689a
...
...
@@ -388,7 +388,7 @@ int nr_rate_matching_ldpc(uint8_t Ilbrm,
uint32_t
Ncb
,
ind
,
k
=
0
,
Nref
,
N
;
if
(
C
==
0
)
{
printf
(
"nr_rate_matching: invalid parameters (C %d
\n
"
,
C
);
LOG_E
(
PHY
,
"nr_rate_matching: invalid parameters (C %d
\n
"
,
C
);
return
-
1
;
}
...
...
@@ -407,16 +407,15 @@ int nr_rate_matching_ldpc(uint8_t Ilbrm,
#ifdef RM_DEBUG
printf
(
"nr_rate_matching_ldpc: E %d, F %d, Foffset %d, k0 %d, Ncb %d, rvidx %d
\n
"
,
E
,
F
,
Foffset
,
ind
,
Ncb
,
rvidx
);
#endif
AssertFatal
(
Foffset
<=
E
,
"Foffset %d > E %d "
"(Ilbrm %d, Tbslbrm %d, Z %d, BG %d, C %d)
\n
"
,
Foffset
,
E
,
Ilbrm
,
Tbslbrm
,
Z
,
BG
,
C
);
AssertFatal
(
Foffset
<=
Ncb
,
"Foffset %d > Ncb %d "
"(Ilbrm %d, Tbslbrm %d, Z %d, BG %d, C %d)
\n
"
,
Foffset
,
Ncb
,
Ilbrm
,
Tbslbrm
,
Z
,
BG
,
C
);
if
(
Foffset
>
E
)
{
LOG_E
(
PHY
,
"nr_rate_matching: invalid parameters (Foffset %d > E %d)
\n
"
,
Foffset
,
E
);
return
-
1
;
}
if
(
Foffset
>
Ncb
)
{
LOG_E
(
PHY
,
"nr_rate_matching: invalid parameters (Foffset %d > Ncb %d)
\n
"
,
Foffset
,
Ncb
);
return
-
1
;
}
if
(
ind
>=
Foffset
&&
ind
<
(
F
+
Foffset
))
ind
=
F
+
Foffset
;
...
...
@@ -478,7 +477,7 @@ int nr_rate_matching_ldpc_rx(uint8_t Ilbrm,
#endif
if
(
C
==
0
)
{
printf
(
"nr_rate_matching: invalid parameters (C %d
\n
"
,
C
);
LOG_E
(
PHY
,
"nr_rate_matching: invalid parameters (C %d
\n
"
,
C
);
return
-
1
;
}
...
...
@@ -493,8 +492,14 @@ int nr_rate_matching_ldpc_rx(uint8_t Ilbrm,
}
ind
=
(
index_k0
[
BG
-
1
][
rvidx
]
*
Ncb
/
N
)
*
Z
;
AssertFatal
(
Foffset
<=
E
,
"Foffset %d > E %d
\n
"
,
Foffset
,
E
);
AssertFatal
(
Foffset
<=
Ncb
,
"Foffset %d > Ncb %d
\n
"
,
Foffset
,
Ncb
);
if
(
Foffset
>
E
)
{
LOG_E
(
PHY
,
"nr_rate_matching: invalid parameters (Foffset %d > E %d)
\n
"
,
Foffset
,
E
);
return
-
1
;
}
if
(
Foffset
>
Ncb
)
{
LOG_E
(
PHY
,
"nr_rate_matching: invalid parameters (Foffset %d > Ncb %d)
\n
"
,
Foffset
,
Ncb
);
return
-
1
;
}
#ifdef RM_DEBUG
printf
(
"nr_rate_matching_ldpc_rx: Clear %d, E %d, k0 %d, Ncb %d, rvidx %d
\n
"
,
clear
,
E
,
ind
,
Ncb
,
rvidx
);
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
View file @
7ffb689a
...
...
@@ -274,7 +274,7 @@ int nr_ulsch_encoding(PHY_VARS_NR_UE *ue,
#ifdef DEBUG_ULSCH_CODING
printf
(
"encoding thinks this is a new packet
\n
"
);
#endif
harq_process
->
first_tx
=
0
;
harq_process
->
first_tx
=
0
;
///////////////////////// a---->| add CRC |---->b /////////////////////////
///////////
/*
...
...
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