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
c9ef299d
Commit
c9ef299d
authored
Feb 01, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create NR_LDPC_MAX_NUM_CB constant for max number of codeblocks
parent
375556f5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
+6
-6
openair1/PHY/CODING/nrLDPC_decoder/nrLDPCdecoder_defs.h
openair1/PHY/CODING/nrLDPC_decoder/nrLDPCdecoder_defs.h
+2
-0
openair1/PHY/CODING/nrLDPC_defs.h
openair1/PHY/CODING/nrLDPC_defs.h
+2
-2
openair1/PHY/CODING/nrLDPC_extern.h
openair1/PHY/CODING/nrLDPC_extern.h
+0
-1
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+2
-2
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
View file @
c9ef299d
...
...
@@ -90,13 +90,13 @@ typedef struct nrLDPC_dec_params {
uint8_t
rv
;
uint8_t
numMaxIter
;
/**< Maximum number of iterations */
int
E
;
uint32_t
E_cb
[
64
];
uint32_t
E_cb
[
NR_LDPC_MAX_NUM_CB
];
e_nrLDPC_outMode
outMode
;
/**< Output format */
int
crc_type
;
int
(
*
check_crc
)(
uint8_t
*
decoded_bytes
,
uint32_t
n
,
uint8_t
crc_type
);
uint8_t
setCombIn
;
uint8_t
setCombIn_cb
[
64
];
uint8_t
status_cb
[
64
];
uint8_t
setCombIn_cb
[
NR_LDPC_MAX_NUM_CB
];
uint8_t
status_cb
[
NR_LDPC_MAX_NUM_CB
];
}
t_nrLDPC_dec_params
;
typedef
struct
nrLDPCoffload_params
{
...
...
@@ -105,15 +105,15 @@ typedef struct nrLDPCoffload_params {
uint16_t
Kr
;
uint8_t
rv
;
uint32_t
E
;
uint32_t
E_cb
[
64
];
uint32_t
E_cb
[
NR_LDPC_MAX_NUM_CB
];
uint16_t
n_cb
;
uint16_t
F
;
/**< Filler bits */
uint8_t
Qm
;
/**< Modulation */
uint8_t
C
;
uint8_t
numMaxIter
;
uint8_t
setCombIn
;
uint8_t
setCombIn_cb
[
64
];
uint8_t
*
status_cb
[
64
];
uint8_t
setCombIn_cb
[
NR_LDPC_MAX_NUM_CB
];
uint8_t
*
status_cb
[
NR_LDPC_MAX_NUM_CB
];
}
t_nrLDPCoffload_params
;
/**
...
...
openair1/PHY/CODING/nrLDPC_decoder/nrLDPCdecoder_defs.h
View file @
c9ef299d
...
...
@@ -99,6 +99,8 @@
/** Maximum number of possible input LLR = NR_LDPC_NCOL_BG1*NR_LDPC_ZMAX */
#define NR_LDPC_MAX_NUM_LLR 27000
#define NR_LDPC_MAX_NUM_CB 72
// ==============================================================================
// GLOBAL CONSTANT VARIABLES
...
...
openair1/PHY/CODING/nrLDPC_defs.h
View file @
c9ef299d
...
...
@@ -60,8 +60,8 @@ typedef struct {
/// Modulation order
uint8_t
Qm
;
uint32_t
E
;
uint32_t
E_cb
[
64
];
uint8_t
status_cb
[
64
];
uint32_t
E_cb
[
NR_LDPC_MAX_NUM_CB
];
uint8_t
status_cb
[
NR_LDPC_MAX_NUM_CB
];
unsigned
int
G
;
// Redundancy version index
uint8_t
rv
;
...
...
openair1/PHY/CODING/nrLDPC_extern.h
View file @
c9ef299d
...
...
@@ -23,7 +23,6 @@
#include "openair1/PHY/CODING/nrLDPC_defs.h"
/* LDPC maximum code block size - maximum E */
#define LDPC_MAX_CB_SIZE 32768
#define LDPC_MAX_NUM_CB 80
/* ldpc coder/decoder API*/
typedef
struct
ldpc_interface_s
{
LDPC_initfunc_t
*
LDPCinit
;
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
c9ef299d
...
...
@@ -232,8 +232,8 @@ int decode_offload(PHY_VARS_gNB *phy_vars_gNB,
{
NR_gNB_ULSCH_t
*
ulsch
=
&
phy_vars_gNB
->
ulsch
[
ULSCH_id
];
NR_UL_gNB_HARQ_t
*
harq_process
=
ulsch
->
harq_process
;
int16_t
z_ol
[
LDPC_MAX_NUM_CB
*
LDPC_MAX_CB_SIZE
]
__attribute__
((
aligned
(
16
)));
int8_t
l_ol
[
LDPC_MAX_NUM_CB
*
LDPC_MAX_CB_SIZE
]
__attribute__
((
aligned
(
16
)));
int16_t
z_ol
[
NR_
LDPC_MAX_NUM_CB
*
LDPC_MAX_CB_SIZE
]
__attribute__
((
aligned
(
16
)));
int8_t
l_ol
[
NR_
LDPC_MAX_NUM_CB
*
LDPC_MAX_CB_SIZE
]
__attribute__
((
aligned
(
16
)));
const
int
kc
=
decParams
->
BG
==
2
?
52
:
68
;
uint32_t
A
=
(
harq_process
->
TBS
)
<<
3
;
const
int
Kr
=
harq_process
->
K
;
...
...
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