1. Home
  2. Explore
  3. Engineering
  4. Signal Processing Architectures

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Signal Processing Architectures

Introduction to Signal Processing Architectures

Meaning and Purpose of a Signal Processing Architecture

A signal processing architecture is the structural organization of the hardware and software used to acquire, transform, store, analyze, and produce signals.

The idea is similar to the architecture of a building. Building architecture specifies:

  • Which rooms are needed

  • Where each room should be placed

  • How large each room should be

  • How the rooms should work together

In the same way, a signal processing architecture specifies:

  • Which processing components are required

  • How those components are connected

  • Where data should move

  • Which operations should occur in hardware or software

  • How memory, processors, converters, and peripherals should be arranged

A system may function even if its components are connected without careful planning. However, a well-designed architecture improves the system’s overall use of resources.

A signal processing architecture organizes hardware and software so that signal-processing tasks can be performed efficiently, reliably, and at the required speed.

Main Objectives of Architectural Design

Signal processing architectures are designed to optimize tasks such as:

  • Filtering

  • Compression

  • Signal enhancement

  • Signal analysis

  • Feature extraction

  • Communication and transmission

  • Storage and retrieval

  • Control of physical devices

An efficient architecture can be optimized according to several criteria:

  • Cost: The system should use affordable components and require minimal manufacturing or operating expense.

  • Physical space: Components should occupy as little space as practical.

  • Energy consumption: Important for battery-powered and embedded systems.

  • Processing speed: The architecture must complete operations within the required time.

  • Scalability: The design should be repeatable or expandable so that multiple copies or larger versions can be produced.

  • Signal quality: Processing should preserve or improve the useful information in the signal.

For example, a video-recording system may use a compression architecture that produces high-quality video while minimizing memory usage, processing cost, and transmission bandwidth.


General Signal Processing System

A typical signal processing system converts a physical phenomenon into an electrical signal, processes it, and may then convert the result back into a physical action.

The general signal flow is:

  1. Sensor

  2. Signal conditioning

  3. Analog-to-digital conversion

  4. Digital processing

  5. Memory and buffering

  6. Digital-to-analog conversion

  7. Actuator

Not every system contains every stage. For example, a system may store digital data without producing an analog output, or a sensor may already include signal conditioning and an ADC.

1. Sensors

A sensor detects a physical quantity and converts it into an electrical quantity.

Examples of physical quantities include:

  • Temperature

  • Pressure

  • Light intensity

  • Sound

  • Acceleration

  • Position

  • Motion

  • Force

The electrical output of a sensor is commonly a:

  • Voltage

  • Current

A sensor therefore provides the first electrical representation of a real-world signal.

2. Signal Conditioning

The raw sensor output is often not directly suitable for an ADC. Signal conditioning modifies the sensor signal so that it meets the voltage, frequency, and quality requirements of the conversion stage.

Signal conditioning may include:

  • Current-to-voltage conversion

  • Voltage amplification

  • Filtering

  • Offset adjustment

  • Noise reduction

  • Impedance matching

  • Protection from excessive voltage

Current-to-Voltage Conversion

Many ADCs measure voltage rather than current. If a sensor produces a current, an I-to-V converter is needed to convert the current into a voltage. An operational amplifier is one possible component for performing this conversion.

Amplification

A sensor may produce only a few microvolts or millivolts, while an ADC may accept an input range such as 000 to 3.33.33.3 volts or 000 to 555 volts.

If the signal is not amplified:

  • It occupies only a small portion of the ADC’s input range.

  • The ADC uses fewer of its available quantization levels.

  • Small changes in the physical signal may become difficult to distinguish.

  • The digital representation may effectively lose useful precision.

Amplification increases the signal level so that it makes better use of the ADC’s available input range.

Anti-Aliasing Filtering

Before sampling, the signal may contain frequency components that are too high for the chosen sampling rate. An anti-aliasing filter removes or attenuates those frequency components before conversion.

The sampling rate must satisfy the Nyquist condition for the highest relevant signal frequency:

fs≥2fmax⁡f_s \geq 2f_{\max}fs​≥2fmax​

where:

  • fsf_sfs​ is the sampling frequency

  • fmax⁡f_{\max}fmax​ is the highest frequency component that should be represented

In practical systems, the filter is placed before the ADC to reduce aliasing caused by frequencies above the usable range.

Signal conditioning is generally performed using analog circuits because it occurs before the signal becomes digital.

3. Analog-to-Digital Converter

An analog-to-digital converter, or ADC, converts the conditioned analog signal into a stream of digital values.

The ADC may be:

  • A separate external component

  • Integrated into a signal processor

  • Integrated into a microcontroller

  • Built into a sensor

The digital output can then be processed by a DSP, microcontroller, microprocessor, FPGA, or another digital system.

4. Digital Processing

The digital signal is processed according to the required application. Possible operations include:

  • Filtering

  • Convolution

  • Compression

  • Enhancement

  • Detection

  • Classification

  • Analysis

  • Transformation

  • Feature extraction

For example, a video-recording system may process the digital video and store a compressed version rather than storing the raw data.

5. Memory

Memory stores:

  • Program instructions

  • Input data

  • Output data

  • Intermediate results

  • Temporary signal samples

  • Buffered data

Data can sometimes be transferred directly from an ADC to memory using direct memory access, or DMA. DMA allows data to move between a peripheral and memory without requiring the processor to handle every individual transfer.

This can reduce processor workload and improve data-transfer efficiency.

6. Digital-to-Analog Converter

A digital-to-analog converter, or DAC, converts the processed digital signal back into an analog electrical signal.

The DAC is optional. It is needed when the final result must control or interact with an analog physical system.

Examples include:

  • Producing audio

  • Controlling a motor

  • Generating a waveform

  • Driving an analog instrument

  • Producing a control voltage

7. Actuators

An actuator converts an electrical signal into a physical action or physical quantity.

Examples include:

  • A speaker converting an electrical signal into sound

  • An LED producing light

  • A motor producing motion

  • A robotic arm changing position

  • An alarm producing an audible warning

For example, an anomaly-detection system may process sensor data and activate a speaker when an abnormal condition is detected.


Types of Signal Processing Architectures

Centralized Architecture

In a centralized architecture, one main processing unit performs the signal processing tasks.

Characteristics include:

  • A single primary processor

  • Simple communication between system components

  • Straightforward control

  • All computational responsibility placed on one unit

Centralized architecture is appropriate when:

  • The algorithm is relatively simple

  • The signal length is small

  • Processing requirements are modest

  • The cost and complexity of multiple processors are not justified

Examples include:

  • Basic filtering

  • Simple convolution

  • Low-complexity sensor processing

The main limitation is that the single processor can become a bottleneck as the signal size or algorithmic complexity increases.

Distributed Architecture

A distributed architecture divides processing among several processing units.

The units may operate:

  • In parallel

  • In series

  • On different parts of the same signal

  • On different stages of an overall algorithm

This resembles a divide-and-conquer strategy. A large task is divided into smaller tasks, and each processing unit handles one portion.

Distributed architecture is useful when:

  • The signal is very long

  • The algorithm is computationally complex

  • The workload can be divided into independent parts

  • Reliability or modularity is important

  • Processing must occur at multiple physical locations

Compared with centralized architecture, distributed processing can reduce the workload assigned to any one processor.

Parallel Architecture

A parallel architecture uses multiple processing units that operate simultaneously.

Parallel systems may be:

  • Centralized, with several processing units controlled by one system

  • Distributed, with processing units located across multiple subsystems

Common implementations include:

  • Multi-core processors

  • Graphics processing units, or GPUs

  • FPGAs

  • Specialized parallel-processing hardware

Parallel processing is especially useful for operations that can be performed independently on multiple data values.

SIMD

Single Instruction, Multiple Data, or SIMD, applies one instruction to many data elements simultaneously.

For example, one convolution instruction may be applied to several signal samples or data blocks at the same time.

SIMD is effective when the same operation must be repeated across a large collection of data.

MIMD

Multiple Instruction, Multiple Data, or MIMD, allows different processing units to execute different instructions on different data sets simultaneously.

MIMD is more flexible than SIMD because the processing units do not all have to perform the same operation.

GPUs

GPUs contain many processing units and are highly effective for large numbers of similar computations. Their use has expanded significantly because many deep-learning algorithms require massive parallel computation.

Pipelined Architecture

In a pipelined architecture, processing is divided into several stages. The stages operate in an overlapped manner.

Suppose an operation has three stages:

  1. Stage 1 performs input preparation.

  2. Stage 2 performs computation.

  3. Stage 3 stores or outputs the result.

While one instruction is being processed by Stage 2, another instruction can enter Stage 1. At the same time, an earlier instruction may be completing in Stage 3.

Pipelining improves throughput by keeping multiple stages active at once. It does not necessarily reduce the time required for one individual instruction, but it increases the rate at which completed results are produced.

Hybrid Architecture

A hybrid architecture combines multiple architectural strategies.

A hybrid system may include:

  • A centralized control unit

  • Distributed processing units

  • Parallel computation

  • Pipelined stages

  • Cloud-based processing

  • Specialized hardware accelerators

Hybrid architectures are suitable for highly complex tasks, including:

  • Advanced communication systems

  • Large-scale signal analysis

  • Deep-learning applications

  • Cloud-based signal processing

  • High-performance multimedia processing


Main Components of Signal Processing Systems

Sensors and Sensor Integration

Modern sensors are often designed to interface directly with microcontroller platforms such as Arduino or ESP-based systems.

Many contemporary sensors are digital sensors. They may contain their own:

  • Signal-conditioning circuits

  • ADC

  • Digital communication interface

When a sensor does not include an ADC, the system must either:

  • Add a separate ADC for interfacing, or

  • Connect the sensor to a processing unit that already includes an ADC

ADC Stages

An ADC generally performs three fundamental operations:

  1. Sampling

  2. Quantization

  3. Encoding

These operations convert a continuous analog signal into a sequence of binary numbers.


Sampling

Sampling discretizes the time axis of an analog signal.

An analog signal is continuous in time. Sampling measures the signal at selected time instants and produces a sequence such as:

x[0],x[1],x[2],…x[0], x[1], x[2], \ldotsx[0],x[1],x[2],…

In a uniform sampling system, samples are taken at equal time intervals.

The sampling frequency, or sampling rate, is the number of samples taken per second and is measured in hertz:

fs=1Tsf_s = \frac{1}{T_s}fs​=Ts​1​

where:

  • fsf_sfs​ is the sampling frequency

  • TsT_sTs​ is the time interval between adjacent samples

Most introductory ADC systems use uniform sampling. Some ADCs and signal-acquisition systems can perform nonuniform sampling, in which the intervals between samples are not equal.

Sampling discretizes time, but it does not yet discretize amplitude. The sampled values may still have a theoretically continuous range of possible amplitudes.


Quantization

Quantization discretizes the amplitude, or vertical axis, of the sampled signal.

A quantizer maps each sampled amplitude to one of a finite number of allowed levels.

The number of levels depends on the ADC’s bit depth. For an nnn-bit ADC:

L=2nL = 2^nL=2n

where LLL is the number of available quantization levels.

Examples:

  • A 2-bit ADC has 22=42^2 = 422=4 levels.

  • A 3-bit ADC has 23=82^3 = 823=8 levels.

  • A 4-bit ADC has 24=162^4 = 1624=16 levels.

  • An 8-bit ADC has 28=2562^8 = 25628=256 levels.

The quantization step size is commonly expressed as:

Δ=Vmax⁡−Vmin⁡2n\Delta = \frac{V_{\max} - V_{\min}}{2^n}Δ=2nVmax​−Vmin​​

where:

  • Δ\DeltaΔ is the quantization resolution or step size

  • Vmax⁡V_{\max}Vmax​ is the maximum input voltage

  • Vmin⁡V_{\min}Vmin​ is the minimum input voltage

  • nnn is the number of ADC bits

Example: 2-Bit ADC

For a 2-bit ADC with an input range from 000 to 3.33.33.3 volts:

L=22=4L = 2^2 = 4L=22=4

The input range is divided into four quantization intervals. The binary output can take four possible values:

  • 000000

  • 010101

  • 101010

  • 111111

The exact mapping between voltage intervals and binary codes depends on the ADC’s quantization convention. The important idea is that the continuous voltage range is represented by only four discrete levels.

Example: 3-Bit ADC

Consider a 3-bit ADC with an input range from 000 to 555 volts.

The number of quantization levels is:

L=23=8L = 2^3 = 8L=23=8

The quantization step size is:

Δ=5−08=0.625 volts\Delta = \frac{5 - 0}{8} = 0.625\text{ volts}Δ=85−0​=0.625 volts

Thus, each quantization interval has a width of approximately 0.6250.6250.625 volts. An input voltage is assigned to the digital level corresponding to the interval into which it falls.

A 4-bit ADC over the same voltage range has:

24=162^4 = 1624=16

possible levels, producing a finer approximation to the analog signal.

Increasing the number of ADC bits increases the number of available amplitude levels and generally improves amplitude resolution.

Quantization introduces a difference between the original sampled amplitude and its quantized representation. This difference is called quantization error.


Encoding

Encoding converts the quantized level into a binary code that can be stored in digital hardware.

For an nnn-bit ADC, each quantized value is represented by an nnn-bit binary word.

For a 3-bit ADC, the possible codes range from:

000 through 111000 \text{ through } 111000 through 111

These represent eight possible binary combinations:

  • 000000000

  • 001001001

  • 010010010

  • 011011011

  • 100100100

  • 101101101

  • 110110110

  • 111111111

For example, one quantization level may be assigned the code 101101101, while another may be assigned 111111111. The assignment depends on the ADC’s encoding scheme.

Digital hardware stores these binary values using registers composed of flip-flops. Each flip-flop stores one of two states:

  • High or low

  • On or off

  • Logic 111 or logic 000

ADC Specifications

When selecting an ADC, three fundamental specifications are required:

  • Sampling rate: How many samples are taken per second

  • Bit size or resolution: How many bits represent each sample

  • Input voltage range: The minimum and maximum voltage the ADC can accept

These specifications determine the time resolution and amplitude resolution of the digitized signal.


Memory in Signal Processing Systems

Memory is required because processing systems must store information while operations are being performed.

Memory can store:

  • Program instructions

  • Input samples

  • Output samples

  • Intermediate calculations

  • Variables

  • Queued data

  • Buffered data

Program Memory

Program memory stores the instructions that define the signal-processing algorithm.

Examples of program instructions include commands to:

  • Move data

  • Load data

  • Add values

  • Call a function

  • Store a result

  • Perform a multiplication

  • Execute a filtering operation

Program memory is generally implemented using:

  • ROM

  • Flash memory

  • Other non-volatile memory

Non-volatile memory retains its contents when power is removed.

The program is commonly written on a computer and then transferred to the processor through a cable or another communication medium.

Data Memory

Data memory stores information that changes during system operation.

Examples include:

  • Sensor samples

  • Incoming signal blocks

  • Processed results

  • Temporary variables

  • Intermediate calculations

Because these values change frequently, data memory is commonly implemented using RAM.

Buffers and Queues

A buffer temporarily stores data when the rate of data arrival differs from the rate of data processing.

For example, suppose a signal arrives at 100100100 samples per second, but the processor can process only 808080 samples per second. The additional samples must temporarily wait in a buffer.

Without adequate buffering:

  • Incoming data may be overwritten.

  • Samples may be lost.

  • The signal stream may become discontinuous.

  • The system may fail to operate in real time.

Queues serve a similar purpose by maintaining data in an ordered waiting structure.

Intermediate Results

Many algorithms require intermediate calculations. A complex expression is often evaluated in stages rather than all at once.

For example, an arithmetic operation may first calculate one partial result and then use that result in later operations. Signal-processing algorithms similarly store partial results during:

  • Convolution

  • Filtering

  • Transform calculations

  • Compression

  • Detection

  • Matrix operations

Primary and Secondary Memory

Primary memory is generally close to the processor and is used actively during computation. It is often internal, although external primary memory is also possible.

Secondary memory provides additional storage and may be internal or external.

Memory can also be classified by physical placement:

  • Internal memory: Located within the microcontroller, DSP, or processor package

  • External memory: A separate RAM, ROM, or storage device connected to the processor

Internal memory often provides faster access and reduces physical size. External memory allows the system to support larger storage capacities but can increase size, cost, and interface complexity.


Processing Units

A processing unit executes the operations defined by the signal-processing program.

Common processing units include:

  • Microprocessors

  • Microcontrollers

  • Digital signal processors

  • FPGAs

One benefit of digital signal processing over analog signal processing is that the operation can often be changed by modifying the program. The same digital hardware can perform different filters or algorithms when different software instructions are loaded.

Microprocessors

A microprocessor generally contains the central computational elements, including:

  • Arithmetic logic unit, or ALU

  • Control unit, or CU

  • Registers

  • Some internal memory

A microprocessor typically requires external components such as:

  • RAM

  • ROM or flash

  • Input/output peripherals

  • Communication interfaces

Advantages

  • Flexible memory configuration

  • RAM and ROM capacity can be selected according to the application

  • Suitable for general-purpose computing

Limitation

  • Requires additional external components

  • Usually has a larger physical system size

  • Interface design is more complicated

Microcontrollers

A microcontroller integrates many system components into a single integrated circuit.

A microcontroller may contain:

  • Processor core

  • Program memory

  • RAM

  • Timers

  • Input/output ports

  • Communication interfaces

  • ADCs

  • Other peripherals

This integration makes microcontrollers compact and suitable for embedded systems.

Digital Signal Processors

A digital signal processor, or DSP, is a processor specialized for signal-processing operations.

DSPs often include hardware designed to accelerate operations such as:

  • Multiplication

  • Accumulation

  • Shifting

  • Repeated arithmetic

  • Data movement

A DSP is especially appropriate when the system requires high-speed numerical processing of streams of data.

FPGAs

An FPGA, or field-programmable gate array, is a reconfigurable digital hardware device.

An FPGA is programmed using a hardware description language, or HDL. Reprogramming an FPGA changes the hardware connections and logic configuration inside the device.

This differs from ordinary software-based processing:

  • In a processor-based system, changing the program changes the sequence of instructions executed by largely fixed hardware.

  • In an FPGA, reprogramming changes the implemented hardware structure and connections.

An FPGA can therefore implement a filter or processing system as dedicated hardware logic.

The architecture of the FPGA device remains the same in a general sense, but the programmed configuration determines how its internal programmable resources are connected and used.


Design Requirements for DSPs

DSPs are designed for signal-processing applications with demanding performance requirements.

Real-Time Processing

Real-time processing means that the system must complete processing within the time constraints imposed by the application.

If processing is too slow:

  • Data may be lost

  • Output may be delayed

  • Audio and video may become unsynchronized

  • A control system may react too late

  • A time-sensitive event may be missed

For example, an audio-video recording system must process the streams quickly enough to maintain synchronization. Similarly, a camera system must capture and process an image before the observed object moves away.

High Throughput

Throughput is the rate at which a system processes data or completes instructions.

It may be expressed as:

  • Samples per second

  • Frames per second

  • Operations per second

  • Instructions per second

If a processor executes 111 million instructions per second, its throughput may be described as 111 MIPS, meaning one million instructions per second.

High throughput can be achieved by:

  • Executing operations in parallel

  • Using multiple processing units

  • Increasing the clock rate

  • Adding specialized arithmetic hardware

  • Using pipelining

  • Improving memory access

Low Latency

Latency is the delay between issuing a command or presenting input and the beginning or completion of the corresponding operation.

If a command is issued at time tissuet_{\text{issue}}tissue​ and processing begins at time tstartt_{\text{start}}tstart​, the initiation latency is:

Tlatency=tstart−tissueT_{\text{latency}} = t_{\text{start}} - t_{\text{issue}}Tlatency​=tstart​−tissue​

Latency can result from:

  • Signal propagation through hardware paths

  • Instruction decoding

  • Memory access

  • Bus arbitration

  • Data transfer

  • Control logic

  • Pipeline delays

Throughput and latency are related but different:

  • Throughput describes how much data can be processed per unit time.

  • Latency describes how long the system waits before responding to a particular command or input.

A system can have high throughput but still have noticeable latency if it processes many data items efficiently after a significant initial delay.


Techniques for Improving DSP Performance

Dedicated Multiplier

A dedicated multiplier is specialized hardware for performing multiplication rapidly.

Multiplication is central to many signal-processing operations, including:

  • Convolution

  • Finite impulse response filtering

  • Transform calculations

  • Correlation

  • Modulation

  • Matrix operations

A dedicated multiplier is faster and more efficient than constructing every multiplication from a long sequence of simpler instructions.

Multiply-Accumulate Hardware

Many signal-processing algorithms repeatedly multiply values and add the results. Specialized multiply-accumulate hardware can perform these operations efficiently.

This is particularly useful for convolution and digital filtering, where the output often has the form:

y[n]=∑k=0N−1h[k]x[n−k]y[n] = \sum_{k=0}^{N-1} h[k]x[n-k]y[n]=∑k=0N−1​h[k]x[n−k]

The repeated multiplication and addition in this equation is well suited to DSP hardware.

Split or Multiple ALUs

A processor with two or more arithmetic logic units can perform multiple arithmetic operations simultaneously.

This supports parallel execution and increases computational throughput when the algorithm contains independent operations.

Harvard Architecture

A Harvard architecture uses separate memory systems and buses for:

  • Program instructions

  • Data

This allows the processor to fetch an instruction and access data at the same time.

Parallelism

Parallelism executes multiple operations simultaneously.

It may involve:

  • Multiple ALUs

  • Multiple processor cores

  • SIMD instructions

  • Multiple independent processing units

  • FPGA logic blocks

Parallelism is most effective when the algorithm can be divided into operations that do not depend immediately on one another.

Pipelining

Pipelining divides instruction execution into stages and overlaps the stages of multiple instructions.

The result is increased throughput because several instructions can occupy different stages at the same time.

Barrel Shifter

A barrel shifter is a specialized circuit that shifts a data word by multiple bit positions in a single clock cycle.

Unlike a simple shifter that may shift one bit at a time, a barrel shifter can perform larger shifts immediately. It can also support circular shifts, in which bits shifted out from one side re-enter from the other side.

Barrel shifters are useful in:

  • Scaling operations

  • Bit-field manipulation

  • Fixed-point arithmetic

  • Normalization

  • Fast division or multiplication by powers of two

  • Signal-processing algorithms requiring rapid data alignment


Examples of DSP Families

Examples of commercial DSP families include:

  • Texas Instruments TMS320 series

  • Analog Devices ADSP series

  • NXP Freescale DSPs

  • Qualcomm Hexagon DSPs

These processors are designed to support the high-throughput, low-latency, and real-time requirements of signal-processing applications.


Harvard and Von Neumann Architectures

Harvard Architecture

In a Harvard architecture:

  • Program memory and data memory are separate.

  • Instruction and data paths are separate.

  • Separate buses can be used for instructions and data.

  • The processor may fetch an instruction while simultaneously accessing data.

  • Parallel memory access can improve performance.

Program memory contains instructions such as:

  • Move

  • Load

  • Add

  • Store

  • Call

  • Branch

Data memory contains information such as:

  • Sensor samples

  • Generated values

  • Intermediate results

  • Processed signals

The separation reduces competition between instruction fetches and data transfers.

Von Neumann Architecture

In a Von Neumann architecture:

  • Program instructions and data share a single memory system.

  • Instructions and data use the same buses.

  • A single data path and address path are shared.

  • Data may travel in both directions between the processor and memory or peripherals.

  • The shared path can become a performance bottleneck.

This structure is common in general-purpose computers.

Comparison

Memory organization

  • Von Neumann: One shared memory stores both instructions and data.

  • Harvard: Separate memories store instructions and data.

Bus organization

  • Von Neumann: Instructions and data use the same bus.

  • Harvard: Instructions and data use separate buses.

Access pattern

  • Von Neumann: Instruction fetching and data access may have to wait for one another.

  • Harvard: Instruction fetching and data access can occur simultaneously.

Performance

  • Von Neumann: Often slower for signal processing because of shared-bus contention.

  • Harvard: Often faster because separate paths support parallel access.

Design complexity

  • Von Neumann: Simpler and generally less complex.

  • Harvard: More complex because it requires separate memory and bus systems.

A useful analogy is storage space:

  • Von Neumann architecture is like storing clothing and books on the same shelf.

  • Harvard architecture is like placing clothing and books on separate shelves, allowing both to be accessed at the same time.

DSPs frequently use Harvard-style organization because signal processing requires continuous movement of both instructions and data. Simultaneous access helps them maintain high throughput and meet real-time constraints.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent