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
promise
OpenXG-RAN
Commits
73e592ab
Commit
73e592ab
authored
Oct 28, 2019
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved estimation around DC
parent
b3377497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
+18
-4
No files found.
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
View file @
73e592ab
...
...
@@ -748,8 +748,8 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
for
(
uint8_t
idxPil
=
0
;
idxPil
<
10
;
idxPil
+=
2
)
{
rxF
=
(
int16_t
*
)
&
rxdataF
[
aarx
][(
symbol_offset
+
nushift
+
re_offset
)];
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
]
=
(
re_offset
==
0
)
?
0
:
(
int16_t
)(((
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
]
*
rxF
[
1
]
+
(
int32_t
)
pil
[
idx8Sym
*
8
+
idxPil
+
1
]
*
rxF
[
0
])
>>
15
);
ch
[
idxPil
]
=
(
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
);
re_offset
=
(
re_offset
+
2
)
&
(
ue
->
frame_parms
.
ofdm_symbol_size
-
1
);
}
...
...
@@ -769,8 +769,8 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
for
(
uint8_t
idxPil
=
0
;
idxPil
<
8
;
idxPil
+=
2
)
{
rxF
=
(
int16_t
*
)
&
rxdataF
[
aarx
][(
symbol_offset
+
nushift
+
re_offset
)];
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
]
=
(
re_offset
==
0
)
?
0
:
(
int16_t
)(((
int32_t
)
pil
[
used_pils
+
idxPil
]
*
rxF
[
1
]
+
(
int32_t
)
pil
[
used_pils
*
idxPil
+
1
]
*
rxF
[
0
])
>>
15
);
ch
[
idxPil
]
=
(
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
);
re_offset
=
(
re_offset
+
2
)
&
(
ue
->
frame_parms
.
ofdm_symbol_size
-
1
);
}
...
...
@@ -782,6 +782,20 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
dl_ch
[
0
]
=
ch
[
0
];
dl_ch
[
1
]
=
ch
[
1
];
dl_ch
[
4
]
=
ch
[
4
];
dl_ch
[
5
]
=
ch
[
5
];
}
// check if PRB crosses DC and improve estimates around DC
if
((
bwp_start_subcarrier
>=
ue
->
frame_parms
.
ofdm_symbol_size
/
2
)
&&
(
bwp_start_subcarrier
+
nb_rb_pdsch
*
12
>=
ue
->
frame_parms
.
ofdm_symbol_size
))
{
dl_ch
=
(
int16_t
*
)
&
dl_ch_estimates
[
aarx
][
ch_offset
];
uint16_t
idxDC
=
2
*
(
ue
->
frame_parms
.
ofdm_symbol_size
-
bwp_start_subcarrier
);
// before DC
dl_ch
[
idxDC
-
2
]
=
(
dl_ch
[
idxDC
-
4
]
*
0
.
6667
)
+
(
dl_ch
[
idxDC
-
8
]
*
0
.
3333
);
dl_ch
[
idxDC
-
1
]
=
(
dl_ch
[
idxDC
-
3
]
*
0
.
6667
)
+
(
dl_ch
[
idxDC
-
7
]
*
0
.
3333
);
//after DC
dl_ch
[
idxDC
+
2
]
=
(
dl_ch
[
idxDC
+
4
]
*
0
.
6667
)
+
(
dl_ch
[
idxDC
+
8
]
*
0
.
3333
);
dl_ch
[
idxDC
+
1
]
=
(
dl_ch
[
idxDC
+
3
]
*
0
.
6667
)
+
(
dl_ch
[
idxDC
+
7
]
*
0
.
3333
);
}
}
return
(
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