This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA3XEVM: TDA3x EVE simulator, wrong negative wave FFT result

Part Number: TDA3XEVM

Hi All.

 

I have few questions, regarding EVE simulator:

  1. Once I provide to EVE negative sinusoidal signal

input_signal = sine();

I got a lot of noise and I did not get proper FFT result (have a look at attached files for positive and negative signals).

  1. I have different amplitude as well.
  2. The scaling factors are zeros and I generate the signal with next Matlab code:

 

bits = 13;

Fs = 512;

noise_ratio = 0;

 

sine = dsp.SineWave();

sine.Amplitude = power(2,bits);

sine.Frequency = -11;

sine.SamplesPerFrame = Fs;

sine.SampleRate = Fs;

sine.PhaseOffset = 0*pi;

sine.Method = 'Trigonometric function';

sine.ComplexOutput = true;

sine.OutputDataType = 'single';

Additional information:

When i try to debugging, i found, that reference function:

"vcop_fft_npt_32inter_mixed_radix_cn" 

found proper frequencies.

Please advise,

Regards,

Sergey.

  • Hi Sergey,

    May be there is an issue with the EVE implementation since vcop_fft_npt_32inter_mixed_radix_cn() is correct. What are the FFT parameters you used to initialize the FFT applet ? So I can reproduce the issue with your configuration ?

    regards,

    Victor

  • Hi Victor.

    Thanks for your reply.

    My configuration are:

    inputData = "../testvecs/input2.txt"
    outputData = ""
    dopplerCorrectionBuf =
    enable32bitsIntermResults = 1
    enableDopplerCorrection = 0
    dopplerCorrectionScaling = 0
    numPoints = 512
    numLines = 1
    scaleFactor = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    enableOverflowDetection = 0
    randSeed = 1
    numIter = 1

    Please find in attachment my input file.

    Regards,

    Sergey.

    8192
    0
    8117
    -1102
    7895
    -2185
    7529
    -3228
    7027
    -4212
    6396
    -5119
    5649
    -5933
    4799
    -6639
    3862
    -7225
    2854
    -7679
    1795
    -7993
    703
    -8162
    -402
    -8182
    -1499
    -8054
    -2570
    -7779
    -3593
    -7362
    -4551
    -6811
    -5426
    -6137
    -6203
    -5351
    -6867
    -4467
    -7405
    -3503
    -7809
    -2474
    -8071
    -1401
    -8186
    -302
    -8153
    803
    -7970
    1893
    -7643
    2948
    -7177
    3950
    -6580
    4880
    -5863
    5721
    -5040
    6458
    -4125
    7078
    -3135
    7568
    -2088
    7921
    -1003
    8130
    101
    8191
    1202
    8103
    2282
    7868
    3320
    7489
    4297
    6974
    5197
    6333
    6002
    5576
    6698
    4717
    7272
    3773
    7713
    2760
    8014
    1697
    8170
    603
    8177
    -502
    8035
    -1598
    7746
    -2665
    7317
    -3683
    6755
    -4634
    6070
    -5501
    5274
    -6268
    4383
    -6921
    3411
    -7448
    2378
    -7839
    1301
    -8088
    201
    -8190
    -903
    -8142
    -1990
    -7947
    -3042
    -7606
    -4038
    -7128
    -4960
    -6520
    -5793
    -5793
    -6519
    -4960
    -7128
    -4038
    -7606
    -3042
    -7946
    -1991
    -8142
    -903
    -8190
    201
    -8088
    1301
    -7839
    2378
    -7448
    3411
    -6921
    4383
    -6268
    5274
    -5501
    6070
    -4635
    6755
    -3683
    7317
    -2665
    7746
    -1598
    8035
    -502
    8177
    603
    8170
    1697
    8014
    2760
    7713
    3773
    7272
    4717
    6698
    5575
    6002
    6332
    5197
    6974
    4297
    7489
    3320
    7868
    2282
    8103
    1202
    8191
    101
    8130
    -1003
    7921
    -2088
    7568
    -3135
    7078
    -4125
    6458
    -5040
    5721
    -5863
    4880
    -6580
    3950
    -7177
    2948
    -7643
    1893
    -7970
    803
    -8153
    -301
    -8186
    -1400
    -8071
    -2474
    -7810
    -3502
    -7406
    -4467
    -6867
    -5351
    -6203
    -6137
    -5427
    -6811
    -4551
    -7362
    -3593
    -7779
    -2570
    -8054
    -1500
    -8182
    -402
    -8162
    703
    -7993
    1795
    -7679
    2854
    -7225
    3862
    -6639
    4799
    -5933
    5649
    -5119
    6396
    -4212
    7026
    -3228
    7529
    -2185
    7895
    -1103
    8117
    0
    8192
    1102
    8117
    2185
    7895
    3228
    7529
    4211
    7027
    5119
    6396
    5933
    5649
    6639
    4799
    7225
    3862
    7679
    2854
    7993
    1795
    8162
    703
    8182
    -402
    8054
    -1499
    7779
    -2570
    7362
    -3593
    6811
    -4551
    6137
    -5426
    5351
    -6203
    4467
    -6867
    3503
    -7405
    2474
    -7809
    1401
    -8071
    302
    -8186
    -803
    -8153
    -1893
    -7970
    -2948
    -7643
    -3950
    -7177
    -4880
    -6580
    -5721
    -5863
    -6458
    -5040
    -7078
    -4125
    -7568
    -3135
    -7921
    -2088
    -8130
    -1003
    -8191
    100
    -8103
    1202
    -7868
    2282
    -7489
    3320
    -6974
    4297
    -6333
    5197
    -5576
    6002
    -4717
    6698
    -3773
    7272
    -2760
    7713
    -1697
    8014
    -603
    8170
    502
    8177
    1598
    8035
    2665
    7746
    3683
    7317
    4634
    6755
    5501
    6070
    6268
    5274
    6921
    4383
    7448
    3411
    7839
    2378
    8088
    1301
    8190
    201
    8142
    -903
    7947
    -1990
    7606
    -3042
    7128
    -4038
    6520
    -4960
    5793
    -5793
    4960
    -6519
    4038
    -7128
    3042
    -7606
    1991
    -7946
    903
    -8142
    -201
    -8190
    -1301
    -8088
    -2378
    -7839
    -3411
    -7448
    -4383
    -6921
    -5274
    -6268
    -6070
    -5501
    -6755
    -4635
    -7317
    -3683
    -7746
    -2665
    -8035
    -1598
    -8177
    -502
    -8170
    603
    -8014
    1697
    -7713
    2760
    -7272
    3773
    -6698
    4717
    -6002
    5575
    -5197
    6332
    -4298
    6974
    -3320
    7489
    -2282
    7868
    -1202
    8103
    -101
    8191
    1003
    8130
    2088
    7921
    3135
    7568
    4125
    7078
    5040
    6458
    5863
    5721
    6580
    4880
    7177
    3950
    7643
    2948
    7970
    1893
    8153
    803
    8186
    -301
    8071
    -1400
    7810
    -2474
    7406
    -3502
    6867
    -4467
    6203
    -5351
    5427
    -6137
    4551
    -6811
    3593
    -7362
    2570
    -7778
    1500
    -8054
    402
    -8182
    -703
    -8162
    -1795
    -7993
    -2854
    -7679
    -3862
    -7225
    -4799
    -6639
    -5649
    -5933
    -6396
    -5119
    -7026
    -4212
    -7529
    -3228
    -7895
    -2185
    -8117
    -1103
    -8192
    0
    -8117
    1102
    -7895
    2185
    -7529
    3227
    -7027
    4211
    -6396
    5119
    -5649
    5933
    -4799
    6639
    -3862
    7225
    -2854
    7679
    -1795
    7993
    -703
    8162
    402
    8182
    1499
    8054
    2570
    7779
    3593
    7362
    4551
    6811
    5426
    6137
    6203
    5351
    6867
    4467
    7405
    3503
    7809
    2474
    8071
    1401
    8186
    302
    8153
    -803
    7970
    -1893
    7643
    -2948
    7177
    -3950
    6580
    -4880
    5863
    -5721
    5040
    -6458
    4125
    -7078
    3135
    -7568
    2088
    -7921
    1003
    -8130
    -100
    -8191
    -1202
    -8103
    -2281
    -7868
    -3320
    -7489
    -4297
    -6974
    -5197
    -6333
    -6002
    -5576
    -6698
    -4717
    -7271
    -3773
    -7713
    -2760
    -8014
    -1697
    -8170
    -603
    -8177
    502
    -8035
    1598
    -7746
    2665
    -7317
    3683
    -6755
    4634
    -6070
    5501
    -5274
    6268
    -4383
    6921
    -3412
    7448
    -2378
    7839
    -1302
    8088
    -201
    8190
    903
    8142
    1990
    7947
    3042
    7606
    4038
    7128
    4960
    6520
    5793
    5793
    6519
    4960
    7128
    4038
    7606
    3042
    7946
    1991
    8142
    903
    8190
    -201
    8088
    -1301
    7839
    -2378
    7448
    -3411
    6921
    -4383
    6268
    -5274
    5502
    -6070
    4635
    -6755
    3683
    -7317
    2665
    -7746
    1598
    -8035
    503
    -8177
    -602
    -8170
    -1696
    -8014
    -2760
    -7713
    -3773
    -7272
    -4717
    -6698
    -5575
    -6002
    -6332
    -5197
    -6974
    -4298
    -7489
    -3320
    -7868
    -2282
    -8103
    -1202
    -8191
    -101
    -8130
    1003
    -7922
    2088
    -7568
    3135
    -7078
    4125
    -6458
    5040
    -5721
    5863
    -4880
    6580
    -3950
    7177
    -2948
    7643
    -1893
    7970
    -803
    8153
    301
    8186
    1400
    8071
    2474
    7810
    3502
    7406
    4467
    6867
    5351
    6203
    6137
    5427
    6811
    4551
    7362
    3593
    7778
    2570
    8054
    1500
    8182
    402
    8162
    -703
    7993
    -1795
    7679
    -2854
    7225
    -3862
    6639
    -4799
    5933
    -5649
    5119
    -6396
    4212
    -7026
    3228
    -7529
    2185
    -7895
    1103
    -8117
    0
    -8192
    -1102
    -8117
    -2185
    -7895
    -3227
    -7529
    -4211
    -7027
    -5119
    -6396
    -5933
    -5649
    -6639
    -4799
    -7225
    -3862
    -7679
    -2854
    -7993
    -1795
    -8162
    -703
    -8182
    402
    -8054
    1499
    -7779
    2569
    -7362
    3593
    -6812
    4551
    -6137
    5426
    -5351
    6203
    -4467
    6867
    -3503
    7405
    -2474
    7809
    -1401
    8071
    -302
    8186
    803
    8153
    1893
    7970
    2948
    7643
    3950
    7177
    4880
    6580
    5721
    5863
    6458
    5040
    7078
    4125
    7568
    3135
    7921
    2088
    8130
    1003
    8191
    -100
    8103
    -1202
    7868
    -2281
    7489
    -3320
    6974
    -4297
    6333
    -5197
    5576
    -6002
    4717
    -6698
    3773
    -7271
    2760
    -7713
    1697
    -8014
    603
    -8170
    -502
    -8177
    -1598
    -8035
    -2665
    -7746
    -3683
    -7317
    -4634
    -6755
    -5501
    -6070
    -6268
    -5274
    -6921
    -4383
    -7448
    -3412
    -7839
    -2378
    -8088
    -1302
    -8190
    -201
    -8142
    903
    -7947
    1990
    -7606
    3042
    -7128
    4038
    -6520
    4960
    -5793
    5792
    -4961
    6519
    -4038
    7128
    -3042
    7606
    -1991
    7946
    -903
    8142
    201
    8190
    1301
    8088
    2378
    7839
    3411
    7448
    4383
    6921
    5274
    6268
    6070
    5502
    6755
    4635
    7317
    3683
    7746
    2665
    8035
    1598
    8177
    503
    8170
    -602
    8014
    -1696
    7713
    -2760
    7272
    -3773
    6698
    -4717
    6002
    -5575
    5197
    -6332
    4298
    -6974
    3320
    -7489
    2282
    -7868
    1202
    -8103
    101
    -8191
    -1003
    -8130
    -2088
    -7922
    -3135
    -7569
    -4125
    -7078
    -5040
    -6458
    -5863
    -5721
    -6580
    -4880
    -7177
    -3950
    -7643
    -2948
    -7970
    -1893
    -8153
    -803
    -8186
    301
    -8071
    1400
    -7810
    2474
    -7406
    3502
    -6867
    4467
    -6203
    5351
    -5427
    6137
    -4551
    6811
    -3593
    7362
    -2570
    7778
    -1500
    8054
    -402
    8182
    703
    8162
    1795
    7993
    2854
    7679
    3861
    7225
    4799
    6639
    5649
    5933
    6396
    5119
    7026
    4212
    7529
    3228
    7895
    2185
    8117
    1103

  • Hi Sergey,

    Thanks. I'll try in a couple of days. In the meantime, can you test with enable32bitsIntermResults= 0 ?

    regards,

    Victor

  • Hi Sergey,

    Could you test wih enable32bitsIntermResults= 0 ?

    regards,

    Victor

  • Hi Sergey,

    I apologize, I haven't had time to look at the issue yet. In the meantime, did you try enable32bitsIntermResults= 0 ?

    regards,

    Victor

  • Dear Victor.

    Thanks for your time.

    Finally i compiled the project with VS2012 and all there is no issue anymore.

    Thanks,

    Regards,

    Sergey.