Signal Processing Architectures


Signal Processing Architectures

Simon
Welcome to our introduction to signal processing architectures. Anna, let’s begin with the basic question: what does “architecture” mean in this context?

Anna
Architecture means the structural organization of a system. Think about designing a building: it is not only deciding how many bedrooms, kitchens, or bathrooms there should be, but also deciding where each room goes and how large each one should be. A signal processing architecture works in a similar way by organizing the hardware and software used to process signals.

Simon
So the point is not simply to connect components in any convenient order. A system might work that way, just as a building might technically work with rooms placed randomly, but a well-designed architecture makes better use of resources.

Anna
Exactly. Signal processing architectures organize components for tasks such as filtering, compression, enhancement, and signal analysis. Good design can improve efficiency in terms of cost and space, and it can also make the system scalable, meaning that the same design can be reproduced to create multiple signal processors.

Simon
A video recorder is a useful example. Its architecture should compress video effectively so that the recorded video has good quality while using resources, storage, and cost efficiently.

Anna
Let’s trace the general signal processing chain. It usually begins with a sensor, followed by signal conditioning, an analog-to-digital converter, digital processing, memory, and sometimes digital-to-analog conversion and an actuator.

Simon
What does the sensor do first?

Anna
A sensor captures a physical quantity from the real world and converts it into an electrical quantity, typically a current or a voltage. However, that raw electrical signal may not yet be suitable for an analog-to-digital converter, or ADC.

Simon
Because an ADC generally accepts a voltage, not a current?

Anna
Right. If the sensor produces current, an I-to-V converter, such as an op-amp circuit, can convert that current into voltage. The voltage may also be extremely small, perhaps in microvolts or millivolts, while the ADC may expect a range such as zero to 3.3 volts or zero to 5 volts. Without amplification, the signal could be interpreted almost entirely as logic zero.

Simon
And signal conditioning handles more than just current-to-voltage conversion and amplification.

Anna
Yes. Signal conditioning modifies the analog signal so that its voltage and frequency range are appropriate for digital conversion. It can include amplification, conversion between current and voltage, and an anti-aliasing filter. The filter is important when the signal must satisfy the Nyquist sampling requirement.

Simon
Once the signal has been conditioned, it goes to the ADC. Is the ADC always a separate component?

Anna
No. An ADC can be external to the signal processor, or it can be integrated into the processor or another board. Its job is to convert the conditioned analog signal into a digital signal stream.

Simon
Then the digital signal can be processed in many different ways.

Anna
Exactly. The processing might involve filtering, compression, enhancement, or another desired operation. After processing, the result can be stored in memory, transmitted to a digital-to-analog converter, or sent through another pathway depending on the application.

Simon
You mentioned that data can sometimes bypass the processor on its way to memory.

Anna
That is done using direct memory access, or DMA. DMA allows data to move directly from the ADC to memory while bypassing the processor. In a video recorder, for example, processed video may be stored in memory in a compressed format.

Simon
And when an analog output is needed, the digital result is sent to a DAC.

Anna
Correct. The digital-to-analog converter changes the digital output, often represented as y of n, into an analog electrical signal. An actuator can then convert that electrical quantity into a physical quantity or action. A speaker can produce sound, and a robotic arm can perform movement.

Simon
An actuator could also be very simple, such as an LED.

Anna
Yes. For example, if a signal processing system detects an anomaly, it might activate an LED or sound an alarm through a speaker.

Simon
Now let’s compare the major types of signal processing architectures. What is a centralized architecture?

Anna
A centralized architecture uses one system to perform the signal processing task. Since one processing unit carries the entire workload, this approach is generally suitable when the algorithm is not very complex, such as basic filtering or convolution.

Simon
What changes when the algorithm becomes more demanding or the signal is very long?

Anna
A distributed architecture can divide the work among several processing units. Those units may work in series or in parallel, using a divide-and-conquer approach to handle the overall task.

Simon
Parallel architecture sounds related, but it emphasizes simultaneous operation.

Anna
Exactly. A parallel architecture may be centralized or distributed, but its main purpose is to use multiple processing units at the same time. Multi-core processors, graphics processing units, or GPUs, and FPGAs can support this approach. GPUs have become especially popular as deep learning algorithms have grown.

Simon
What are the examples of parallel processing mentioned here?

Anna
One is SIMD, or single instruction, multiple data. A single instruction, such as a convolution operation, can be applied to multiple data items in parallel. Another is MIMD, or multiple instruction, multiple data, in which multiple instructions operate on multiple data items.

Simon
And pipelined architecture is another way to improve processing, even though the stages themselves are arranged serially.

Anna
Right. In pipelining, a task is divided into stages that operate in an overlapped fashion. While one instruction is being processed in stage one, another instruction can be handled by stage two. The overall flow is serial through the stages, but several instructions can be in progress at once.

Simon
Then hybrid architecture combines several of these ideas.

Anna
Yes. A hybrid architecture can combine centralized, distributed, parallel, and pipelined capabilities. It is useful for extremely complex tasks, including cloud-based signal processing and advanced communication systems.

Simon
Let’s return to the main components and look more closely at sensors. Are sensors always connected to a separate signal-conditioning circuit and ADC?

Anna
Not always. Many modern sensors are digital sensors, and they already include signal conditioning and ADC functionality. These sensors are commonly compatible with microcontroller boards such as Arduino or ESP boards. In other cases, the ADC is separate and must be interfaced independently, or it can be integrated into a DSP or another processing unit.

Simon
That brings us to the three basic stages of an ADC: sampling, quantization, and encoding.

Anna
Sampling discretizes the time axis of an analog signal. In a uniform sampling system, samples are taken at a fixed rate, described by the sampling frequency or sampling rate in hertz. Some ADCs can use non-uniform sampling, but uniform sampling is the usual simplifying assumption.

Simon
Quantization then discretizes the amplitude axis.

Anna
Correct. Quantization depends on the number of bits and the input voltage range. A two-bit ADC has 2 to the power of 2, or four, possible levels. If its input range is zero to 3.3 volts, that range is divided into four quantization levels, and each level is assigned a value such as 0, 1, 2, or 3.

Simon
The exact mapping between voltage intervals and codes does not have to be the same in every ADC, but the key idea is that the continuous amplitude range becomes a finite set of levels.

Anna
Exactly. Encoding is the final stage. The quantized level is represented as a sequence of bits. For example, a four-bit ADC can represent values from 0 through 15, giving 16 possible levels, from 0000 through 1111.

Simon
So the main specifications to check when selecting an ADC are sampling rate, bit size, and input voltage range.

Anna
Yes. Consider a three-bit ADC with an input range from zero to five volts. It has eight possible levels because 2 cubed equals 8. The quantization step size is the voltage range divided by the number of levels: five divided by eight, or 0.625 volts.

Simon
That means an analog value is assigned to one of the available levels according to the interval in which it falls.

Anna
Right. A value within the first interval may map to code zero, while higher intervals map to higher codes. Finally, those levels are stored in registers made from flip-flops, where each bit can hold a high or low state. With three bits, there are eight possible binary combinations, and the level corresponding to five could, in the example, be represented by 111.

Simon
And increasing the bit size gives a finer approximation of the original analog signal.

Anna
Exactly. A four-bit quantizer provides 16 possible values instead of the eight values provided by a three-bit quantizer, so it can represent amplitude with finer steps.

Simon
Now let’s discuss why memory is essential in a signal processing system.

Anna
Memory stores program instructions, input and output data, intermediate results, and buffered data. Program code is typically stored in ROM or flash memory, which is non-volatile, so the instructions remain available. Variable input data, output data, and temporary processing information are commonly held in RAM.

Simon
The buffer is especially important when data arrives faster than it can be processed.

Anna
Yes. If a signal arrives at 100 samples per second but the processor handles only 80 samples per second, the remaining 20 samples need to wait in a buffer. Memory can also hold intermediate results, much as someone writes down partial calculations instead of trying to remember every step of a long arithmetic problem.

Simon
How do primary, secondary, internal, and external memory fit into this picture?

Anna
Primary memory is typically internal, although it can also be external, and it is used directly during processing. Secondary memory can be internal or external as well. Internal memory is located within the microcontroller or DSP, such as register memory, while external memory refers to RAM or ROM connected to the processor.

Simon
Next comes the processing unit itself. One advantage of digital signal processing is that changing the program can change the signal processing operation.

Anna
That is an important distinction from an analog signal processing system. A program can be written on a computer and transferred through a cable or another medium into the processor’s program memory. The same processing hardware can then perform a different operation when its program changes.

Simon
Let’s distinguish microprocessors, microcontrollers, DSPs, and FPGAs.

Anna
A microprocessor contains major operational units such as an arithmetic logic unit, or ALU, a control unit, registers, and some internal memory. It generally needs external RAM and ROM to operate, as is common in computers. This makes the memory size easier to change for a particular application, but it can increase the physical size of the system.

Simon
A microcontroller integrates more of the system into one integrated circuit.

Anna
Correct. In a microcontroller, processing elements and memory are included in the same IC. A DSP, or digital signal processor, goes further by including specialized hardware designed for signal processing, such as barrel shifters and multiply-accumulate, or MAC, hardware.

Simon
The FPGA follows a different principle from a programmable processor.

Anna
Yes. In a processor, changing a filter generally means changing the program code stored in program memory while the hardware architecture stays the same. In an FPGA, reprogramming changes the hardware connections themselves. This is done using a hardware description language, or HDL, which describes how the FPGA’s hardware should be configured.

Simon
So “field programmable” refers to the fact that the hardware can be configured after manufacturing, in the field.

Anna
Exactly. The FPGA’s overall resources are available for configuration, and HDL programming determines how they are connected for a particular task.

Simon
What design goals are especially important for DSPs?

Anna
There are three major goals in the lecture: real-time processing, high throughput, and low latency. Real-time processing means completing work within the required time constraint. For example, audio and video must remain synchronized during video recording, and a photograph must be captured while the intended subject is still in position.

Simon
Throughput and latency are related, but they measure different things.

Anna
Throughput is the rate at which data or instructions are processed. If a processor executes one million instructions per second, its throughput is one MIPS. Latency is the delay between issuing a command and the beginning of the corresponding operation, such as the time between sending a load command and the processor starting to load the data.

Simon
That latency can come from several sources, including signal paths and the time required to decode instructions.

Anna
Exactly. A DSP tries to keep that delay low while also processing a large amount of data quickly.

Simon
Which hardware and architectural techniques help increase throughput and reduce latency?

Anna
A dedicated multiplier provides specialized hardware for fast multiplication. Split ALUs allow two or more arithmetic logic units to work simultaneously. Other techniques include Harvard architecture, parallelism, pipelining, and a barrel shifter.

Simon
We have already discussed parallelism and pipelining, but explain the barrel shifter.

Anna
A barrel shifter is similar to a circular shifter, but it can shift multiple bits in a single clock cycle rather than shifting only one bit at a time. This kind of specialized hardware supports fast operations that are useful in signal processing.

Simon
The lecture also gives examples of real-world DSP families.

Anna
Examples include Texas Instruments’ TMS320 series, Analog Devices’ ADSP series, NXP Freescale DSPs, and Qualcomm Hexagon DSPs.

Simon
Let’s finish by comparing Harvard and Von Neumann architectures, since this distinction is central to DSP design.

Anna
In Harvard architecture, program memory and data memory are separate. Program memory contains instructions such as move, call, load, and add, while data memory contains information from sensors or data generated during processing. The architecture uses separate paths for instructions and data, including separate data and address buses, allowing instruction and data access in parallel.

Simon
And in Von Neumann architecture?

Anna
Von Neumann architecture uses one shared memory for both instructions and data, with a shared data bus and address bus. The data bus is bidirectional, allowing data to move to and from the processor, while the address bus carries addresses from the processor. Because instructions and data share the same path, access can be slower.

Simon
The shared-memory design is simpler, though.

Anna
Yes. Von Neumann architecture is naturally simpler and less complex in design, but it can suffer from the limitations of a shared bus. Harvard architecture is more complex, yet its separate memories and buses support faster, parallel access. A simple analogy is one shelf where shirts and jeans share space versus separate shelves where each can be reached more easily.

Simon
So the overall picture is a carefully organized chain: a sensor captures a physical signal, conditioning prepares it, the ADC samples, quantizes, and encodes it, a processor performs the required operation, memory stores programs and data, and a DAC and actuator can recreate or act on the result.

Anna
And the architecture determines how efficiently all of those functions work together. Centralized, distributed, parallel, pipelined, and hybrid designs serve different levels of complexity, while DSP-specific features such as dedicated multipliers, split ALUs, Harvard memory organization, parallelism, pipelining, and barrel shifters help achieve real-time operation, high throughput, and low latency.

Ask anything
We've read this whole study set, so questions about it get the best answers.