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
40d7d212
Commit
40d7d212
authored
Mar 04, 2021
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge develop
parent
e38e788c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
56 deletions
+9
-56
executables/nr-gnb.c
executables/nr-gnb.c
+1
-27
executables/softmodem-common.h
executables/softmodem-common.h
+3
-0
openair1/PHY/TOOLS/nr_phy_scope.c
openair1/PHY/TOOLS/nr_phy_scope.c
+0
-24
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+2
-2
openair1/SIMULATION/NR_PHY/prachsim.c
openair1/SIMULATION/NR_PHY/prachsim.c
+1
-1
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+2
-2
No files found.
executables/nr-gnb.c
View file @
40d7d212
...
...
@@ -85,6 +85,7 @@
#include "T.h"
#include "nfapi/oai_integration/vendor_ext.h"
#include <nfapi/oai_integration/nfapi_pnf.h>
//#define DEBUG_THREADS 1
//#define USRP_DEBUG 1
...
...
@@ -92,17 +93,6 @@
// extern openair0_device openair0;
extern
volatile
int
start_gNB
;
extern
volatile
int
start_UE
;
extern
volatile
int
oai_exit
;
extern
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
extern
int
transmission_mode
;
extern
uint16_t
sf_ahead
;
extern
uint16_t
sl_ahead
;
//pthread_t main_gNB_thread;
time_stats_t
softmodem_stats_mt
;
// main thread
...
...
@@ -111,25 +101,13 @@ time_stats_t softmodem_stats_rxtx_sf; // total tx time
time_stats_t
nfapi_meas
;
// total tx time
time_stats_t
softmodem_stats_rx_sf
;
// total rx time
extern
double
cpuf
;
void
init_gNB
(
int
,
int
);
void
stop_gNB
(
int
nb_inst
);
#include "executables/thread-common.h"
//extern PARALLEL_CONF_t get_thread_parallel_conf(void);
//extern WORKER_CONF_t get_thread_worker_conf(void);
extern
uint8_t
nfapi_mode
;
extern
void
oai_subframe_ind
(
uint16_t
sfn
,
uint16_t
sf
);
extern
void
oai_slot_ind
(
uint16_t
sfn
,
uint16_t
slot
);
extern
void
add_subframe
(
uint16_t
*
frameP
,
uint16_t
*
subframeP
,
int
offset
);
//#define TICK_TO_US(ts) (ts.diff)
#define TICK_TO_US(ts) (ts.trials==0?0:ts.diff/ts.trials)
extern
void
init_td_thread
(
PHY_VARS_gNB
*
);
extern
void
init_te_thread
(
PHY_VARS_gNB
*
);
void
tx_func
(
void
*
param
)
{
...
...
@@ -411,9 +389,6 @@ void kill_gNB_proc(int inst) {
}
void
reset_opp_meas
(
void
)
{
int
sfn
;
reset_meas
(
&
softmodem_stats_mt
);
...
...
@@ -481,7 +456,6 @@ printf("after %p\n", gNB->common_vars.rxdataF[aa]);
* (not tested in other modes).
*/
//init_precoding_weights(RC.gNB[inst]);
//init_gNB_proc(inst);
init_gNB_Tpool
(
inst
);
}
...
...
executables/softmodem-common.h
View file @
40d7d212
...
...
@@ -244,6 +244,9 @@ extern char *get_softmodem_function(uint64_t *sofmodemfunc_mask_ptr);
extern
void
set_softmodem_sighandler
(
void
);
extern
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
extern
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
extern
uint16_t
sl_ahead
;
extern
uint16_t
sf_ahead
;
extern
volatile
int
oai_exit
;
void
tx_func
(
void
*
param
);
void
rx_func
(
void
*
param
);
...
...
openair1/PHY/TOOLS/nr_phy_scope.c
View file @
40d7d212
...
...
@@ -282,30 +282,6 @@ static void genericWaterFall (OAIgraph_t *graph, scopeSample_t *values, const in
graph
->
iteration
++
;
}
static
void
genericLogPowerPerAntena
(
OAIgraph_t
*
graph
,
const
int
nb_ant
,
const
scopeSample_t
**
data
,
const
int
len
)
{
float
*
values
,
*
time
;
oai_xygraph_getbuff
(
graph
,
&
time
,
&
values
,
len
,
0
);
for
(
int
ant
=
0
;
ant
<
nb_ant
;
ant
++
)
{
if
(
data
[
ant
]
!=
NULL
)
{
float
*
values
,
*
time
;
oai_xygraph_getbuff
(
graph
,
&
time
,
&
values
,
len
,
ant
);
for
(
int
i
=
0
;
i
<
len
;
i
+=
8
)
{
float
*
vals
=
values
+
i
;
const
scopeSample_t
*
in
=&
(
data
[
ant
][
i
]);
// TRY AUTOMATIC simd BY GCC
for
(
int
k
=
0
;
k
<
8
;
k
++
)
{
vals
[
k
]
=
10
*
log10
(
1
.
0
+
SquaredNorm
(
in
[
k
]));
}
}
oai_xygraph
(
graph
,
time
,
values
,
len
,
ant
,
10
);
}
}
}
static
void
genericPowerPerAntena
(
OAIgraph_t
*
graph
,
const
int
nb_ant
,
const
scopeSample_t
**
data
,
const
int
len
)
{
float
*
values
,
*
time
;
oai_xygraph_getbuff
(
graph
,
&
time
,
&
values
,
len
,
0
);
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
40d7d212
...
...
@@ -79,8 +79,8 @@ int32_t uplink_frequency_offset[MAX_NUM_CCs][4];
double
cpuf
;
in
t
sf_ahead
=
4
;
in
t
sl_ahead
=
0
;
uint16_
t
sf_ahead
=
4
;
uint16_
t
sl_ahead
=
0
;
//uint8_t nfapi_mode = 0;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
...
...
openair1/SIMULATION/NR_PHY/prachsim.c
View file @
40d7d212
...
...
@@ -64,7 +64,7 @@ double cpuf;
extern
uint16_t
prach_root_sequence_map0_3
[
838
];
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
//uint8_t nfapi_mode=0;
in
t
sl_ahead
=
0
;
uint16_
t
sl_ahead
=
0
;
//void dump_nr_prach_config(NR_DL_FRAME_PARMS *frame_parms,uint8_t subframe);
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
40d7d212
...
...
@@ -75,9 +75,9 @@ PHY_VARS_NR_UE *UE;
RAN_CONTEXT_t
RC
;
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
in
t
sf_ahead
=
4
;
uint16_
t
sf_ahead
=
4
;
int
slot_ahead
=
6
;
in
t
sl_ahead
=
0
;
uint16_
t
sl_ahead
=
0
;
double
cpuf
;
//uint8_t nfapi_mode = 0;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
...
...
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