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
spbro
OpenXG-RAN
Commits
0f4e7659
Commit
0f4e7659
authored
Jul 24, 2021
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add get_dmrs_port function for ul
parent
de4676dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
common/utils/nr/nr_common.c
common/utils/nr/nr_common.c
+20
-0
common/utils/nr/nr_common.h
common/utils/nr/nr_common.h
+1
-1
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+1
-1
No files found.
common/utils/nr/nr_common.c
View file @
0f4e7659
...
...
@@ -196,6 +196,26 @@ uint32_t nr_get_code_rate(uint8_t Imcs, uint8_t table_idx) {
}
}
int
get_dmrs_port
(
int
nl
,
uint16_t
dmrs_ports
)
{
if
(
dmrs_ports
==
0
)
return
0
;
// dci 1_0
int
p
=
-
1
;
int
found
=
-
1
;
for
(
int
i
=
0
;
i
<
12
;
i
++
)
{
// loop over dmrs ports
if
((
dmrs_ports
>>
i
)
&
0x01
)
{
// check if current bit is 1
found
++
;
if
(
found
==
nl
)
{
// found antenna port number corresponding to current layer
p
=
i
;
break
;
}
}
}
AssertFatal
(
p
>-
1
,
"No dmrs port corresponding to layer %d found
\n
"
,
nl
);
return
p
;
}
int
get_subband_size
(
int
NPRB
,
int
size
)
{
// implements table 5.2.1.4-2 from 36.214
//
...
...
common/utils/nr/nr_common.h
View file @
0f4e7659
...
...
@@ -62,7 +62,7 @@ uint8_t nr_get_Qm(uint8_t Imcs, uint8_t table_idx);
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
);
#define CEILIDIV(a,b) ((a+b-1)/b)
#define ROUNDIDIV(a,b) (((a<<1)+b)/(b<<1))
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
0f4e7659
...
...
@@ -1188,7 +1188,7 @@ int nr_rx_pusch(PHY_VARS_gNB *gNB,
if
(
dmrs_symbol_flag
==
1
)
{
if
(
gNB
->
pusch_vars
[
ulsch_id
]
->
dmrs_symbol
==
INVALID_VALUE
)
gNB
->
pusch_vars
[
ulsch_id
]
->
dmrs_symbol
=
symbol
;
z
nr_pusch_channel_estimation
(
gNB
,
slot
,
0
,
// p
...
...
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