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
wangjie
OpenXG-RAN
Commits
eab51f6a
Commit
eab51f6a
authored
Jul 20, 2021
by
Hongzhi Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing hardcoded parameters
parent
f8e3d922
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
59 deletions
+85
-59
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
+69
-51
openair1/PHY/CODING/nrLDPC_defs.h
openair1/PHY/CODING/nrLDPC_defs.h
+2
-2
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+14
-6
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
View file @
eab51f6a
This diff is collapsed.
Click to expand it.
openair1/PHY/CODING/nrLDPC_defs.h
View file @
eab51f6a
...
@@ -56,7 +56,7 @@ typedef int(*nrLDPC_encoderfunc_t)(unsigned char **,unsigned char **,int,int,sho
...
@@ -56,7 +56,7 @@ typedef int(*nrLDPC_encoderfunc_t)(unsigned char **,unsigned char **,int,int,sho
\param p_profiler LDPC profiler statistics
\param p_profiler LDPC profiler statistics
*/
*/
typedef
int32_t
(
*
nrLDPC_decoderfunc_t
)(
t_nrLDPC_dec_params
*
,
int8_t
*
,
int8_t
*
,
t_nrLDPC_procBuf
*
,
t_nrLDPC_time_stats
*
);
typedef
int32_t
(
*
nrLDPC_decoderfunc_t
)(
t_nrLDPC_dec_params
*
,
int8_t
*
,
int8_t
*
,
t_nrLDPC_procBuf
*
,
t_nrLDPC_time_stats
*
);
typedef
int32_t
(
*
nrLDPC_decoffloadfunc_t
)(
t_nrLDPC_dec_params
*
,
int8_t
*
,
int8_t
*
,
t_nrLDPC_procBuf
*
,
t_nrLDPC_time_stats
*
);
//
typedef int32_t(*nrLDPC_decoffloadfunc_t)(t_nrLDPC_dec_params* , int8_t*, int8_t* , t_nrLDPC_procBuf* , t_nrLDPC_time_stats* );
//typedef int32_t(*nrLDPC_decoffloadfunc_t)(t_nrLDPC_dec_params* , uint8_t , uint8_t, uint32_t
, int8_t*, int8_t* );
typedef
int32_t
(
*
nrLDPC_decoffloadfunc_t
)(
t_nrLDPC_dec_params
*
,
uint8_t
,
uint8_t
,
uint16_t
,
uint32_t
,
uint8_t
,
int8_t
*
,
int8_t
*
);
typedef
int32_t
(
*
nrLDPC_dectopfunc_t
)(
void
);
typedef
int32_t
(
*
nrLDPC_dectopfunc_t
)(
void
);
#endif
#endif
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
eab51f6a
...
@@ -450,15 +450,24 @@ printf("input addr p @ %p data %d\n", (pl_ol128), *(pl_ol128));
...
@@ -450,15 +450,24 @@ printf("input addr p @ %p data %d\n", (pl_ol128), *(pl_ol128));
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////// pl =====> llrProcBuf //////////////////////////////////
////////////////////////////////// pl =====> llrProcBuf //////////////////////////////////
/* no_iteration_ldpc = nrLDPC_decoder_offload(p_decoderParms,
no_iteration_ldpc
=
nrLDPC_decoder_offload
(
p_decoderParms
,
(int8_t*)&pl_ol128[0], //pl_ol,
(int8_t*)&pl_ol128[0], //pl_ol,
llrProcBuf,
llrProcBuf,
ulsch_harq->p_nrLDPC_procBuf[r],// 3
ulsch_harq->p_nrLDPC_procBuf[r],// 3
p_procTime);
p_procTime);
*/
no_iteration_ldpc
=
nrLDPC_decoder_offload
(
p_decoderParms
,
ulsch_harq
->
C
,
(
uint8_t
)
rv_index
,
ulsch_harq
->
F
,
E
,
Qm
,
(
int8_t
*
)
&
pl_ol128
[
0
],
llrProcBuf
);
/*
/*
no_iteration_ldpc = nrLDPC_decoder(p_decoderParms,
no_iteration_ldpc = nrLDPC_decoder(p_decoderParms,
(int8_t*)&pl[0],
(int8_t*)&pl[0],
llrProcBuf,
llrProcBuf,
ulsch_harq->p_nrLDPC_procBuf[r],
ulsch_harq->p_nrLDPC_procBuf[r],
...
@@ -480,12 +489,11 @@ printf("input addr p @ %p data %d\n", (pl_ol128), *(pl_ol128));
...
@@ -480,12 +489,11 @@ printf("input addr p @ %p data %d\n", (pl_ol128), *(pl_ol128));
ulsch_harq
->
c
[
r
][
m
]
=
(
uint8_t
)
llrProcBuf
[
m
];
ulsch_harq
->
c
[
r
][
m
]
=
(
uint8_t
)
llrProcBuf
[
m
];
}
}
/*for (int k=0;k<16;k++)
/*for (int k=0;k<16;k++)
{
{
printf("output decoder [%d] = 0x%02x \n", k, ulsch_harq->c[r][k]);
printf("output decoder [%d] = 0x%02x \n", k, ulsch_harq->c[r][k]);
printf("llrprocbuf [%d] = %x adr %p\n", k, llrProcBuf[k
+128], llrProcBuf+k+128
);
printf("llrprocbuf [%d] = %x adr %p\n", k, llrProcBuf[k
], llrProcBuf+k
);
}
}
printf("no_iterations_ldpc %d \n",no_iteration_ldpc);
printf("no_iterations_ldpc %d \n",no_iteration_ldpc);
}
*/
*/
}
}
...
...
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