Go to the source code of this file.
◆ disp() [1/3]
otherwise disp |
( |
'Unknown BW &&mu' |
| ) |
|
Initial value:==0
disp(
'Incorrect Numerology and BW combination.')
return
end
nSlots
%use file as input
%ifft_in = load('ifft_in.txt')
%gen IQs
ifft_in = [[1:1:(
numRBs*12)]', [1:1:(numRBs*12)]']
otherwise disp('Unknown BW &&mu') end end else disp('mmWave') if(mu >
◆ disp() [2/3]
◆ disp() [3/3]
end if bfw_gen disp |
( |
'Generate BF Weights per RB' |
| ) |
|
◆ fclose()
◆ for() [1/2]
for |
( |
i |
= 1:1:nSlots *14-1 | ) |
|
◆ for() [2/2]
◆ fwrite()
fwrite |
( |
fileID |
, |
|
|
antX_16 |
, |
|
|
'int16' |
|
|
) |
| |
◆ imag() [1/2]
◆ imag() [2/2]
◆ Matlab()
<COPYRIGHT_TAG> This script was tested with GNU version or Matlab |
( |
R2017a |
| ) |
|
◆ switch()
◆ all
◆ ant
Initial value:end write files for IQ samples for ant
Definition at line 166 of file gen_test.m.
◆ ant_c
◆ ant_num
Initial value:= ant_num_all(test_num)
bfw_gen=bfw_gen_all(test_num)
trx = trx_all(test_num)
nSlots=nSlots_all(test_num) % any 40 and 160
if sub6
if mu < 3
nNumerology = mu+1
otherwise disp('Unknown BW &&mu') end end else disp('mmWave') if(mu >
Definition at line 82 of file gen_test.m.
◆ antX_16
write files for IQ samples antX_16 =int16(antX.') |
◆ bfw_all_slots
◆ bfw_all_slots_int
end bfw_all_slots_int = int16(bfw_all_slots./max(max(abs((bfw_all_slots.')))).*2^15) |
◆ bfw_per_sym
◆ bw
or bw =bw_all(test_num) %5 |
◆ case
Initial value:{10}
MHz MHz MHz MHz MHz MHz MHz MHz MHz nNumRbsPerSymF1
Definition at line 97 of file gen_test.m.
◆ file_name
file_name = strcat(path_to_usecase,"ant_", num2str(ant-1),".bin") |
end if bfw_gen random channel matrix for single sym on syngle RB H = (rand(trx,ant_num) + 1j*rand(trx,ant_num)) |
◆ ifft_in_1
◆ iPrb
adjust channel per each RB for iPrb |
◆ mu0_10mhz
◆ mu0_20mhz
◆ mu1_100mhz
◆ mu3_100mhz
◆ nNumRbsPerSymF1
MHz MHz MHz MHz MHz MHz MHz MHz MHz nNumRbsPerSymF1 |
Initial value:= ...
[
% 5MHz 10MHz 15MHz 20 MHz 25 MHz 30 MHz 40 MHz 50MHz 60 MHz 70 MHz 80 MHz 90 MHz 100 MHz
[25, 52, 79, 106, 133, 160, 216, 270, 0, 0, 0, 0, 0]
Definition at line 13 of file gen_test.m.
◆ nNumRbsPerSymF2
Initial value:= ...
[
% 50Mhz 100MHz 200MHz 400MHz
[66, 132, 264, 0] % Numerology 2 (60KHz)
[32, 66, 132, 264] % Numerology 3 (120KHz)
]
Definition at line 21 of file gen_test.m.
◆ numRBs
◆ Octave
<COPYRIGHT_TAG> This script was tested with GNU Octave |
◆ path_to_usecase_all
Initial value:nSlots_all = ...
[
40,40,40,40,40,10
]
%select mu and
bw to generate test files
test_num
sub6=sub6_all(test_num) %false
mu=mu_all(test_num) % 0
total number of tests tests_total
Definition at line 69 of file gen_test.m.
◆ tests_total
total number of tests tests_total |
◆ W_dl
Initial value: %
H^
H - conjugate transpose
W_dl = conj(
H)*(transpose(
H)*conj(
H))^-1
end if bfw_gen random channel matrix for single sym on syngle RB H
Definition at line 186 of file gen_test.m.
◆ W_ul
weights for UL W_ul = ((ctranspose(H)*H)^-1)*ctranspose(H) |