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
0a19a8e3
Commit
0a19a8e3
authored
Oct 19, 2019
by
Sakthi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more improvements
parent
843e9cf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
+4
-15
No files found.
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
View file @
0a19a8e3
...
@@ -743,19 +743,13 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
...
@@ -743,19 +743,13 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
printf
(
"rxF addr %p p %d
\n
"
,
rxF
,
p
);
printf
(
"rxF addr %p p %d
\n
"
,
rxF
,
p
);
printf
(
"dl_ch addr %p nushift %d
\n
"
,
dl_ch
,
nushift
);
printf
(
"dl_ch addr %p nushift %d
\n
"
,
dl_ch
,
nushift
);
#endif
#endif
//if ((ue->frame_parms.N_RB_DL&1)==0) {
for
(
uint16_t
idx8Sym
=
0
;
idx8Sym
<
(
nb_rb_pdsch
*
12
)
/
8
;
idx8Sym
++
)
{
for
(
uint16_t
idx8Sym
=
0
;
idx8Sym
<
(
nb_rb_pdsch
*
12
)
/
8
;
idx8Sym
++
)
{
for
(
uint8_t
idxPil
=
0
;
idxPil
<
10
;
idxPil
+=
2
)
{
for
(
uint8_t
idxPil
=
0
;
idxPil
<
10
;
idxPil
+=
2
)
{
rxF
=
(
int16_t
*
)
&
rxdataF
[
aarx
][(
symbol_offset
+
nushift
+
re_offset
)];
rxF
=
(
int16_t
*
)
&
rxdataF
[
aarx
][(
symbol_offset
+
nushift
+
re_offset
)];
ch
[
idxPil
]
=
(
int16_t
)(((
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
]
*
rxF
[
0
]
-
(
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
+
1
]
*
rxF
[
1
])
>>
15
);
ch
[
idxPil
]
=
(
re_offset
==
0
)
?
0
:
(
int16_t
)(((
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
]
*
rxF
[
0
]
-
(
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
+
1
]
*
rxF
[
1
])
>>
15
);
ch
[
idxPil
+
1
]
=
(
int16_t
)(((
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
]
*
rxF
[
1
]
+
(
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
+
1
]
*
rxF
[
0
])
>>
15
);
ch
[
idxPil
+
1
]
=
(
re_offset
==
0
)
?
0
:
(
int16_t
)(((
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
]
*
rxF
[
1
]
+
(
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
+
1
]
*
rxF
[
0
])
>>
15
);
// Nulling estimates at DC
if
(
re_offset
==
0
)
{
ch
[
idxPil
]
=
0
;
ch
[
idxPil
+
1
]
=
0
;
}
re_offset
=
(
re_offset
+
2
)
&
(
ue
->
frame_parms
.
ofdm_symbol_size
-
1
);
re_offset
=
(
re_offset
+
2
)
&
(
ue
->
frame_parms
.
ofdm_symbol_size
-
1
);
}
}
...
@@ -775,13 +769,8 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
...
@@ -775,13 +769,8 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
for
(
uint8_t
idxPil
=
0
;
idxPil
<
8
;
idxPil
+=
2
)
{
for
(
uint8_t
idxPil
=
0
;
idxPil
<
8
;
idxPil
+=
2
)
{
rxF
=
(
int16_t
*
)
&
rxdataF
[
aarx
][(
symbol_offset
+
nushift
+
re_offset
)];
rxF
=
(
int16_t
*
)
&
rxdataF
[
aarx
][(
symbol_offset
+
nushift
+
re_offset
)];
ch
[
idxPil
]
=
(
int16_t
)(((
int32_t
)
pil
[
used_pils
+
idxPil
]
*
rxF
[
0
]
-
(
int32_t
)
pil
[
used_pils
*
idxPil
+
1
]
*
rxF
[
1
])
>>
15
);
ch
[
idxPil
]
=
(
re_offset
==
0
)
?
0
:
(
int16_t
)(((
int32_t
)
pil
[
used_pils
+
idxPil
]
*
rxF
[
0
]
-
(
int32_t
)
pil
[
used_pils
*
idxPil
+
1
]
*
rxF
[
1
])
>>
15
);
ch
[
idxPil
+
1
]
=
(
int16_t
)(((
int32_t
)
pil
[
used_pils
+
idxPil
]
*
rxF
[
1
]
+
(
int32_t
)
pil
[
used_pils
*
idxPil
+
1
]
*
rxF
[
0
])
>>
15
);
ch
[
idxPil
+
1
]
=
(
re_offset
==
0
)
?
0
:
(
int16_t
)(((
int32_t
)
pil
[
used_pils
+
idxPil
]
*
rxF
[
1
]
+
(
int32_t
)
pil
[
used_pils
*
idxPil
+
1
]
*
rxF
[
0
])
>>
15
);
// Nulling estimates at DC
if
(
re_offset
==
0
)
{
ch
[
idxPil
]
=
0
;
ch
[
idxPil
+
1
]
=
0
;
}
re_offset
=
(
re_offset
+
2
)
&
(
ue
->
frame_parms
.
ofdm_symbol_size
-
1
);
re_offset
=
(
re_offset
+
2
)
&
(
ue
->
frame_parms
.
ofdm_symbol_size
-
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