Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Audio signal signed or std_logic_vector

hello

i have already designed a digital voice recorder using the de2 the code that process the codec chip data is in the attachment

i want now to feed the audio data to to an FFT megafunction

my question is should the audio data be of signed data type or i keep it as it is ? do i have to do any scaling on the data before it goes to the fft ?

thanks to any one who reply.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The FFT data is interpreted as signed, but uses std_logic_vector port type, as other aritmetic Megafunctions. No scaling of FFT input required.