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
spbro
OpenXG-RAN
Commits
8df7d62e
Commit
8df7d62e
authored
Aug 09, 2019
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation of phy simulators introduced from the usage of get_band()
parent
dd0927dd
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
9 deletions
+24
-9
openair1/PHY/INIT/nr_init.c
openair1/PHY/INIT/nr_init.c
+1
-2
openair1/SIMULATION/NR_PHY/dlschsim.c
openair1/SIMULATION/NR_PHY/dlschsim.c
+2
-0
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+2
-0
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+2
-0
openair1/SIMULATION/NR_PHY/pucchsim.c
openair1/SIMULATION/NR_PHY/pucchsim.c
+2
-0
openair1/SIMULATION/NR_PHY/ulschsim.c
openair1/SIMULATION/NR_PHY/ulschsim.c
+12
-6
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+2
-0
openair1/SIMULATION/NR_UE_PHY/unit_tests/src/dummy_functions.c
...ir1/SIMULATION/NR_UE_PHY/unit_tests/src/dummy_functions.c
+1
-1
No files found.
openair1/PHY/INIT/nr_init.c
View file @
8df7d62e
...
...
@@ -31,8 +31,7 @@
#include "TDD-Config.h"
#include "MBSFN-SubframeConfigList.h"*/
#include "openair1/PHY/defs_RU.h"
#include "LAYER2/MAC/mac_extern.h"
#include "LAYER2/MAC/mac_proto.h"
#include "LAYER2/NR_MAC_gNB/mac_proto.h"
#include "assertions.h"
#include <math.h>
...
...
openair1/SIMULATION/NR_PHY/dlschsim.c
View file @
8df7d62e
...
...
@@ -53,6 +53,8 @@
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
int
nfapi_mode
=
0
;
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
8df7d62e
...
...
@@ -60,6 +60,8 @@
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
int
nfapi_mode
=
0
;
...
...
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
8df7d62e
...
...
@@ -52,6 +52,8 @@
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
int
nfapi_mode
=
0
;
...
...
openair1/SIMULATION/NR_PHY/pucchsim.c
View file @
8df7d62e
...
...
@@ -50,6 +50,8 @@ PHY_VARS_gNB *gNB;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
int
nfapi_mode
=
0
;
...
...
openair1/SIMULATION/NR_PHY/ulschsim.c
View file @
8df7d62e
...
...
@@ -52,6 +52,8 @@
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
int
nfapi_mode
=
0
;
...
...
@@ -64,7 +66,7 @@ int main(int argc, char **argv)
{
char
c
;
int
i
,
sf
;
double
SNR
,
snr0
=
-
2
.
0
,
snr1
=
2
.
0
;
//
, SNR_lin;
double
SNR
,
snr0
=
-
2
.
0
,
snr1
=
2
.
0
,
SNR_lin
;
double
snr_step
=
0
.
1
;
uint8_t
snr1set
=
0
;
FILE
*
output_fd
=
NULL
;
...
...
@@ -83,7 +85,7 @@ int main(int argc, char **argv)
//unsigned char pbch_phase = 0;
int
frame
=
0
,
subframe
=
0
;
NR_DL_FRAME_PARMS
*
frame_parms
;
//
double sigma;
double
sigma
;
unsigned
char
qbits
=
8
;
int
ret
;
int
loglvl
=
OAILOG_WARNING
;
...
...
@@ -491,11 +493,15 @@ int main(int argc, char **argv)
//if (i<16) printf("modulated_input[%d] = %d\n",i,modulated_input[i]);
//SNR_lin = pow(10, SNR / 10.0);
//sigma = 1.0 / sqrt(2 * SNR_lin);
#if 1
SNR_lin
=
pow
(
10
,
SNR
/
10
.
0
);
sigma
=
1
.
0
/
sqrt
(
2
*
SNR_lin
);
channel_output_fixed
[
i
]
=
(
short
)
quantize
(
sigma
/
4
.
0
/
4
.
0
,
modulated_input
[
i
]
+
sigma
*
gaussdouble
(
0
.
0
,
1
.
0
),
qbits
);
#else
channel_output_fixed
[
i
]
=
(
short
)
quantize
(
0
.
01
,
modulated_input
[
i
],
qbits
);
//channel_output_fixed[i] = (short) quantize(sigma / 4.0 / 4.0, modulated_input[i] + sigma * gaussdouble(0.0, 1.0), qbits);
//channel_output_fixed[i] = (char)quantize8bit(sigma/4.0,(2.0*modulated_input[i]) - 1.0 + sigma*gaussdouble(0.0,1.0));
#endif
//printf("channel_output_fixed[%d]: %d\n",i,channel_output_fixed[i]);
//Uncoded BER
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
8df7d62e
...
...
@@ -60,6 +60,8 @@
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
int
nfapi_mode
=
0
;
...
...
openair1/SIMULATION/NR_UE_PHY/unit_tests/src/dummy_functions.c
View file @
8df7d62e
...
...
@@ -119,7 +119,7 @@ void dl_phy_sync_success(module_id_t module_idP,
frame_t
frameP
,
unsigned
char
eNB_index
,
uint8_t
first_sync
){}
uint
32
_t
from_nrarfcn
(
int
nr_bandP
,
uint32_t
dl_nrarfcn
)
{
return
(
0
);}
uint
64
_t
from_nrarfcn
(
int
nr_bandP
,
uint32_t
dl_nrarfcn
)
{
return
(
0
);}
int32_t
get_uldl_offset
(
int
nr_bandP
)
{
return
(
0
);}
...
...
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