# What kind of hardware implements Fourier transform?

I looked around online but I found nothing relevant. It is very difficult for an electronic device to decompose a signal in different frequencies.

How this is done at the bare metal level?

Any suggested source or comment will be very helpful

• A lot of the time you don't need FT to do signal processing, especially filtering. E.g. you can use passive or active filters which depend on the properties of capacitors and inductors. Even in the digital domain, when working with values out of ADC, you can go without FT for some tasks (e.g. see exponential smoothing). Mar 1, 2019 at 7:14
• "What kind of..." questions are too broad to fit the stack exchange model. Typically when one specifically mentions a Fourier transform something capable of computation is implied (approximately convolution ie delay, multiply, and accumulate, in parallel or with storage and logic for iterative sequence), but the hardware requirements depend on the application requirements, and as many are pointing out there are alternatives to numeric (or at least digital) computation. Mar 1, 2019 at 18:25
• A lens does (not an answer since it is not an electronic device but then again neither are vibrating reeds). Mar 1, 2019 at 21:12
• en.wikipedia.org/wiki/Cooley%E2%80%93Tukey_FFT_algorithm Mar 2, 2019 at 7:28

# Devices using the Fourier Transform

It is very difficult for an electronic device to decompose a signal in different frequencies.

It's not.

There's actually quite a few devices that do that, explicitly.

First of all, you'll have to make a difference between the continuous Fourier transform (which you probably know as $$\\mathcal F\left\{x(t)\right\}(f)=\int_{-\infty}^{\infty} x(t)e^{j2\pi f t}\,\mathrm dt\$$) and the Digital Fourier Transform (DFT), which is what you can do with a sampled signal.

For both, there's devices that implement these.

## Continuous Fourier Transform

There's little in the ways of actual need for this in digital electronics – digital signals are sampled, so you'd use the DFT.

In optics and photonics you'll notice that there's an actual chance to get perfectly periodic things for a "large" (read as: nearly as infinite as the integral above) length. Effectively, an acousto-optic element can be excited with one or multiple tones, and it will have the same correlating effects as the integral above. You don't have to look at 2018's Physics Nobel Prize winners to find an example of Fourier Optics.

## Discrete Fourier Transform

This is really all over the place; it's such a standard processing step that as a communication engineer, we often even forget where it is.

So, this list is far less than complete; just examples:

• Equalizers: It's pretty easy building a digital audio equalizer with a DFT. Typically, the zero-forcing equalizer type for communication systems uses a DFT to find the frequency domain representation of the channel necessary to be "removed", inverts that and uses the IDFT to get back that back to time domain to be used as taps in a FIR filter.
• Antenna Arrays / Beamsteering: If you have an array of antennas in fixed distance from each other, you can steer the beam of these antennas, by calculating the DFT of the "directional vector" you'd like to achieve and use the result as complex coefficients to be multiplied with the transmit signal that you distribute to these antennas. Real-world MIMO systems do that.
• Direction Finding: What works in transmit direction works exactly the same, but reverse, in receive direction: Get a signal for each of your antennas in your array, find the complex factors between these signals, do an IDFT, get a vector containing the info how power came from which direction. Easy! And done for estimation where aircraft are, where Wifi communication partners are, submarines (though there it's not antennas but underwater microphones)…
• Channelization: Satellites in space are expensive, so multiple TV programs need to be uplinked to one satellite. You can use a DFT (especially in an Polyphase Filterbank) to put multiple channels in one uplink, or to isolate individual channels from one wideband signal. That's not a domain of TV; it happens in audio processing, medical imaging, ultrasonic analysis, Radio broadcasting…)
• Data Encoding for multicarrier systems: To combat the problems of wide channels (which you need if you want to transport many bits per second), namely the need for complex equalizers, you'd want to chop up your channel in many small channels (see "channelization" above). However, you can understand the DFT alone as Filterbank for frequency-shifted time-domain-rectangular filters. The nice thing about that is that these channels are very tightly packed. The other nice thing is that the convolution with the channel reduces to a point-wise multiplication which is super simple to revert. We call that method OFDM, and all Wifi, LTE, 5G, WiMax, ATSC, DVB-T, Digital Audio Broadcasting, DSL, and many more systems use that.
• Efficient Filtering: A FIR filter is a convolution with the filter impulse response in time domain. As such, it uses a lot of operations per output sample – it's very computationally intense. You can greatly reduce that effort when you implement fast convolution, which is based on DFT'ing sections of input samples, mutliplying them with the DFT of the impulse response in frequency domain, overlapping with previous segments, and back-transformation to time domain. That's so handy that it's used in almost all systems that have long FIR filters (and "long" might start with so benign numbers as "16 taps").
• Radar: Classical automotive radars use self-modulating FMCW radars; to get a picture of both the relative speed and distance of reflectors observed by that, you typically do a two-dimensional DFT (which really is just DFT'ing all columns of a matrix and afterwards all rows of the result).
• Audio and Image/Video Compression: Though JPEG uses the Discrete Cosine Transform, not the DFT itself, there's ample of codecs that mechanism which at least use significant parts of a DFT.

Note that the above list only contains things that do DFTs during operation. You can be 100% sure that during design of anything remotely related to RF, especially antenas, mixers, amplifiers, (de)modulators, a lot of Fourier Transforms / Spectral analysis was involved. Same goes for audio device design, any high-speed data link design, image analysis…

# How is it done?

I'll just address the DFT here.

Usually, that's implemented as an FFT, Fast Fourier Transform. That's one of the most important algorithmic discoveries of the 20th century, so I will spare but few words on it, because there's literally thousands of articles out there that explain the FFT.

You go in and look at the $$\e^{j2\pi \frac nN k}\$$ multipliers of a DFT. You'll notice that these can basically be understood as $$\{e^{j2\pi \frac 1N k}}^n=W^n\$$; and there you have your twiddle factor. Now you avoid calculating coefficients that you've already calculated, and just swap a sign where necessary.

That way, you can reduce the complexity of a DFT from the $N^2$ (which would be the complexity if you implemented the DFT as the naive sum) to something in the order of $$\N\log N\$$ – a huge win, even for relatively small $$\N\$$.

It's relatively straightforward to implement that in hardware, if you can get your whole input vector at once – you get $$\\log N\$$ as a combinatorial depth and fixed coefficients at every step. The trick is knowing how (whether) to pipeline the individual layers, and how to use the specific hardware type you have (ASIC? FPGA? FPGA with hardware multipliers?). You can basically piece together $$\N=2^l\$$-length transform only from what we call Butterflies, which you'll recognize once you read about the FFT.

In software, the principle is the same, but you need to know how to multi-thread very large transforms, and how to access memory as fast as possible by utilizing your CPU caches optimally.

However, for both hardware and software, there's libraries that you'd just use to calculate the DFT (FFT). For Hardware, that usually comes from your FPGA vendor (e.g. Altera/Intel, Xilinx, Lattice…) , or a large ASIC design tool company (Cadence) or your ASIC house.

• Impressive dedication to your art, agree that 'long' is O(16) for FIR filters. Mar 1, 2019 at 10:35
• :) thank you! Seen you write far more impressive answers than this, though :) Mar 1, 2019 at 11:28
• While this is a very detailed answer, and will provide an accurate FFT of an incoming signal, it does not answer the question. This is a digital process applied to an input signal, it is not a solution implemented in hardware (other than the AD converter on the front end). Mar 1, 2019 at 15:09
• Jennifer is right. You should discuss analogue DFT or at least clarify that DFT means discrete FT, but not necessarily digital FT. Mar 1, 2019 at 15:52
• Page 43 (pdf numbering) in this proceedings discusses a FIR based on analogue FFT: imagesensors.org/Past%20Workshops/Marvin%20White%20Collection/… Mar 1, 2019 at 19:38

You can't get much more "bare metal" and "hardware" than a set of vibrating reeds.

https://www.stichtco.com/search?q=reed

So what hardware does a fourier transform? a bunch of resonant systems can do that.

• huh, fancy. My father told me of similar devices they used at uni for frequency analysis of vibrating machines. Mar 1, 2019 at 11:28
• This is roughly how your ears work, too, see cochlea.eu/en/cochlea/function
– zwol
Mar 1, 2019 at 13:58
• This link is broken now. Are you able to update it? Jan 10, 2021 at 19:23

Surface Acoustic Wave Devices were used as analog electro-mechanical devices to perform several signal processing tasks. Most papers are paywalled.

Chapter 16 of Colin Campbell's 1989 book Surface Acoustic Wave Devices and their Signal Processing Applications

Publisher Summary

This chapter presents fast real-time Fourier transform techniques using SAW linear frequency modulated (FM) chirp filters with processing times of only a few microseconds. SAW based techniques have applications to sonar, radar, spread spectrum, and other communications technologies requiring the fast analysis or filtering of complex signals. With SAW-based Fourier transform systems, this is carried out in the receiver intermediate-frequency (IF) stages. SAW linear FM chirp filters can be configured to affect a number of Fourier transform manipulations. Three of these are (1) single-stage Fourier transformers for spectrum or network analysis, (2) two-stage Fourier transform processors for cepstrum analysis, and (3) two-stage Fourier transform processors for real-time filtering. SAW-based Fourier transform processors for the spectral analysis of signals, known as compressive receivers, are available in a wide range of configurations to provide spectral resolutions over analytic bandwidths up to 1 GHz. The chapter also discusses the use of bilinear mixers in a SAW Fourier transform processor.

This can be done on the - literally - bare metal level using the Harmonic Analyzer:

And sorry to give a link-only answer, but this one you really have to see by yourself.

• yep, the short series is worth a watch.
– uhoh
Mar 3, 2019 at 16:33
• This should be the correct answer. Sep 13, 2020 at 6:46

A Fourier transform on a discrete sampled function is a change of basis functions from a series of (typically) times-of-sample values to an equivalent series of frequency-component values. It is a linear transformation (the Fourier transform of a sum of two series is the sum of the Fourier transforms of the two series), so is identical to a matrix operating on a vector (the time-of-sample series).

A matrix of rank N operating on a vector with N components generates a second vector with N components by doing N^2 multiplies, and (N^2 - N) additions.

Okay, so now how the metal does this:

There's a gizmo called a 'harmonic analyzer' which multiplies and accumulates one frequency (basically one row of the matrix), which is a kind of analog computer. It involves plotting the function input on a graph paper, connecting a polar planimeter (mechanical integrator) and linkage (mechanical multiplier) and tracing the curve gives you... one element of the output. Using it isn't too bad, but for a 1024-element transform, you have to do the operation... 1024 times. This is how tide tables were calculated, though, a century ago. see Mathematical Instruments article here, page 71

Then there's the manual method, using slide rule and adding machine, which requires looking up the matrix elements in a table of sines/cosines, and that means you operate your slide rule, for a 1024-element sampling, over 2 million times.

A general-purpose computer can do the operation, too.

Some (digital signal processor, DSP) specialized CPU designs are made with accelerated multiply-accumulate hardware, which speeds things up. And, there's a very clever algorithm, the FFT, that gets around the problem of N samples requiring N^2 operations, by noting that a 4x4 matrix is a 2x2 matrix of 2x2 matrices; there's a way to take any composite number (a power of two, like '1024' is convenient) and use only on-the-order-of N* Log(N) operations instead of N^2. That means the 1024 inputs only requires 61,440 operations instead of 1,048,576.

The FFT doesn't simplify a general discrete Fourier transform, because it requires that the N value be nonprime (and almost always a power of two is used), but it can be hardware-supported in a variety of ways, so that the operations (multiply-accumulate) are the time-limiting step. One modern (2019) chip (ADBSP-561 from Analog DevicesMMAC column) can do 2400 such operations per microsecond.

That's basically what a spectrum analyzer does:

https://www.electronics-notes.com/articles/test-methods/spectrum-analyzer/realtime-spectrum-analyser.php

• No it's not what a spectrum analyzer does in general. Some (many) spectrum analyzers have an FFT mode, but even then, what the spectrum analyzer shows you is a PSD estimate, not a Fourier transform. Mar 1, 2019 at 8:26
• Answers that are mainly a link to another site to do not provide lasting value, as the link may be broken tomorrow. You should summarize the important content from the link in your own answer. Mar 1, 2019 at 12:49
• @MarcusMüller -- what is a "PSD estimate"? Mar 1, 2019 at 12:50
• @PeteBecker An estimate for the Power Spectral Density. The distribution of the expected power over frequencies for a signal that you have to consider random because you don't know it. The mathematically exact definition for a PSD is "Fourier Transform of the Autocorrelation Function of a stochastic process"; but for most cases, we just assume the stochastic process (==random signal) to be Weak-Sense stationary and hence FT(ACF) == expectation(FT²(Time signal)). Mar 1, 2019 at 13:00