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
wangjie
OpenXG-RAN
Commits
25e9f02e
Commit
25e9f02e
authored
Oct 29, 2018
by
Guy De Souza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
n_symbs update
parent
afd34816
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
+6
-4
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+1
-1
No files found.
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
View file @
25e9f02e
...
@@ -114,13 +114,13 @@ void nr_pdsch_codeword_modulation(uint32_t *in,
...
@@ -114,13 +114,13 @@ void nr_pdsch_codeword_modulation(uint32_t *in,
void
nr_pdsch_layer_mapping
(
uint16_t
**
mod_symbs
,
void
nr_pdsch_layer_mapping
(
uint16_t
**
mod_symbs
,
uint8_t
n_codewords
,
uint8_t
n_codewords
,
uint8_t
n_layers
,
uint8_t
n_layers
,
uint16_t
*
n_symbs
,
uint16_t
n_symbs
,
uint16_t
**
tx_layers
)
{
uint16_t
**
tx_layers
)
{
switch
(
n_layers
)
{
switch
(
n_layers
)
{
case
1
:
case
1
:
memcpy
((
void
*
)
tx_layers
[
0
],
(
void
*
)
mod_symbs
[
0
],
(
n_symbs
[
0
]
<<
1
)
*
sizeof
(
uint16_t
));
memcpy
((
void
*
)
tx_layers
[
0
],
(
void
*
)
mod_symbs
[
0
],
(
n_symbs
<<
1
)
*
sizeof
(
uint16_t
));
break
;
break
;
case
2
:
case
2
:
...
@@ -234,10 +234,12 @@ for (int i=0; i<TBS; i++) {
...
@@ -234,10 +234,12 @@ for (int i=0; i<TBS; i++) {
mod_symbs
[
q
]);
mod_symbs
[
q
]);
#ifdef DEBUG_DLSCH
#ifdef DEBUG_DLSCH
printf
(
"PDSCH Modulation: Qm %d()
\n
"
,
Qm
,
n_symbs
);
printf
(
"PDSCH Modulation: Qm %d()
\n
"
,
Qm
,
n_symbs
);
for
(
int
i
=
0
;
i
<
n_symbs
;
i
++
)
for
(
int
i
=
0
;
i
<
n_symbs
;
i
++
)
{
for
(
int
j
=
0
;
j
<
Qm
;
j
++
)
{
for
(
int
j
=
0
;
j
<
Qm
;
j
++
)
{
printf
(
"%d
\t
%d
\n
"
,
mod_symbs
[
0
][(
i
*
Qm
+
j
)
<<
1
],
mod_symbs
[
0
][((
i
*
Qm
+
j
)
<<
1
)
+
1
]);
printf
(
"%d
%d
\t
"
,
mod_symbs
[
0
][(
i
*
Qm
+
j
)
<<
1
],
mod_symbs
[
0
][((
i
*
Qm
+
j
)
<<
1
)
+
1
]);
}
}
printf
(
"
\n
"
);
}
#endif
#endif
...
...
openair1/PHY/defs_nr_common.h
View file @
25e9f02e
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
#define NR_MAX_NB_RBG 18
#define NR_MAX_NB_RBG 18
#define NR_MAX_NB_LAYERS 8
#define NR_MAX_NB_LAYERS 8
#define NR_MAX_NB_CODEWORDS 2
#define NR_MAX_NB_CODEWORDS 2
#define NR_MAX_PDSCH_ENCODED_LENGTH
1000 //random
#define NR_MAX_PDSCH_ENCODED_LENGTH
950984
typedef
enum
{
typedef
enum
{
NR_MU_0
=
0
,
NR_MU_0
=
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