Address generation unit explained

The address generation unit (AGU), sometimes also called address computation unit (ACU),[1] is an execution unit inside central processing units (CPUs) that calculates addresses used by the CPU to access main memory. By having address calculations handled by separate circuitry that operates in parallel with the rest of the CPU, the number of CPU cycles required for executing various machine instructions can be reduced, bringing performance improvements.[2] [3]

While performing various operations, CPUs need to calculate memory addresses required for fetching data from the memory; for example, in-memory positions of array elements must be calculated before the CPU can fetch the data from actual memory locations. Those address-generation calculations involve different integer arithmetic operations, such as addition, subtraction, modulo operations, or bit shifts. Often, calculating a memory address involves more than one general-purpose machine instruction, which do not necessarily decode and execute quickly. By incorporating an AGU into a CPU design, together with introducing specialized instructions that use the AGU, various address-generation calculations can be offloaded from the rest of the CPU, and can often be executed quickly in a single CPU cycle.

Capabilities of an AGU depend on a particular CPU and its architecture. Thus, some AGUs implement and expose more address-calculation operations, while some also include more advanced specialized instructions that can operate on multiple operands at a time. Furthermore, some CPU architectures include multiple AGUs so more than one address-calculation operation can be executed simultaneously, bringing further performance improvements by capitalizing on the superscalar nature of advanced CPU designs. For example, Intel incorporates multiple AGUs into its Sandy Bridge and Haswell microarchitectures, which increase bandwidth of the CPU memory subsystem by allowing multiple memory-access instructions to be executed in parallel.[4] [5] [6]

See also

External links

Notes and References

  1. Web site: Address generation unit for a processor (US 2006010255 A1 patent application) . January 12, 2006 . December 8, 2014 . Cornelis Van Berkel . Patrick Meuwissen . google.com.
  2. Web site: Chapter 4: Address Generation Unit (DSP56300 Family Manual) . September 16, 1999 . December 8, 2014 . ecee.colorado.edu . March 29, 2018 . https://web.archive.org/web/20180329033039/http://ecee.colorado.edu/~ecen4002/manuals/dsp56300family/ch4-agu.pdf . dead .
  3. Web site: Pentium 4: Round 1 – Intel blows the lead . December 27, 2000 . December 8, 2014 . Darek Mihocka . emulators.com.
  4. Web site: Intel's Sandy Bridge Microarchitecture: Memory Subsystem . September 25, 2010 . December 8, 2014 . David Kanter . realworldtech.com.
  5. Web site: Intel's Haswell CPU Microarchitecture: Haswell Memory Hierarchy . November 13, 2012 . December 8, 2014 . David Kanter . realworldtech.com.
  6. Web site: Fourth-Generation Intel Core Processor, codenamed Haswell . August 2013 . December 8, 2014 . Per Hammarlund . hotchips.org . 25 . July 5, 2016 . https://web.archive.org/web/20160705081212/http://www.hotchips.org/wp-content/uploads/hc_archives/hc25/HC25.80-Processors2-epub/HC25.27.820-Haswell-Hammarlund-Intel.pdf . dead .