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
常顺宇
OpenXG-RAN
Commits
38f263cc
Commit
38f263cc
authored
Jan 16, 2018
by
lfarizav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New Ziggurat Gauss number generation function
parent
57517313
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
198 additions
and
153 deletions
+198
-153
openair1/SIMULATION/RF/rf.c
openair1/SIMULATION/RF/rf.c
+2
-2
openair1/SIMULATION/TOOLS/defs.h
openair1/SIMULATION/TOOLS/defs.h
+4
-0
openair1/SIMULATION/TOOLS/rangen_double.c
openair1/SIMULATION/TOOLS/rangen_double.c
+189
-149
targets/PROJECTS/GENERIC-LTE-EPC/CONF/rru.band7.tm1.if4p5.50PRB.oaisim.conf
...ENERIC-LTE-EPC/CONF/rru.band7.tm1.if4p5.50PRB.oaisim.conf
+1
-1
targets/SIMU/USER/oaisim_functions.c
targets/SIMU/USER/oaisim_functions.c
+2
-1
No files found.
openair1/SIMULATION/RF/rf.c
View file @
38f263cc
...
...
@@ -442,8 +442,8 @@ clock_t start=clock();*/
else
{
//rx128_gain_lin=mm_mul_set1_ps(rx_gain_lin);
gauss0_sqrt_NOW
=
sqrt_NOW
*
gaussdouble
(
0
.
0
,
1
.
0
);
gauss1_sqrt_NOW
=
sqrt_NOW
*
gaussdouble
(
0
.
0
,
1
.
0
);
gauss0_sqrt_NOW
=
sqrt_NOW
*
ziggurat
(
);
gauss1_sqrt_NOW
=
sqrt_NOW
*
ziggurat
(
);
rx128_re
=
_mm_loadu_pd
(
&
r_re
[
a
][
2
*
i
]);
//r_re[a][i],r_re[a][i+1]
rx128_im
=
_mm_loadu_pd
(
&
r_im
[
a
][
2
*
i
]);
//r_im[a][i],r_im[a][i+1]
rx128_gain_lin
=
_mm_set1_pd
(
rx_gain_lin
);
...
...
openair1/SIMULATION/TOOLS/defs.h
View file @
38f263cc
...
...
@@ -436,9 +436,13 @@ the value \f$\mathrm{sgn}(u)i\f$. The search requires at most \f$Nbits-1\f$ com
*/
int
gauss
(
unsigned
int
*
gauss_LUT
,
unsigned
char
Nbits
);
double
zigguratdouble
(
unsigned
int
r
,
double
sigma
);
double
gaussdouble
(
double
,
double
);
void
randominit
(
unsigned
int
seed_init
);
void
setup_nor
();
double
uniformrandom
(
void
);
void
uniformrandomSSE
(
__m128d
*
d1
,
__m128d
*
d2
);
double
ziggurat
();
int
freq_channel
(
channel_desc_t
*
desc
,
uint16_t
nb_rb
,
int16_t
n_samples
);
int
freq_channel_prach
(
channel_desc_t
*
desc
,
uint16_t
nb_rb
,
int16_t
n_samples
,
int16_t
prach_fmt
,
int16_t
n_ra_prb
);
int
init_freq_channel
(
channel_desc_t
*
desc
,
uint16_t
nb_rb
,
int16_t
n_samples
);
...
...
openair1/SIMULATION/TOOLS/rangen_double.c
View file @
38f263cc
This diff is collapsed.
Click to expand it.
targets/PROJECTS/GENERIC-LTE-EPC/CONF/rru.band7.tm1.if4p5.50PRB.oaisim.conf
View file @
38f263cc
...
...
@@ -139,7 +139,7 @@ eNBs =
//////////
MME
parameters
:
mme_ip_address
= ( {
ipv4
=
"1
72.24.11.4
"
;
mme_ip_address
= ( {
ipv4
=
"1
92.168.12.148
"
;
ipv6
=
"192:168:30::17"
;
active
=
"yes"
;
preference
=
"ipv4"
;
...
...
targets/SIMU/USER/oaisim_functions.c
View file @
38f263cc
...
...
@@ -990,10 +990,12 @@ void init_seed(uint8_t set_seed)
if
(
set_seed
)
{
randominit
(
oai_emulation
.
info
.
seed
);
setup_nor
();
//Setup for the normal probability distribution function
set_taus_seed
(
oai_emulation
.
info
.
seed
);
}
else
{
randominit
(
0
);
setup_nor
();
//Setup for the normal probability distribution function
set_taus_seed
(
0
);
}
}
...
...
@@ -1042,7 +1044,6 @@ extern int subframe_eNB_mask,subframe_UE_mask;
int
eNB_trx_read
(
openair0_device
*
device
,
openair0_timestamp
*
ptimestamp
,
void
**
buff
,
int
nsamps
,
int
cc
)
{
static
int
count
=
0
;
int
eNB
,
UE
,
CC
;
if
(
count
==
500
)
{
//Use ./oaisim -q option to enable the oai performance profiler.
...
...
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