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
0761d5c2
Commit
0761d5c2
authored
Aug 18, 2014
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5731
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
cfd30ec3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/OFDM_TX_FRAME.m
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/OFDM_TX_FRAME.m
+2
-2
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/txsig.m
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/txsig.m
+3
-2
No files found.
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/OFDM_TX_FRAME.m
View file @
0761d5c2
...
...
@@ -13,13 +13,13 @@ num_useful_carriers = num_carriers - num_zeros -1;
sig
=
zeros
(
1
,(
num_carriers
+
prefix_length
)
*
num_symbols_frame
);
sig_f
=
zeros
(
num_symbols_frame
,
num_useful_carriers
);
for
k
=
1
:
preamble_length
QAM4_preamble
=
QAM_MOD
(
4
,
floor
(
4
*
abs
(
rand
(
1
,
num_useful_carriers
))));
QAM4_preamble
=
QAM_MOD
(
4
,
floor
(
4
*
abs
(
rand
(
1
,
num_useful_carriers
/
4
))));
sig
((
k
-
1
)
*
(
num_carriers
+
prefix_length
)
+
1
:
k
*
(
num_carriers
+
prefix_length
))
=
OFDM_TX
(
num_carriers
,
num_zeros
,
prefix_length
,
QAM4_preamble
);
sig_f
(
k
,:)
=
QAM4_preamble
;
end
for
k
=
preamble_length
+
1
:
num_symbols_frame
QAM_data
=
QAM_MOD
(
256
,
floor
(
4
*
abs
(
rand
(
1
,
num_useful_carriers
))));
QAM_data
=
QAM_MOD
(
256
,
floor
(
256
*
abs
(
rand
(
1
,
num_useful_carriers
/
256
))));
sig
((
k
-
1
)
*
(
num_carriers
+
prefix_length
)
+
1
:
k
*
(
num_carriers
+
prefix_length
))
=
OFDM_TX
(
num_carriers
,
num_zeros
,
prefix_length
,
QAM_data
);
sig_f
(
k
,:)
=
QAM_data
;
end
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/txsig.m
View file @
0761d5c2
...
...
@@ -40,7 +40,7 @@ oarf_config_exmimo(card, freq_rx,freq_tx,tdd_config,syncmode,rxgain,txgain,eNB_f
amp
=
pow2
(
14
)
-
1
;
n_bit
=
16
;
length
=
pow2
(
2
-
resampling_factor
(
1
));
length
=
307200
/
pow2
(
resampling_factor
(
1
));
s
=
zeros
(
length
,
4
);
...
...
@@ -111,7 +111,8 @@ case 6
otherwise
error
(
'unknown case'
)
endswitch
end
%switch
s
=
s
*
2
;
...
...
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