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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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-RAN
Commits
05d61a08
Commit
05d61a08
authored
Feb 25, 2022
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scrambling initialization in nr_dlsim and nr_ulsim
parent
96919468
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+10
-1
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+4
-15
No files found.
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
05d61a08
...
@@ -924,7 +924,16 @@ int main(int argc, char **argv)
...
@@ -924,7 +924,16 @@ int main(int argc, char **argv)
init_nr_ue_transport
(
UE
,
0
);
init_nr_ue_transport
(
UE
,
0
);
nr_gold_pbch
(
UE
);
nr_gold_pbch
(
UE
);
nr_gold_pdcch
(
UE
,
0
);
// compute the scramblingID_pdcch and the gold pdcch
UE
->
scramblingID_pdcch
=
frame_parms
->
Nid_cell
;
nr_gold_pdcch
(
UE
,
frame_parms
->
Nid_cell
);
// compute the scrambling IDs for PDSCH DMRS
for
(
int
i
=
0
;
i
<
2
;
i
++
)
UE
->
scramblingID
[
i
]
=
frame_parms
->
Nid_cell
;
nr_gold_pdsch
(
UE
,
UE
->
scramblingID
);
nr_l2_init_ue
(
NULL
);
nr_l2_init_ue
(
NULL
);
UE_mac
=
get_mac_inst
(
0
);
UE_mac
=
get_mac_inst
(
0
);
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
05d61a08
...
@@ -755,28 +755,17 @@ int main(int argc, char **argv)
...
@@ -755,28 +755,17 @@ int main(int argc, char **argv)
PHY_vars_UE_g
[
0
][
0
]
=
UE
;
PHY_vars_UE_g
[
0
][
0
]
=
UE
;
memcpy
(
&
UE
->
frame_parms
,
frame_parms
,
sizeof
(
NR_DL_FRAME_PARMS
));
memcpy
(
&
UE
->
frame_parms
,
frame_parms
,
sizeof
(
NR_DL_FRAME_PARMS
));
//phy_init_nr_top(frame_parms);
if
(
init_nr_ue_signal
(
UE
,
1
,
0
)
!=
0
)
{
if
(
init_nr_ue_signal
(
UE
,
1
,
0
)
!=
0
)
{
printf
(
"Error at UE NR initialisation
\n
"
);
printf
(
"Error at UE NR initialisation
\n
"
);
exit
(
-
1
);
exit
(
-
1
);
}
}
//nr_init_frame_parms_ue(&UE->frame_parms);
init_nr_ue_transport
(
UE
,
0
);
init_nr_ue_transport
(
UE
,
0
);
/*
// initialize the pusch dmrs
for (int sf = 0; sf < 2; sf++) {
uint16_t
N_n_scid
[
2
]
=
{
frame_parms
->
Nid_cell
,
frame_parms
->
Nid_cell
};
for (i = 0; i < 2; i++) {
int
n_scid
=
0
;
// This quantity is indicated by higher layer parameter dmrs-SeqInitialization
nr_init_pusch_dmrs
(
UE
,
N_n_scid
,
n_scid
);
UE->ulsch[sf][0][i] = new_nr_ue_ulsch(N_RB_UL, 8, 0);
if (!UE->ulsch[sf][0][i]) {
printf("Can't get ue ulsch structures\n");
exit(-1);
}
}
}
*/
//Configure UE
//Configure UE
NR_UE_RRC_INST_t
rrcue
;
NR_UE_RRC_INST_t
rrcue
;
...
...
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