Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openairinterface5G
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
dyyu
openairinterface5G
Commits
79c304a2
Commit
79c304a2
authored
Mar 21, 2017
by
Elena Lukashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Passing Conditional Number threshold as a command line argument. -V($)
parent
ca0d8a44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
+4
-1
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
+9
-5
No files found.
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
View file @
79c304a2
...
...
@@ -36,6 +36,8 @@
#define DEBUG_MEAS_UE
//#define DEBUG_RANK_EST
int16_t
cond_num_threshold
=
0
;
#ifdef USER_MODE
void
print_shorts
(
char
*
s
,
short
*
x
)
{
...
...
@@ -1019,9 +1021,10 @@ uint8_t rank_estimation_tm3_tm4 (int *dl_ch_estimates_00, // please respect the
denum_db
[
i
]
=
dB_fixed
(
determ_fin
[
i
]);
numer_db
[
i
]
=
dB_fixed
(
numer_fin
[
i
]);
cond_db
[
i
]
=
(
numer_db
[
i
]
-
denum_db
[
i
]);
if
(
cond_db
[
i
]
<
11
)
if
(
cond_db
[
i
]
<
cond_num_threshold
)
count
++
;
#ifdef DEBUG_RANK_EST
printf
(
"cond_num_threshold =%d
\n
"
,
cond_num_threshold
);
printf
(
"i %d numer_db[i] = %d
\n
"
,
i
,
numer_db
[
i
]);
printf
(
"i %d denum_db[i] = %d
\n
"
,
i
,
denum_db
[
i
]);
printf
(
"i %d cond_db[i] = %d
\n
"
,
i
,
cond_db
[
i
]);
...
...
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
View file @
79c304a2
...
...
@@ -57,6 +57,7 @@
extern
unsigned
int
dlsch_tbs25
[
27
][
25
],
TBStable
[
27
][
110
];
extern
unsigned
char
offset_mumimo_llr_drange_fix
;
extern
int16_t
dlsch_demod_shift
;
extern
int16_t
cond_num_threshold
;
#include "PHY/TOOLS/lte_phy_scope.h"
...
...
@@ -338,7 +339,7 @@ int main(int argc, char **argv)
perfect_ce
=
0
;
while
((
c
=
getopt
(
argc
,
argv
,
"ahdpZDe:Em:n:o:s:f:t:c:g:r:F:x:y:z:AM:N:I:i:O:R:S:C:T:b:u:v:w:B:PLl:XYv:J:K:U"
))
!=
-
1
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"ahdpZDe:Em:n:o:s:f:t:c:g:r:F:x:y:z:AM:N:I:i:O:R:S:C:T:b:u:v:w:B:PLl:XYv:
V:
J:K:U"
))
!=
-
1
)
{
switch
(
c
)
{
case
'a'
:
...
...
@@ -622,6 +623,9 @@ int main(int argc, char **argv)
case
'Y'
:
perfect_ce
=
1
;
break
;
case
'V'
:
cond_num_threshold
=
atof
(
optarg
);
break
;
case
'J'
:
dlsch_demod_shift
=
atof
(
optarg
);
break
;
...
...
@@ -808,14 +812,14 @@ int main(int argc, char **argv)
if
(
transmission_mode
==
3
||
transmission_mode
==
4
){
if
(
rank_adapt
==
1
){
if
(
perfect_ce
==
1
)
sprintf
(
rankadapt_fname
,
"rank_adapt1_tx%d_r%d_ch%d_%d_nrx%d_rnd%d_mcs%d_mcsi%d_pce_sh%d
.csv"
,
transmission_mode
,
rx_type
,
channel_model
,
n_frames
,
n_rx
,
num_rounds
,
mcs1
,
mcs2
,
dlsch_demod_shift
);
sprintf
(
rankadapt_fname
,
"rank_adapt1_tx%d_r%d_ch%d_%d_nrx%d_rnd%d_mcs%d_mcsi%d_pce_sh%d
_connum_%d.csv"
,
transmission_mode
,
rx_type
,
channel_model
,
n_frames
,
n_rx
,
num_rounds
,
mcs1
,
mcs2
,
dlsch_demod_shift
,
cond_num_threshold
);
else
sprintf
(
rankadapt_fname
,
"rank_adapt1_tx%d_r%d_ch%d_%d_nrx%d_rnd%d_mcs%d_mcsi%d_sh%d
.csv"
,
transmission_mode
,
rx_type
,
channel_model
,
n_frames
,
n_rx
,
num_rounds
,
mcs1
,
mcs2
,
dlsch_demod_shift
);
sprintf
(
rankadapt_fname
,
"rank_adapt1_tx%d_r%d_ch%d_%d_nrx%d_rnd%d_mcs%d_mcsi%d_sh%d
_connum_%d.csv"
,
transmission_mode
,
rx_type
,
channel_model
,
n_frames
,
n_rx
,
num_rounds
,
mcs1
,
mcs2
,
dlsch_demod_shift
,
cond_num_threshold
);
}
else
{
if
(
perfect_ce
==
1
)
sprintf
(
rankadapt_fname
,
"rank_adapt0_tx%d_r%d_ch%d_%d_nrx%d_rnd%d_mcs%d_mcsi%d_pce_sh%d
.csv"
,
transmission_mode
,
rx_type
,
channel_model
,
n_frames
,
n_rx
,
num_rounds
,
mcs1
,
mcs2
,
dlsch_demod_shift
);
sprintf
(
rankadapt_fname
,
"rank_adapt0_tx%d_r%d_ch%d_%d_nrx%d_rnd%d_mcs%d_mcsi%d_pce_sh%d
_connum_%d.csv"
,
transmission_mode
,
rx_type
,
channel_model
,
n_frames
,
n_rx
,
num_rounds
,
mcs1
,
mcs2
,
dlsch_demod_shift
,
cond_num_threshold
);
else
sprintf
(
rankadapt_fname
,
"rank_adapt0_tx%d_r%d_ch%d_%d_nrx%d_rnd%d_mcs%d_mcsi%d_sh%d
.csv"
,
transmission_mode
,
rx_type
,
channel_model
,
n_frames
,
n_rx
,
num_rounds
,
mcs1
,
mcs2
,
dlsch_demod_shift
);
sprintf
(
rankadapt_fname
,
"rank_adapt0_tx%d_r%d_ch%d_%d_nrx%d_rnd%d_mcs%d_mcsi%d_sh%d
_connum_%d.csv"
,
transmission_mode
,
rx_type
,
channel_model
,
n_frames
,
n_rx
,
num_rounds
,
mcs1
,
mcs2
,
dlsch_demod_shift
,
cond_num_threshold
);
}
rankadapt_fd
=
fopen
(
rankadapt_fname
,
"w"
);
if
(
rankadapt_fd
==
NULL
)
{
...
...
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