Menu Close

Common Processors and Computing Devices Explained — CPU, GPU, DSP, ISP, NPU, TPU, FPGA, and ASIC

Posted in Computer Architecture

A chip diagram can show a CPU, a GPU, an ISP, and an NPU inside the outline of a single chip. Elsewhere, a specification might describe a Google TPU as an ASIC. Both descriptions make sense once we ask what each label tells us. Some names identify the work a processing unit is designed to do. Others describe how engineers implement a circuit or how much of that circuit they can change after manufacture.

Common Processors and Computing Devices Explained — CPU, GPU, DSP, ISP, NPU, TPU, FPGA, and ASIC

CPU — Central Processing Unit

A central processing unit executes the instructions that make up a program. An instruction can load a value from memory, add two numbers, compare values, or select which instruction to execute next. That last ability, called branching, helps explain why CPUs are so well suited to running applications and operating systems.

Consider a request to open a file. The operating system must locate the file, check the user’s permissions, and either return access to the application or report an error. Each result determines the next step. A CPU handles this mixture of decisions and calculations on the same hardware that runs a spreadsheet or a web browser.

Most modern CPUs contain several cores. Each core can execute its own sequence of instructions, so one core can run application code while another handles a different task. Many CPUs can also apply one arithmetic instruction to several values at once. A CPU therefore offers parallel processing as well as the flexibility to follow a complex sequence of decisions.

GPU — Graphics Processing Unit

A graphics processing unit is designed to carry out many similar calculations in parallel. Converting a color image to grayscale illustrates the opportunity. Each output pixel gets a brightness value calculated from the red, green, and blue values of its input pixel. Calculating the shade of gray in the upper left corner can proceed independently of the calculation in the lower right.

For a single pixel, the arithmetic is modest. For a frame containing millions of pixels, there are enough independent calculations to keep many GPU arithmetic units busy. The same property makes GPUs useful for rendering graphics, applying video effects, simulating physical systems, and performing the matrix calculations used in AI.

The deciding factor is how much work can proceed concurrently. If every calculation needs the result of the previous one, the GPU has fewer opportunities to use its parallel hardware.

DSP — Digital Signal Processor

A digital signal processor works on numerical measurements called samples. In an audio system, for example, a microphone converts changes in air pressure into an electrical signal. An analog-to-digital converter measures that signal at regular intervals, producing the sequence of numbers that a DSP processes.

A four-sample moving average is a simple digital filter. Suppose four successive sensor readings are 10, 10, 10, and 18. Their average is 12, so the sudden rise affects the output less sharply than the raw reading. When the next sample arrives, the filter discards the oldest reading and calculates the average of the latest four.

More selective filters multiply samples by different weights before adding the products. DSPs are designed to perform this repeated arithmetic efficiently while keeping up with incoming data. Audio equipment, radio receivers, and vibration monitors all present variations of this problem.

ISP — Image Signal Processor

An image signal processor turns measurements from a camera sensor into a usable image. On a common color sensor, a filter above each light-sensitive site passes mainly red, green, or blue light. A site under a red filter therefore supplies only part of the information needed for a full-color pixel.

The imaging system estimates the missing color values from measurements at nearby sites. This process is called demosaicing. An ISP can also reduce noise, adjust white balance for different lighting conditions, and map the brightness range captured by the sensor into a range suitable for display. The choices made at these stages help explain why cameras using the same sensor can produce different-looking pictures.

Both an ISP and a GPU can process images. Their roles become clearer when we follow the data. Developing sensor measurements into a color photograph is a typical ISP task. Using that photograph as a texture on the wall of a three-dimensional game is a typical GPU task.

NPU — Neural Processing Unit

A neural processing unit accelerates calculations used by neural networks. During training, a model learns numerical parameters, including weights, from examples. Applying those learned parameters to a new input is called inference.

In handwritten digit recognition, the input is a grid of pixel values. Successive layers of a network combine those values with learned weights and produce scores for the possible digits. The NPU can accelerate the repeated arithmetic across the layers. Application software uses the scores to select a result.

Power consumption matters when a model runs continuously. A laptop might run a supported background-blur model on its NPU throughout a video call, leaving its GPU available to other applications. Whether that happens depends on the software and on the operations the particular NPU supports.

TPU — Tensor Processing Unit

Tensor Processing Unit is Google’s name for a family of chips designed for machine learning. A tensor is an array of numbers. A color image, for example, can be represented as an array indexed by height, width, and color channel.

Many operations in a neural network can be expressed as matrix multiplication. To obtain one entry in a matrix product, the hardware multiplies corresponding values from a row of one matrix and a column of the other, then adds the products. Computing a large matrix product repeats this pattern across many rows and columns. TPUs include dedicated circuits that perform many of these operations together.

Google Cloud TPUs support both model training and inference. A TPU is also an ASIC. The first name identifies the Google design family, while the second places the chip in the broader category of integrated circuits designed for a specific application.

FPGA — Field-Programmable Gate Array

A field-programmable gate array contains logic blocks, registers, and connections that an engineer can configure after the chip has been manufactured. A register holds a value between clock cycles. By choosing which values the registers hold and how the logic connects them, an engineer defines a digital circuit for a particular task.

The four-sample filter provides a concrete example. On a CPU, a program describes how to update the samples and calculate their average. On an FPGA, a designer can arrange four registers to hold successive samples and connect adders to form their sum. With each new sample, the stored values advance through the registers. Once the registers are filled, a suitable circuit can accept a new sample on every clock cycle.

The same board can later receive a configuration that implements a video timing controller. This ability to revise the circuit makes FPGAs useful for hardware prototypes, specialized interfaces, and custom accelerators.

ASIC — Application-Specific Integrated Circuit

An application-specific integrated circuit has circuitry designed for a defined application before manufacture. A network switch chip, for example, can include dedicated circuits for examining packet headers and selecting output ports. Google’s TPU devotes substantial hardware to the arithmetic of machine learning.

Designing and manufacturing a custom chip requires significant up-front investment. For a video encoder produced in large quantities, improvements in energy use, chip area, or cost per device can justify that investment. Changing a fundamental part of the circuit later may require a revised design and a new manufacturing run.

Specialization still leaves room for software. A TPU can execute different supported models using the same physical matrix circuits. The model’s weights and sequence of operations can change each time a different model is loaded.

How the units work together

A system on a chip, or SoC, integrates several computing functions on one piece of silicon. In an imaging system, the CPU might run the application, the ISP develop camera frames, the NPU locate objects in those frames, and the GPU draw the results for display. A DSP might process audio at the same time. The boxes in the chip diagram identify distinct jobs that the system can carry out concurrently.

A practical comparison begins with a measurable requirement. To recognize objects in a live feed at 30 frames per second, the system must keep up with a new frame roughly every 33 milliseconds. Several frames can be in progress at once, so the rate at which results arrive and the delay before any one result appears are separate measurements. Both matter if the application must also respond promptly to what the camera sees.

A useful test therefore runs the intended model and software on the specific hardware, at the required image resolution, while measuring frame rate, response time, and power consumption. Moving frames through memory or running an unsupported operation on the CPU can affect the result even when the accelerator has an impressive peak score. The abbreviations explain what resources a system contains. The workload reveals how effectively those resources work together.

Leave a Reply