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
canghaiwuhen
OpenXG-RAN
Commits
c1b8aac7
Commit
c1b8aac7
authored
Feb 12, 2018
by
Younes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE-spec RSs for 100 RBs.
parent
ce9cb777
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
2 deletions
+38
-2
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
+38
-2
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
c1b8aac7
...
...
@@ -1735,7 +1735,31 @@ int allocate_REs_in_RB(PHY_VARS_eNB *phy_vars_eNB,
for
(
p
=
7
;
p
<
9
;
p
++
)
{
if
(
p
==
first_layer0
||
p
==
first_layer1
)
{
/*if (p==7 && re<2 && lprime==0 && mprime2==0 && rb==0) {
int cnt=0;
for (rb=0; rb<100; rb++) {
for (mprime2=0; mprime2<3; mprime2++) {
ind = 3*3*frame_parms->N_RB_DL+3*rb+mprime2;
ind_dword = ind>>4;
ind_qpsk_symb = ind&0xf;
printf("cnt=%d, rb=%d, mprime2=%d, dword=%d, qpsk_symb=%d\n", cnt,rb,mprime2,ind_dword,ind_qpsk_symb);
//printf("cnt=%d, rb=%d, mprime2=%d, ind_dword=%d, ind_qpsk=%d, %d %d\n", cnt,rb,mprime2,ind_dword,ind_qpsk_symb,((int16_t *)&qpsk_p[(phy_vars_eNB->lte_gold_uespec_table[nscid][Ns][0][ind_dword]>>(2*ind_qpsk_symb))&3])[0],((int16_t *)&qpsk_p[(phy_vars_eNB->lte_gold_uespec_table[nscid][Ns][0][ind_dword]>>(2*ind_qpsk_symb))&3])[1]);
cnt++;
}
}
}*/
/*if (p==7 && re<2 && lprime==0 && mprime2==0 && rb==0) {
int cnt=0;
qpsk_p = qpsk;
for (ind_dword=0; ind_dword<100; ind_dword++){
for (ind_qpsk_symb=0; ind_qpsk_symb<16; ind_qpsk_symb++) {
printf("cnt=%d, ind_dword=%d, ind_qpsk=%d, %d %d\n", cnt,ind_dword,ind_qpsk_symb,((int16_t *)&qpsk_p[(phy_vars_eNB->lte_gold_uespec_table[nscid][Ns][0][ind_dword]>>(2*ind_qpsk_symb))&3])[0],((int16_t *)&qpsk_p[(phy_vars_eNB->lte_gold_uespec_table[nscid][Ns][0][ind_dword]>>(2*ind_qpsk_symb))&3])[1]);
cnt++;
}
}
}*/
/* Here rb has to be 0 to N_RB_DL otherwise w does not get the right values in the case of p8 */
if
(
p
==
8
)
{
if
(
lprime
==
1
)
{
...
...
@@ -1743,18 +1767,24 @@ int allocate_REs_in_RB(PHY_VARS_eNB *phy_vars_eNB,
rb
=
rb
-
85
;
}
else
if
(
frame_parms
->
N_RB_DL
==
50
)
{
rb
=
rb
-
60
;
}
else
{
rb
=
rb
-
10
;
}
}
else
if
(
lprime
==
2
)
{
if
(
frame_parms
->
N_RB_DL
==
25
)
{
rb
=
rb
-
170
;
}
else
if
(
frame_parms
->
N_RB_DL
==
50
)
{
rb
=
rb
-
120
;
}
else
{
rb
=
rb
-
20
;
}
}
else
if
(
lprime
==
3
)
{
if
(
frame_parms
->
N_RB_DL
==
25
)
{
rb
=
rb
-
255
;
}
else
if
(
frame_parms
->
N_RB_DL
==
50
)
{
rb
=
rb
-
180
;
}
else
{
rb
=
rb
-
30
;
}
}
}
...
...
@@ -1780,18 +1810,24 @@ int allocate_REs_in_RB(PHY_VARS_eNB *phy_vars_eNB,
rb
=
rb
+
85
;
}
else
if
(
frame_parms
->
N_RB_DL
==
50
)
{
rb
=
rb
+
60
;
}
else
{
rb
=
rb
+
10
;
}
}
else
if
(
lprime
==
2
)
{
if
(
frame_parms
->
N_RB_DL
==
25
)
{
rb
=
rb
+
170
;
}
else
if
(
frame_parms
->
N_RB_DL
==
50
)
{
rb
=
rb
+
120
;
}
else
{
rb
=
rb
+
20
;
}
}
else
if
(
lprime
==
3
)
{
if
(
frame_parms
->
N_RB_DL
==
25
)
{
rb
=
rb
+
255
;
}
else
if
(
frame_parms
->
N_RB_DL
==
50
)
{
rb
=
rb
+
180
;
}
else
{
rb
=
rb
+
30
;
}
}
}
...
...
@@ -1806,7 +1842,7 @@ int allocate_REs_in_RB(PHY_VARS_eNB *phy_vars_eNB,
qpsk_p
=
(
w
==
1
)
?
qpsk
:
nqpsk
;
txdataF
[
p
][
tti_offset
]
=
qpsk_p
[(
phy_vars_eNB
->
lte_gold_uespec_table
[
nscid
][
Ns
][
0
][
ind_dword
]
>>
(
2
*
ind_qpsk_symb
))
&
3
];
if
(
lprime
==
1
)
{
if
(
lprime
==
2
&&
p
==
7
)
{
printf
(
"re=%d, mprime2=%d, p=%d, w=%d, rb=%d, txdataF = {%d %d}
\n\n
"
,
re
,
mprime2
,
p
,
w
,
rb
,((
int16_t
*
)
&
txdataF
[
p
][
tti_offset
])[
0
],((
int16_t
*
)
&
txdataF
[
p
][
tti_offset
])[
1
]);
}
}
//end if p=first_layer
...
...
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