Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
4aedcf09
Commit
4aedcf09
authored
Mar 03, 2021
by
Rohan Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support added for 2 RX Antenna case in ulsim and fixed indexing issue in gNB RX chain
parent
daeccc91
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
42 deletions
+43
-42
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+1
-0
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+42
-42
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
4aedcf09
...
...
@@ -345,6 +345,7 @@ void nr_ulsch_extract_rbs_single(int32_t **rxdataF,
n
=
0
;
k_prime
=
0
;
rxF_ext_index
=
ul_ch0_ext_index
=
ul_ch0_index
=
0
;
/* In RX Antenna(aarx) loop, Reset the index */
if
(
is_dmrs_symbol
==
0
)
{
//
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
4aedcf09
/
*
g
*
*
Licensed
to
the
OpenAirInterface
(
OAI
)
Software
Alliance
under
one
or
more
*
contributor
license
agreements
.
See
the
NOTICE
file
distributed
with
*
this
work
for
additional
information
regarding
copyright
ownership
.
...
...
@@ -607,8 +607,8 @@ int main(int argc, char **argv)
frame_parms
=
&
gNB
->
frame_parms
;
//to be initialized I suppose (maybe not necessary for PBCH)
frame_parms
->
nb_antennas_tx
=
n_tx
;
frame_parms
->
nb_antennas_rx
=
n_rx
;
//
frame_parms->nb_antennas_tx = n_tx;
//
frame_parms->nb_antennas_rx = n_rx;
frame_parms
->
N_RB_DL
=
N_RB_DL
;
frame_parms
->
N_RB_UL
=
N_RB_UL
;
frame_parms
->
Ncp
=
extended_prefix_flag
?
EXTENDED
:
NORMAL
;
...
...
@@ -646,7 +646,7 @@ int main(int argc, char **argv)
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
// common configuration
rrc_mac_config_req_gNB
(
0
,
0
,
1
,
pusch_tgt_snrx10
,
pucch_tgt_snrx10
,
scc
,
0
,
0
,
NULL
);
rrc_mac_config_req_gNB
(
0
,
0
,
n_rx
,
pusch_tgt_snrx10
,
pucch_tgt_snrx10
,
scc
,
0
,
0
,
NULL
);
// UE dedicated configuration
rrc_mac_config_req_gNB
(
0
,
0
,
1
,
pusch_tgt_snrx10
,
pucch_tgt_snrx10
,
NULL
,
1
,
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
phy_init_nr_gNB
(
gNB
,
0
,
0
);
...
...
@@ -1053,7 +1053,7 @@ int main(int argc, char **argv)
}
nr_fill_ulsch
(
gNB
,
frame
,
slot
,
pusch_pdu
);
//nr_fill_ulsch(gNB,frame,slot,pusch_pdu); // Not needed as its its already filled as apart of "nr_schedule_response(Sched_INFO);"
for
(
int
i
=
0
;
i
<
(
TBS
/
8
);
i
++
)
ulsch_ue
[
0
]
->
harq_processes
[
harq_pid
]
->
a
[
i
]
=
i
&
0xff
;
if
(
input_fd
==
NULL
)
{
...
...
@@ -1090,7 +1090,7 @@ int main(int argc, char **argv)
if
(
n_trials
==
1
)
printf
(
"sigma %f (%f dB), txlev %f (factor %f)
\n
"
,
sigma
,
sigma_dB
,
10
*
log10
((
double
)
txlev
),(
double
)(
double
)
frame_parms
->
ofdm_symbol_size
/
(
12
*
nb_rb
));
for
(
i
=
0
;
i
<
slot_length
;
i
++
)
{
for
(
int
aa
=
0
;
aa
<
1
;
aa
++
)
{
for
(
int
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_rx
;
aa
++
)
{
s_re
[
aa
][
i
]
=
((
double
)(((
short
*
)
&
UE
->
common_vars
.
txdata
[
aa
][
slot_offset
]))[(
i
<<
1
)]);
s_im
[
aa
][
i
]
=
((
double
)(((
short
*
)
&
UE
->
common_vars
.
txdata
[
aa
][
slot_offset
]))[(
i
<<
1
)
+
1
]);
}
...
...
@@ -1116,7 +1116,7 @@ int main(int argc, char **argv)
}
}
}
}
/*End input_fd */
if
(
pusch_pdu
->
pdu_bit_map
&
PUSCH_PDU_BITMAP_PUSCH_PTRS
)
{
...
...
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