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
dc898b1c
Commit
dc898b1c
authored
Dec 19, 2019
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated dlsim for runel test
parent
8fcf25cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+1
-1
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+8
-5
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+1
-1
No files found.
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
dc898b1c
...
...
@@ -2834,7 +2834,7 @@ int nr_ue_pdcch_procedures(uint8_t eNB_id,
// Higher layers have updated the number of searchSpaces with are active in the current slot and this value is stored in variable nb_searchspace_total
int
nb_searchspace_total
=
pdcch_vars2
->
nb_search_space
;
pdcch_vars
[
eNB_id
]
->
crnti
=
100
0
;
// 0x1234; //to be check how to set when using loop memory
pdcch_vars
[
eNB_id
]
->
crnti
=
100
1
;
// 0x1234; //to be check how to set when using loop memory
uint16_t
c_rnti
=
pdcch_vars
[
eNB_id
]
->
crnti
;
uint16_t
cs_rnti
=
0
,
new_rnti
=
0
,
tc_rnti
=
0
;
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
dc898b1c
...
...
@@ -364,6 +364,7 @@ int main(int argc, char **argv)
case
'I'
:
run_initial_sync
=
1
;
target_error_rate
=
0
.
1
;
slot
=
0
;
break
;
case
'L'
:
...
...
@@ -599,9 +600,10 @@ int main(int argc, char **argv)
Sched_INFO
.
TX_req
=
&
gNB_mac
->
TX_req
[
0
];
nr_schedule_response
(
&
Sched_INFO
);
phy_procedures_gNB_TX
(
gNB
,
frame
,
slot
,
0
);
//nr_common_signal_procedures (gNB,frame,subframe);
if
(
!
run_initial_sync
)
phy_procedures_gNB_TX
(
gNB
,
frame
,
slot
,
0
);
else
nr_common_signal_procedures
(
gNB
,
frame
,
slot
);
int
txdataF_offset
=
(
slot
%
2
)
*
frame_parms
->
samples_per_slot_wCP
;
LOG_M
(
"txsigF0.m"
,
"txsF0"
,
gNB
->
common_vars
.
txdataF
[
0
],
frame_length_complex_samples_no_prefix
,
1
,
1
);
...
...
@@ -752,12 +754,13 @@ int main(int argc, char **argv)
sigma2
=
pow
(
10
,
sigma2_dB
/
10
);
// printf("sigma2 %f (%f dB)\n",sigma2,sigma2_dB);
for
(
i
=
0
;
i
<
frame_length_complex_samples
;
i
++
)
{
/*
for (i=0; i<frame_length_complex_samples; i++) {
for (aa=0; aa<frame_parms->nb_antennas_rx; aa++) {
((short*) UE->common_vars.rxdata[aa])[2*i] = (short) ((r_re[aa][i] + sqrt(sigma2/2)*gaussdouble(0.0,1.0)));
((short*) UE->common_vars.rxdata[aa])[2*i+1] = (short) ((r_im[aa][i] + sqrt(sigma2/2)*gaussdouble(0.0,1.0)));
}
}
}*/
memcpy
(
UE
->
common_vars
.
rxdata
[
0
],
txdata
[
0
],
frame_length_complex_samples
*
sizeof
(
int32_t
));
if
(
n_trials
==
1
)
{
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
dc898b1c
...
...
@@ -164,7 +164,7 @@ int configure_fapi_dl_Tx(nfapi_nr_dl_config_request_body_t *dl_req,
nfapi_nr_dl_config_request_pdu_t
*
dl_config_dci_pdu
;
nfapi_nr_dl_config_request_pdu_t
*
dl_config_dlsch_pdu
;
int
TBS
;
uint16_t
rnti
=
100
0
;
//0x1234;
uint16_t
rnti
=
100
1
;
//0x1234;
int
dl_carrier_bandwidth
=
cfg
->
rf_config
.
dl_carrier_bandwidth
.
value
;
dl_config_dci_pdu
=
&
dl_req
->
dl_config_pdu_list
[
dl_req
->
number_pdu
];
memset
((
void
*
)
dl_config_dci_pdu
,
0
,
sizeof
(
nfapi_nr_dl_config_request_pdu_t
));
...
...
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