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
7cb3739c
Commit
7cb3739c
authored
Dec 07, 2021
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bitmap occupation function
parent
1dd8c67f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
common/utils/nr/nr_common.c
common/utils/nr/nr_common.c
+5
-0
common/utils/nr/nr_common.h
common/utils/nr/nr_common.h
+1
-0
No files found.
common/utils/nr/nr_common.c
View file @
7cb3739c
...
...
@@ -472,6 +472,11 @@ int get_subband_size(int NPRB,int size) {
}
// from start symbol index and nb or symbols to symbol occupation bitmap in a slot
uint16_t
startandlength_to_bitmat
(
int
startSymbolIndex
,
int
nrOfSymbols
)
{
return
(((
1
<<
nrOfSymbols
)
-
1
)
<<
startSymbolIndex
);
}
void
SLIV2SL
(
int
SLIV
,
int
*
S
,
int
*
L
)
{
int
SLIVdiv14
=
SLIV
/
14
;
...
...
common/utils/nr/nr_common.h
View file @
7cb3739c
...
...
@@ -71,6 +71,7 @@ uint32_t nr_get_code_rate(uint8_t Imcs, uint8_t table_idx);
int
get_subband_size
(
int
NPRB
,
int
size
);
void
SLIV2SL
(
int
SLIV
,
int
*
S
,
int
*
L
);
int
get_dmrs_port
(
int
nl
,
uint16_t
dmrs_ports
);
uint16_t
startandlength_to_bitmat
(
int
startSymbolIndex
,
int
nrOfSymbols
);
#define CEILIDIV(a,b) ((a+b-1)/b)
#define ROUNDIDIV(a,b) (((a<<1)+b)/(b<<1))
...
...
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