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
alex037yang
OpenXG-RAN
Commits
e8c0c024
Commit
e8c0c024
authored
Jul 11, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RIV allocation computation for SL
parent
5a61d21c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
openair1/PHY/LTE_TRANSPORT/dci_tools.c
openair1/PHY/LTE_TRANSPORT/dci_tools.c
+19
-0
openair1/PHY/LTE_TRANSPORT/proto.h
openair1/PHY/LTE_TRANSPORT/proto.h
+1
-1
No files found.
openair1/PHY/LTE_TRANSPORT/dci_tools.c
View file @
e8c0c024
...
...
@@ -351,6 +351,25 @@ uint32_t conv_nprb(uint8_t ra_header,uint32_t rb_alloc,int N_RB_DL)
return(nprb);
}
void RIV2_alloc(uint16_t N_RB_DL,uint16_t RIV, int *Lcrbs, int *RBstart) {
int A = RIV/N_RB_DL;
int B = RIV%N_RB_DL;
*Lcrbs = A+1;
// check condition RBstart <= N_RB_DL + 1 - Lcrbs
if (A <= N_RB_DL - B) {
*Lcrbs = A+1;
*RBstart = B;
}
else {
*Lcrbs = N_RB_DL+1-A;
*RBstart = N_RB_DL-1-B;
}
}
uint16_t computeRIV(uint16_t N_RB_DL,uint16_t RBstart,uint16_t Lcrbs)
{
...
...
openair1/PHY/LTE_TRANSPORT/proto.h
View file @
e8c0c024
...
...
@@ -1605,7 +1605,7 @@ uint8_t get_transmission_mode(module_id_t Mod_id, uint8_t CC_id, rnti_t rnti);
*/
uint32_t
conv_nprb
(
uint8_t
ra_header
,
uint32_t
rb_alloc
,
int
N_RB_DL
);
void
conv_RIV
(
int
N_RB_UL
,
int
RIV
,
int
*
L_CRBs
,
int
*
RB_
start
);
void
RIV2_alloc
(
uint16_t
N_RB_DL
,
uint16_t
RIV
,
int
*
Lcrbs
,
int
*
RB
start
);
int
get_G
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint16_t
nb_rb
,
uint32_t
*
rb_alloc
,
uint8_t
mod_order
,
uint8_t
Nl
,
uint8_t
num_pdcch_symbols
,
int
frame
,
uint8_t
subframe
,
uint8_t
beamforming_mode
);
...
...
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