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
cb41822b
Commit
cb41822b
authored
Aug 24, 2019
by
laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ulsch turbo decode success, fails after now
parent
d28419cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
8 deletions
+29
-8
executables/main-fs6.c
executables/main-fs6.c
+29
-8
No files found.
executables/main-fs6.c
View file @
cb41822b
...
@@ -262,6 +262,13 @@ void pusch_procedures_extract(uint8_t *bufferZone, int bufSize, PHY_VARS_eNB *eN
...
@@ -262,6 +262,13 @@ void pusch_procedures_extract(uint8_t *bufferZone, int bufSize, PHY_VARS_eNB *eN
rx_ulsch
(
eNB
,
proc
,
i
);
rx_ulsch
(
eNB
,
proc
,
i
);
stop_meas
(
&
eNB
->
ulsch_demodulation_stats
);
stop_meas
(
&
eNB
->
ulsch_demodulation_stats
);
// TBD: add datablock for transmission
// TBD: add datablock for transmission
start_meas
(
&
eNB
->
ulsch_decoding_stats
);
ulsch_decoding
(
eNB
,
proc
,
i
,
0
,
// control_only_flag
ulsch_harq
->
V_UL_DAI
,
ulsch_harq
->
nb_rb
>
20
?
1
:
0
);
stop_meas
(
&
eNB
->
ulsch_decoding_stats
);
}
}
}
}
}
}
...
@@ -323,14 +330,28 @@ int ulsch_decoding_process(PHY_VARS_eNB *eNB, int UE_id, int llr8_flag) {
...
@@ -323,14 +330,28 @@ int ulsch_decoding_process(PHY_VARS_eNB *eNB, int UE_id, int llr8_flag) {
LTE_UL_eNB_HARQ_t
*
ulsch_harq
=
ulsch
->
harq_processes
[
harq_pid
];
LTE_UL_eNB_HARQ_t
*
ulsch_harq
=
ulsch
->
harq_processes
[
harq_pid
];
decoder_if_t
*
tc
;
decoder_if_t
*
tc
;
int
offset
,
ret
;
int
offset
,
ret
=-
1
;
if
(
llr8_flag
==
0
)
if
(
llr8_flag
==
0
)
tc
=
*
decoder16
;
tc
=
*
decoder16
;
else
else
tc
=
*
decoder8
;
tc
=
*
decoder8
;
for
(
int
r
=
0
;
r
<
ulsch_harq
->
C
;
r
++
)
{
// This is a new packet, so compute quantities regarding segmentation
//Fixme: very dirty: all the variables produced by let_segmentation are only used localy
// Furthermore, variables as 1 letter and global is "time consuming" for everybody !!!
ulsch_harq
->
B
=
ulsch_harq
->
TBS
+
24
;
lte_segmentation
(
NULL
,
NULL
,
ulsch_harq
->
B
,
&
ulsch_harq
->
C
,
&
ulsch_harq
->
Cplus
,
&
ulsch_harq
->
Cminus
,
&
ulsch_harq
->
Kplus
,
&
ulsch_harq
->
Kminus
,
&
ulsch_harq
->
F
);
for
(
int
r
=
0
;
r
<
ulsch_harq
->
CcC
;
r
++
)
{
// printf("before subblock deinterleaving c[%d] = %p\n",r,ulsch_harq->c[r]);
// printf("before subblock deinterleaving c[%d] = %p\n",r,ulsch_harq->c[r]);
// Get Turbo interleaver parameters
// Get Turbo interleaver parameters
int
Kr
;
int
Kr
;
...
@@ -379,13 +400,13 @@ int ulsch_decoding_process(PHY_VARS_eNB *eNB, int UE_id, int llr8_flag) {
...
@@ -379,13 +400,13 @@ int ulsch_decoding_process(PHY_VARS_eNB *eNB, int UE_id, int llr8_flag) {
if
(
r
==
0
)
{
if
(
r
==
0
)
{
memcpy
(
ulsch_harq
->
bb
,
memcpy
(
ulsch_harq
->
bb
,
&
ulsch_harq
->
c
[
0
][(
ulsch_harq
->
F
>>
3
)],
&
ulsch_harq
->
c
[
0
][(
ulsch_harq
->
F
>>
3
)],
Kr_bytes
-
(
ulsch_harq
->
F
>>
3
)
-
((
ulsch_harq
->
C
>
1
)
?
3
:
0
));
Kr_bytes
-
(
ulsch_harq
->
F
>>
3
)
-
((
ulsch_harq
->
C
cC
>
1
)
?
3
:
0
));
offset
=
Kr_bytes
-
(
ulsch_harq
->
F
>>
3
)
-
((
ulsch_harq
->
C
>
1
)
?
3
:
0
);
offset
=
Kr_bytes
-
(
ulsch_harq
->
F
>>
3
)
-
((
ulsch_harq
->
C
cC
>
1
)
?
3
:
0
);
}
else
{
}
else
{
memcpy
(
ulsch_harq
->
bb
+
offset
,
memcpy
(
ulsch_harq
->
bb
+
offset
,
ulsch_harq
->
c
[
r
],
ulsch_harq
->
c
[
r
],
Kr_bytes
-
((
ulsch_harq
->
C
>
1
)
?
3
:
0
));
Kr_bytes
-
((
ulsch_harq
->
C
cC
>
1
)
?
3
:
0
));
offset
+=
(
Kr_bytes
-
((
ulsch_harq
->
C
>
1
)
?
3
:
0
));
offset
+=
(
Kr_bytes
-
((
ulsch_harq
->
C
cC
>
1
)
?
3
:
0
));
}
}
}
else
{
}
else
{
break
;
break
;
...
@@ -666,6 +687,7 @@ void phy_procedures_eNB_TX_process(uint8_t *bufferZone, int nbBlocks, PHY_VARS_e
...
@@ -666,6 +687,7 @@ void phy_procedures_eNB_TX_process(uint8_t *bufferZone, int nbBlocks, PHY_VARS_e
ulsch_harq
->
first_rb
=
hTxULUE
(
bufPtr
)
->
first_rb
;
ulsch_harq
->
first_rb
=
hTxULUE
(
bufPtr
)
->
first_rb
;
ulsch_harq
->
V_UL_DAI
=
hTxULUE
(
bufPtr
)
->
V_UL_DAI
;
ulsch_harq
->
V_UL_DAI
=
hTxULUE
(
bufPtr
)
->
V_UL_DAI
;
ulsch_harq
->
Qm
=
hTxULUE
(
bufPtr
)
->
Qm
;
ulsch_harq
->
Qm
=
hTxULUE
(
bufPtr
)
->
Qm
;
ulsch_harq
->
CcC
=
hTxULUE
(
bufPtr
)
->
CcC
;
ulsch_harq
->
srs_active
=
hTxULUE
(
bufPtr
)
->
srs_active
;
ulsch_harq
->
srs_active
=
hTxULUE
(
bufPtr
)
->
srs_active
;
ulsch_harq
->
TBS
=
hTxULUE
(
bufPtr
)
->
TBS
;
ulsch_harq
->
TBS
=
hTxULUE
(
bufPtr
)
->
TBS
;
ulsch_harq
->
Nsymb_pusch
=
hTxULUE
(
bufPtr
)
->
Nsymb_pusch
;
ulsch_harq
->
Nsymb_pusch
=
hTxULUE
(
bufPtr
)
->
Nsymb_pusch
;
...
@@ -809,6 +831,7 @@ void appendFs6TxULUE(uint8_t *bufferZone, LTE_DL_FRAME_PARMS *fp, int curUE, LTE
...
@@ -809,6 +831,7 @@ void appendFs6TxULUE(uint8_t *bufferZone, LTE_DL_FRAME_PARMS *fp, int curUE, LTE
cpyToDuHarq
(
first_rb
);
cpyToDuHarq
(
first_rb
);
cpyToDuHarq
(
V_UL_DAI
);
cpyToDuHarq
(
V_UL_DAI
);
cpyToDuHarq
(
Qm
);
cpyToDuHarq
(
Qm
);
cpyToDuHarq
(
CcC
);
cpyToDuHarq
(
srs_active
);
cpyToDuHarq
(
srs_active
);
cpyToDuHarq
(
TBS
);
cpyToDuHarq
(
TBS
);
cpyToDuHarq
(
Nsymb_pusch
);
cpyToDuHarq
(
Nsymb_pusch
);
...
@@ -1052,9 +1075,7 @@ void DL_du_fs6(RU_t *ru) {
...
@@ -1052,9 +1075,7 @@ void DL_du_fs6(RU_t *ru) {
void
UL_du_fs6
(
RU_t
*
ru
,
int
frame
,
int
subframe
)
{
void
UL_du_fs6
(
RU_t
*
ru
,
int
frame
,
int
subframe
)
{
RU_proc_t
*
ru_proc
=&
ru
->
proc
;
RU_proc_t
*
ru_proc
=&
ru
->
proc
;
int
tmpf
=
frame
,
tmpsf
=
subframe
;
rx_rf
(
ru
);
rx_rf
(
ru
);
AssertFatal
(
tmpf
==
frame
&&
tmpsf
==
subframe
,
"lost synchronization
\n
"
);
setAllfromTS
(
ru_proc
->
timestamp_rx
);
setAllfromTS
(
ru_proc
->
timestamp_rx
);
// front end processing: convert from time domain to frequency domain
// front end processing: convert from time domain to frequency domain
// fills rxdataF buffer
// fills rxdataF buffer
...
...
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