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
lizhongxiao
OpenXG-RAN
Commits
e0712dd8
Commit
e0712dd8
authored
May 13, 2020
by
OpInConnect_NCTU Terngyin/NY/GK/KM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parallel_architecture of 5G NR V2
parent
9b371647
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
+6
-4
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+2
-2
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+10
-7
No files found.
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
View file @
e0712dd8
...
@@ -125,16 +125,18 @@ for (int i=0; i<encoded_length>>3; i++) {
...
@@ -125,16 +125,18 @@ for (int i=0; i<encoded_length>>3; i++) {
printf
(
"
\t
"
);
printf
(
"
\t
"
);
}
}
printf
(
"
\n
"
);
printf
(
"
\n
"
);
#endif
/*! \file openair1/PHY/NR_TRANSPORT/nr_dlsch.c
/*! \file openair1/PHY/NR_TRANSPORT/nr_dlsch.c
* \brief p
ipeline scrambling and modulaiton
* \brief p
arallel_architecture of 5G NR V2
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \email tyhsu@cs.nctu.edu.tw
* \email tyhsu@cs.nctu.edu.tw
* \date
07
-05-2020
* \date
13
-05-2020
* \version 1.3
* \version 1.3
* \note
* \note
* \warning
* \warning
*/
*/
#endif
long
sum
=
0
;
#ifdef thread_for_scrambling_modulation
#ifdef thread_for_scrambling_modulation
// for(int j = 0;j<100;j++){
// for(int j = 0;j<100;j++){
gNB
->
complete_scrambling_and_modulation
=
0
;
gNB
->
complete_scrambling_and_modulation
=
0
;
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
e0712dd8
...
@@ -222,7 +222,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
...
@@ -222,7 +222,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_ENB_PDCCH_TX
,
0
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_ENB_PDCCH_TX
,
0
);
}
}
clock_gettime
(
CLOCK_REALTIME
,
&
tt1
);
//
clock_gettime(CLOCK_REALTIME, &tt1);
for
(
int
i
=
0
;
i
<
num_pdsch_rnti
;
i
++
)
{
for
(
int
i
=
0
;
i
<
num_pdsch_rnti
;
i
++
)
{
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_GENERATE_DLSCH
,
1
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_GENERATE_DLSCH
,
1
);
LOG_D
(
PHY
,
"PDSCH generation started (%d)
\n
"
,
num_pdsch_rnti
);
LOG_D
(
PHY
,
"PDSCH generation started (%d)
\n
"
,
num_pdsch_rnti
);
...
@@ -237,7 +237,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
...
@@ -237,7 +237,7 @@ void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_GENERATE_DLSCH
,
0
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_GENERATE_DLSCH
,
0
);
}
}
clock_gettime
(
CLOCK_REALTIME
,
&
tt2
);
//
clock_gettime(CLOCK_REALTIME, &tt2);
// printf("nr_generate_pdsch consumes %ld nanoseconds!\n", tt2.tv_nsec - tt1.tv_nsec);
// printf("nr_generate_pdsch consumes %ld nanoseconds!\n", tt2.tv_nsec - tt1.tv_nsec);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_ENB_TX
+
offset
,
0
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_ENB_TX
+
offset
,
0
);
}
}
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
e0712dd8
...
@@ -281,8 +281,12 @@ static void *dlsch_encoding_proc(void *ptr){
...
@@ -281,8 +281,12 @@ static void *dlsch_encoding_proc(void *ptr){
}
}
/*! \file openair1/SIMULATION/NR_PHY/dlsim.c
* \brief pipeline scrambling and modulaiton
static
void
*
scrambling_proc
(
void
*
ptr
){
/*! \file openair1/SIMULATION/NR_PHY/dlsim.c
* \brief parallel_architecture of 5G NR V2
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \email tyhsu@cs.nctu.edu.tw
* \email tyhsu@cs.nctu.edu.tw
* \date 13-05-2020
* \date 13-05-2020
...
@@ -291,7 +295,6 @@ static void *dlsch_encoding_proc(void *ptr){
...
@@ -291,7 +295,6 @@ static void *dlsch_encoding_proc(void *ptr){
* \warning
* \warning
*/
*/
static
void
*
scrambling_proc
(
void
*
ptr
){
scrambling_channel
*
test
=
(
scrambling_channel
*
)
ptr
;
scrambling_channel
*
test
=
(
scrambling_channel
*
)
ptr
;
int
q_id
=
test
->
q_id
;
int
q_id
=
test
->
q_id
;
...
@@ -417,9 +420,8 @@ static void *modulation_proc(void *ptr){
...
@@ -417,9 +420,8 @@ static void *modulation_proc(void *ptr){
struct
timespec
tt1
,
tt2
;
struct
timespec
tt1
,
tt2
;
PHY_VARS_gNB
*
gNB
=
RC
.
gNB
[
0
][
0
];
PHY_VARS_gNB
*
gNB
=
RC
.
gNB
[
0
][
0
];
NR_gNB_DLSCH_t
*
dlsch
=
gNB
->
dlsch
[
0
][
0
];
NR_gNB_DLSCH_t
*
dlsch
=
gNB
->
dlsch
[
0
][
0
];
/*! \file openair1/SIMULATION/NR_PHY/dlsim.c
/*! \file openair1/SIMULATION/NR_PHY/dlsim.c
* \brief parallel_architecture of 5G NR V2
* \brief pipeline scrambling and modulaiton
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \author Terng-Yin Hsu, WEI-YING,LIN (OpInConnect_NCTU)
* \email tyhsu@cs.nctu.edu.tw
* \email tyhsu@cs.nctu.edu.tw
* \date 13-05-2020
* \date 13-05-2020
...
@@ -427,7 +429,8 @@ static void *modulation_proc(void *ptr){
...
@@ -427,7 +429,8 @@ static void *modulation_proc(void *ptr){
* \note
* \note
* \warning
* \warning
*/
*/
/**********************************************************************/
/**********************************************************************/
#ifdef CPU_AFF
#ifdef CPU_AFF
...
...
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