An AI engine is the computational core of artificial intelligence systems and is used for AI inference. It can also refer to a specific computing architecture created by AMD (formerly by Xilinx, acquired by AMD in 2022). For AI inference, an AI engine consists of software layers that run AI workloads and manage memory and scheduling, simplifying application development. The AMD AI engine is commonly used for streamlining linear algebra operations (such as matrix multiplication), for artificial intelligence algorithms, digital signal processing, and more generally, for high-performance computing. The first products containing AI engines were the Versal adaptive compute acceleration platforms, which combine scalar, adaptable, and intelligent engines connected through a Network on Chip (NoC). AI engines have evolved significantly alongside modern computing workloads, with developments specifically focused on accelerating AI applications. The basic architecture of a single AI engine integrates vector processors and scalar processors to implement Single Instruction Multiple Data (SIMD) capabilities. AI engines are integrated with other hardware such as FPGAs, CPUs, and GPUs to support high-performance, heterogeneous computation across various domains.
Etymology According to AMD, while the architecture can be used for artificial intelligence, the "AI" in "AI engine" is not an acronym for artificial intelligence or any other term.
History The architecture was originally released by Xilinx, Inc., a company specializing in field-programmable gate arrays (FPGAs). Their initial goal was to accelerate signal processing and, more generally, applications where data parallelism could offer significant improvements. Initially, AI engines were released combined with an FPGA layer in the Versal platforms. The initial systems, the VCK190 and VCK5000, contained 400 AI engines in their AI engine layer, connected through a VC1902. For connectivity, this architecture class relied on a Network on Chip (NoC) for high-performance on-chip connectivity. In 2022, the AI engine project changed when Xilinx was officially acquired by AMD, an American company active in the computing architecture market. The AI engines were integrated with other computing systems to target a wider range of applications, finding benefits when considering AI workloads. Indeed, even though the Versal architecture was capable, it was complicated and unfamiliar to a vast academic and industrial community segment. For this reason, AMD, along with third-party developers, began releasing improved toolsets and software stacks aimed at simplifying the programming challenges posed by the platform, targeting productivity and programmability. Aware of the AI workload needs, in 2023, AMD announced the AI engine ML (AIE-ML), the second generation of such architecture. It added support for AI-specific data types like bfloat16, a common data type for deep learning applications. The version retained the same vector processing capabilities of the previous instance but with enlarged memory to support more intermediate computations. From this generation, AMD integrates AI engines with other processing units like CPUs and GPUs, which are incorporated into modern Ryzen AI processors. In such systems, AI engines are usually referred to as Compute Tiles—self-contained processing blocks designed to efficiently execute AI and signal processing workloads. These blocks are integrated with other types of tiles, namely Memory tile and Shim tile. The apparatus containing the three interconnected kinds of tiles is named XDNA, and its first generation, namely XDNA 1, is released on Ryzen AI Phoenix PCs. Along with this release, AMD continues the research about programmability, releasing, as an open source tool, Riallto. On a similar path, at the end of 2023, early 2024, AMD announced the XDNA 2, along with the Strix series of Ryzen AI architectures. Different from the first generation of XDNA architectures, the second one offers more units to target the massive workload of ML systems. Again, to keep the efforts on the programmability side, AMD released the open source Ryzen AI SW toolchain, which includes the tools and runtime libraries for optimizing and deploying AI inference on Ryzen AI PC. As neural processing and deep learning applications expand across domains, researchers and industry professionals increasingly categorize XDNA architectures as Neural processing units (NPUs). However, the term includes all those architectures specifically meant for deep learning workloads and several companies, such as Huawei and Tesla, are proposing their own alternative.
Hardware architecture
AI engine tile A single AI engine is a 7-way VLIW processor that offers vector and scalar capabilities, enabling parallel execution of multiple operations per clock cycle. The architecture includes a 128-bit wide vector unit capable of SIMD (Single Instruction, Multiple Data) execution, a scalar unit for control and sequential logic, and a set of load/store units for memory access. The maximum vector register size is 1024-bit, leading to varying vector sizes depending on the data type. In the first generation, each AI engine tile has a 32 KB memory to load partial computations and 16 KB of program memory. AI engines are statically scheduled architectures. Static scheduling often results in code explosion, requiring manual optimization of AI engine kernels to mitigate this effect. The main programming language for a single AI engine is C++, used for both the connection declaration among multiple engines and the kernel logic executed by a specific AI engine tile. However, different toolchains can offer support for other programming languages, targeting specific applications or offering automation.
First generation - the AI engine layer
… excerpt ends here. Continue reading the full article.




![AI engine: Simplified diagram of an AMD XDNA NPU such as found in Ryzen 7040 processors.[24]](https://thumb.wikimedia.org/wikipedia/commons/thumb/5/54/XDNA_high-level_simplified_diagram.png/500px-XDNA_high-level_simplified_diagram.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)
