]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/tcp3d-lld.git/blob - test/gen_test_vectors/GenConfig_wcdma.m
Additional changes to example and test cases.
[keystone-rtos/tcp3d-lld.git] / test / gen_test_vectors / GenConfig_wcdma.m
1 rand('seed', 1213)\r
2 \r
3 sw0 = [ 48 64 96 128 ];\r
4 \r
5 fidL = fopen('config_list.cfg', 'w');\r
6 \r
7 for ind = 1:100\r
8     mode = 3;\r
9 \r
10     frmSizeInd = round(40 + rand*(5114-40));\r
11     fprintf(fidL, '%s\n', sprintf('config_%d.cfg',ind));\r
12     \r
13     fid = fopen(sprintf('config_%d.cfg',ind), 'w');\r
14         fprintf(fid, 'Coding_standard  = %d\n', mode);\r
15         fprintf(fid, 'Frame_size_index = %d\n', frmSizeInd);\r
16         fprintf(fid, 'Max_number_of_turbo_iterations = 8\n');\r
17         fprintf(fid, 'Min_number_of_turbo_iterations = 1\n');\r
18         fprintf(fid, 'Max_star_enable = 0\n');\r
19         fprintf(fid, 'Max_star_threshold = 4\n');\r
20         fprintf(fid, 'Max_star_value     = 2\n');\r
21         fprintf(fid, 'tcp3_extrScaleEn = 1\n');\r
22         fprintf(fid, 'Extrinsic_scales = 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 \n');\r
23         fprintf(fid, 'tcp3_SW0_length = %d\n', sw0(1+fix(rand*3)));\r
24         fprintf(fid, 'tcp3_stopSel = 0\n');\r
25         fprintf(fid, 'tcp3_SNR_Report = 1\n');\r
26         fprintf(fid, 'tcp3_SNR_stopVal = 14\n');\r
27         fprintf(fid, 'tcp3_intlvGenEn = 1\n');\r
28         fprintf(fid, 'tcp3_softOutBitFormat = 1\n');\r
29         fprintf(fid, 'tcp3_lteCrcInitSel = 0\n');\r
30         fprintf(fid, 'tcp3_lteCrcIterPass = 1\n');\r
31         fprintf(fid, 'tcp3_outStatusReadEn = %d\n', round(rand*1));\r
32         fprintf(fid, 'tcp3_softOutBitsReadEn = %d\n', round(rand*1));\r
33         fprintf(fid, 'Save_intermediate_data    = 1\n');\r
34         fprintf(fid, 'Minimum_number_of_FEC_blocks = 1\n');\r
35         fprintf(fid, 'Maximum_number_of_FEC_blocks = 1\n');\r
36         fprintf(fid, 'Snr_increment_step = 0\n');\r
37         fprintf(fid, 'Frame_error_rate_limit = -4\n');\r
38         fprintf(fid, 'Snr_init_value = %d\n',round(rand*7)-3);\r
39         fprintf(fid, 'Add_noise = 1\n');\r
40         seed = round(rand*2^25);\r
41         if(seed<1000)\r
42             seed = seed+1000;\r
43         end\r
44         fprintf(fid, 'c_model_seed = %d\n', seed);\r
45         fprintf(fid, 'Bit_width_of_integer_part = 4\n');\r
46         fprintf(fid, 'Bit_width_of_fractional_part = 2\n');\r
47         fprintf(fid, 'Minimum_number_of_frame_errors = 0\n');\r
48         fprintf(fid, 'Store_info_bits_to_file = 1\n');\r
49         fprintf(fid, 'Load_info_bits_from_file = 0\n');\r
50         fprintf(fid, 'Info_bits_file_name = infobits_file.txt\n');\r
51         fprintf(fid, 'Info_bits_file_includes_CRC= 1\n');\r
52         fprintf(fid, 'Initial_process_index =  0\n');\r
53         fprintf(fid, 'Store_coded_bits_to_file = 0\n');\r
54         fprintf(fid, 'Coded_bits_file_name = codedbits_file.txt\n');\r
55     fclose(fid);\r
56     ind = ind + 1;\r
57 end\r
58 fclose(fidL);\r