- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I need to involve the FIR function but the FFT core has real and imaginary data I/O Should i connect my input to the REAL input and IMAGINARY input drive to zero vilue? And what's about the output? Should i use only the REAL data out bus? Or do i need to involve both of them and calculate FFT_OUT=SQWRT(REAL^2 + IMAGINARY^2) ?Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The fft splits up signal information into two components (Re,Im) in the frequency domain as you have noticed. The amplitude and phase of signal components can only be derived from both Re/Im. But you can process the signal as a pair or may discard one of them depending on requirements.
I am not sure what you want to do, can you explain in more detail what input you are receiving and what you should output and where is that FIR going to fit?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
All i want is to feed A2D readings and get the amplitudes in frequency domain. I don't need any phase information, only the amplitudes.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In that case you already know what to do: A = sqrt(Re^2 + Im^2).
sqrt is a bit demanding in fpga but there are ips. You may just use A^2 then convert it in software.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanx.
And what's about the inputs? Should i connect the input to Re and zero value to the Im?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If your signal is only one real channel then naturally it has zero imaginary component and set imaginary input of your fft to zero.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanx,
I checked the results with Re^2 + Im^2 (no sqwr yet). I had entered sqware wave and expecting to see hign value at the fundamental frequency and its harmonics but still it seems strange...
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page