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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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-RAN
Commits
7ea60872
Commit
7ea60872
authored
Aug 28, 2019
by
Bo Zhao
Committed by
cig
Feb 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend the length of the channel processing to 32 bits
parent
ac122452
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
openair1/SIMULATION/TOOLS/multipath_tv_channel.c
openair1/SIMULATION/TOOLS/multipath_tv_channel.c
+11
-7
openair1/SIMULATION/TOOLS/sim.h
openair1/SIMULATION/TOOLS/sim.h
+1
-1
No files found.
openair1/SIMULATION/TOOLS/multipath_tv_channel.c
View file @
7ea60872
...
...
@@ -27,18 +27,20 @@
#include "SIMULATION/RF/rf.h"
#include <complex.h>
void
tv_channel
(
channel_desc_t
*
desc
,
double
complex
***
H
,
uint
16
_t
length
);
void
tv_channel
(
channel_desc_t
*
desc
,
double
complex
***
H
,
uint
32
_t
length
);
double
frand_a_b
(
double
a
,
double
b
);
void
tv_conv
(
double
complex
**
h
,
double
complex
*
x
,
double
complex
*
y
,
uint
16
_t
nb_samples
,
uint8_t
nb_taps
,
int
delay
);
void
tv_conv
(
double
complex
**
h
,
double
complex
*
x
,
double
complex
*
y
,
uint
32
_t
nb_samples
,
uint8_t
nb_taps
,
int
delay
);
void
multipath_tv_channel
(
channel_desc_t
*
desc
,
double
**
tx_sig_re
,
double
**
tx_sig_im
,
double
**
rx_sig_re
,
double
**
rx_sig_im
,
uint16_t
length
,
uint8_t
keep_channel
)
{
double
complex
**
tx
,
**
rx
,
*
**
H_t
,
*
rx_temp
;
//, *tv_H_t;
uint32_t
length
,
uint8_t
keep_channel
)
{
double
complex
**
tx
,
**
rx
,
***
H_t
,
*
rx_temp
;
//, *tv_H_t;
double
path_loss
=
pow
(
10
,
desc
->
path_loss_dB
/
20
);
int
i
,
j
,
k
,
dd
;
dd
=
abs
(
desc
->
channel_offset
);
...
...
@@ -126,7 +128,8 @@ void multipath_tv_channel(channel_desc_t *desc,
}
//TODO: make phi_rad a parameter of this function
void
tv_channel
(
channel_desc_t
*
desc
,
double
complex
***
H
,
uint16_t
length
)
{
void
tv_channel
(
channel_desc_t
*
desc
,
double
complex
***
H
,
uint32_t
length
){
int
i
,
j
,
p
,
l
,
k
;
double
*
alpha
,
*
phi_rad
,
pi
=
acos
(
-
1
),
*
w_Hz
;
alpha
=
(
double
*
)
calloc
(
desc
->
nb_paths
,
sizeof
(
double
));
...
...
@@ -193,7 +196,8 @@ void tv_channel(channel_desc_t *desc,double complex ***H,uint16_t length) {
}
// time varying convolution
void
tv_conv
(
double
complex
**
h
,
double
complex
*
x
,
double
complex
*
y
,
uint16_t
nb_samples
,
uint8_t
nb_taps
,
int
dd
)
{
void
tv_conv
(
double
complex
**
h
,
double
complex
*
x
,
double
complex
*
y
,
uint32_t
nb_samples
,
uint8_t
nb_taps
,
int
dd
){
int
i
,
j
;
for
(
i
=
0
;
i
<
((
int
)
nb_samples
-
dd
);
i
++
)
{
...
...
openair1/SIMULATION/TOOLS/sim.h
View file @
7ea60872
...
...
@@ -426,7 +426,7 @@ void multipath_tv_channel(channel_desc_t *desc,
double
**
tx_sig_im
,
double
**
rx_sig_re
,
double
**
rx_sig_im
,
uint
16
_t
length
,
uint
32
_t
length
,
uint8_t
keep_channel
);
/**@} */
...
...
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