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
19eb0af1
Commit
19eb0af1
authored
Mar 29, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/NR_PUCCH2_RX_CQI' into integration_2024_w13
parents
c5bc4424
b739e535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+7
-6
No files found.
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
19eb0af1
...
...
@@ -1608,14 +1608,15 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
// estimate CQI for MAC (from antenna port 0 only)
// TODO this computation is wrong -> to be ignored at MAC for now
int
SNRtimes10
=
int
cqi
=
0xff
;
/*int SNRtimes10 =
dB_fixed_times10(signal_energy_nodc((int32_t *)&rxdataF[0][soffset + (l2 * frame_parms->ofdm_symbol_size) + re_offset[0]],
12 * pucch_pdu->prb_size))
- (10 * gNB->measurements.n0_power_tot_dB);
int cqi,bit_left;
if (SNRtimes10 < -640) cqi=0;
else if (SNRtimes10 > 635) cqi=255;
else
cqi
=
(
640
+
SNRtimes10
)
/
5
;
else cqi=(640+SNRtimes10)/5;
*/
uci_pdu
->
harq
.
harq_bit_len
=
pucch_pdu
->
bit_len_harq
;
uci_pdu
->
pduBitmap
=
0
;
...
...
@@ -1639,8 +1640,8 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
LOG_D
(
PHY
,
"[DLSCH/PDSCH/PUCCH2] %d.%d HARQ payload (%d) = %d
\n
"
,
frame
,
slot
,
i
,
uci_pdu
->
harq
.
harq_payload
[
i
]);
decodedPayload
[
0
]
>>=
8
;
}
bit_left
=
pucch_pdu
->
bit_len_harq
-
((
harq_bytes
-
1
)
<<
3
);
uci_pdu
->
harq
.
harq_payload
[
i
]
=
decodedPayload
[
0
]
&
((
1
<<
bit_left
)
-
1
);
int
bit_left
=
pucch_pdu
->
bit_len_harq
-
((
harq_bytes
-
1
)
<<
3
);
uci_pdu
->
harq
.
harq_payload
[
i
]
=
decodedPayload
[
0
]
&
((
1
<<
bit_left
)
-
1
);
LOG_D
(
PHY
,
"[DLSCH/PDSCH/PUCCH2] %d.%d HARQ payload (%d) = %d
\n
"
,
frame
,
slot
,
i
,
uci_pdu
->
harq
.
harq_payload
[
i
]);
decodedPayload
[
0
]
>>=
pucch_pdu
->
bit_len_harq
;
}
...
...
@@ -1665,8 +1666,8 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
uci_pdu
->
csi_part1
.
csi_part1_payload
[
i
]
=
decodedPayload
[
0
]
&
255
;
decodedPayload
[
0
]
>>=
8
;
}
bit_left
=
pucch_pdu
->
bit_len_csi_part1
-
((
csi_part1_bytes
-
1
)
<<
3
);
uci_pdu
->
csi_part1
.
csi_part1_payload
[
i
]
=
decodedPayload
[
0
]
&
((
1
<<
bit_left
)
-
1
);
int
bit_left
=
pucch_pdu
->
bit_len_csi_part1
-
((
csi_part1_bytes
-
1
)
<<
3
);
uci_pdu
->
csi_part1
.
csi_part1_payload
[
i
]
=
decodedPayload
[
0
]
&
((
1
<<
bit_left
)
-
1
);
decodedPayload
[
0
]
=
pucch_pdu
->
bit_len_csi_part1
<
64
?
decodedPayload
[
0
]
>>
bit_left
:
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