ArticleslgStudy

computer science

Advanced eXtensible Interface

Advanced eXtensible Interface is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Advanced eXtensible Interface rather than just read about it. In short: The Advanced eXtensible Interface (AXI) is an on-chip communication low-performance bus protocol and is part of the Advanced Microcontroller Bus Architecture specification (AMBA). AXI is royalty-free and its specification is freely available from ARM.

Advanced eXtensible Interface — main illustration
Advanced eXtensible Interface — illustration

Key takeaways

  • Advanced eXtensible Interface belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Advanced eXtensible Interface to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Advanced eXtensible Interface from memory before moving on to harder problems.

Reference excerpt

The Advanced eXtensible Interface (AXI) is an on-chip communication low-performance bus protocol and is part of the Advanced Microcontroller Bus Architecture specification (AMBA). AXI is royalty-free and its specification is freely available from ARM. AMBA AXI specifies many optional signals, which can be included depending on the specific requirements of the design, making AXI a versatile bus for numerous applications. While the communication over an AXI bus is between a single initiator and a single target, the specification includes detailed descriptions and signals to include N:M interconnects, able to extend the bus to topologies with multiple initiators and targets. AXI3 was introduced in 2003 with the AMBA3 specification. In 2010, a new revision of AMBA, AMBA4, defined the AXI4, AXI4-Lite and AXI4-Stream protocols. AMBA AXI4, AXI4-Lite and AXI4-Stream have been adopted by Xilinx and many of its partners as a main communication bus in their products. AMBA5 with AXI5 was released in 2022, adding atomicity, data protection, and cache operations. A new ACE (AXI Coherency Extension) is specified.

Thread IDs

Thread IDs allow a single initiator port to support multiple threads, where each thread has in-order access to the AXI address space, however each thread ID initiated from a single initiator port may complete out of order with respect to each other. For instance in the case where one thread ID is blocked by a slow peripheral, another thread ID may continue independently of the order of the first thread ID. Another example, one thread on a CPU may be assigned a thread ID for a particular initiator port memory access such as read addr1, write addr1, read addr1, and this sequence will complete in order because each transaction has the same initiator port thread ID. Another thread running on the CPU may have another initiator port thread ID assigned to it, and its memory access will be in order as well but may be intermixed with the first thread IDs transactions. Thread IDs on an initiator port are not globally defined, thus an AXI switch with multiple initiator ports will internally prefix the initiator port index to the thread ID, and provide this concatenated thread ID to the target device, then on return of the transaction to its initiator port of origin, this thread ID prefix will be used to locate the initiator port and the prefix will be truncated. This is why the target port thread ID is wider in bits than the initiator port thread ID. AXI-Lite bus is an AXI bus that only supports a single ID thread per initiator. This bus is typically used for an end point that only needs to communicate with a single initiator device at a time, for example, a simple peripheral such as a UART. In contrast, a CPU is capable of initiating transactions to multiple peripherals and address spaces at a time, and will support more than one thread ID on its AXI initiator ports and AXI target ports. This is why a CPU will typically support a full spec AXI bus. A typical example of a front side AXI switch would include a full specification AXI initiator connected to a CPU initiator, and several AXI-Lite targets connected to the AXI switch from different peripheral devices. (Additionally, the AXI-Lite bus is restricted to only support transaction lengths of a single data word per transaction.)

Handshake

AXI defines a basic handshake mechanism, composed by an xVALID and xREADY signal. The xVALID signal is driven by the source to inform the destination entity that the payload on the channel is valid and can be read from that clock cycle onwards. Similarly, the xREADY signal is driven by the receiving entity to notify that it is prepared to receive data. When both the xVALID and xREADY signals are high in the same clock cycle, the data payload is considered transferred and the source can either provide a new data payload, by keeping high xVALID, or terminate the transmission, by de-asserting xVALID. An individual data transfer, so a clock cycle when both xVALID and xREADY are high, is called a "beat". Two main rules are defined for the control of these signals:

A source must not wait for a high xREADY to assert xVALID. Once xVALID is asserted, a source must maintain the assertion until a handshake occurs. Thanks to this handshake mechanism, both the source and the destination can control the flow of data, throttling the speed if needed.

Channels In the AXI specification, five channels are described:

Read Address channel (AR) Read Data channel (R) Write Address channel (AW) Write Data channel (W) Write Response channel (B) Other than some basic ordering rules, each channel is independent from each other and has its own couple of xVALID/xREADY handshake signals.

AXI

Signals

Bursts

AXI is a burst-based protocol, meaning that there may be multiple data transfers (or beats) for a single request. This makes it useful in the cases where it is necessary to transfer large amount of data from or to a specific pattern of addresses. In AXI, bursts can be of three types, selected by the signals ARBURST (for reads) or AWBURST (for writes):

FIXED INCR WRAP In FIXED bursts, each beat within the transfer has the same address. This is useful for repeated access at the same memory location, such as when reading or writing a FIFO. 𝐴𝑑𝑑𝑟𝑒𝑠𝑠=𝑆𝑡𝑎𝑟𝑡𝐴𝑑𝑑𝑟𝑒𝑠𝑠 In INCR bursts, on the other hand, each beat has an address equal to the previous one plus the transfer size. This burst type is commonly used to read or write sequential memory areas. 𝐴𝑑𝑑𝑟𝑒𝑠𝑠i=𝑆𝑡𝑎𝑟𝑡𝐴𝑑𝑑𝑟𝑒𝑠𝑠+𝑖⋅𝑇𝑟𝑎𝑛𝑠𝑓𝑒𝑟𝑆𝑖𝑧𝑒 WRAP bursts are similar to the INCR ones, as each transfer has an address equal to the previous one plus the transfer size. However, with WRAP bursts, if the address of the current beat reaches the "Higher Address boundary", it is reset to the "Wrap boundary": 𝐴𝑑𝑑𝑟𝑒𝑠𝑠i=𝑊𝑟𝑎𝑝𝐵𝑜𝑢𝑛𝑑𝑎𝑟𝑦+(𝑆𝑡𝑎𝑟𝑡𝐴𝑑𝑑𝑟𝑒𝑠𝑠+𝑖⋅𝑇𝑟𝑎𝑛𝑠𝑓𝑒𝑟𝑆𝑖𝑧𝑒) mod (𝐵𝑢𝑟𝑠𝑡𝐿𝑒𝑛𝑔𝑡ℎ⋅𝑇𝑟𝑎𝑛𝑠𝑓𝑒𝑟𝑆𝑖𝑧𝑒) with 𝑊𝑟𝑎𝑝𝐵𝑜𝑢𝑛𝑑𝑎𝑟𝑦=⌊𝑆𝑡𝑎𝑟𝑡𝐴𝑑𝑑𝑟𝑒𝑠𝑠𝑁𝑢𝑚𝑏𝑒𝑟𝐵𝑦𝑡𝑒𝑠⋅𝐵𝑢𝑟𝑠𝑡𝐿𝑒𝑛𝑔𝑡ℎ⌋⋅(𝑁𝑢𝑚𝑏𝑒𝑟𝐵𝑦𝑡𝑒𝑠⋅𝐵𝑢𝑟𝑠𝑡𝐿𝑒𝑛𝑔𝑡ℎ)

Transactions

Reads

To start a read transaction, the initiator has to provide on the Read address channel:

… excerpt ends here. Continue reading the full article.

Illustrations

Advanced eXtensible Interface illustration
Advanced eXtensible Interface illustration
Advanced eXtensible Interface: Example of FIXED, INCR and WRAP bursts
Example of FIXED, INCR and WRAP bursts
Advanced eXtensible Interface: Example of an AXI read transaction. The initiator requests 4 beats (ARLEN + 1[18]) of 4 Bytes each starting from address 0x0 with INCR type. The target returns 0x10 for address 0x0, 0x11 for address 0x4, 0x12 for address 0x8 and 0x13 for address 0xc, all with the OKAY status. Only the most relevant signals are shown here.
Example of an AXI read transaction. The initiator requests 4 beats (ARLEN + 1[18]) of 4 Bytes each starting from address 0x0 with INCR type. The target returns 0x10 for address 0x0, 0x11 for address 0x4, 0x12 for address 0x8 and 0x13 for address 0xc, all with the OKAY status. Only the most relevant signals are shown here.
Advanced eXtensible Interface: Example of an AXI write transaction. The initiator drives 4 beats (AWLEN + 1[18]) of 4 Bytes each starting from address 0x0 with INCR type, writing 0x10 for address 0x0, 0x11 for address 0x4, 0x12 for address 0x8 and 0x13 for address 0xc. The target returns 'OKAY' as write response for the whole transaction. Only the most relevant signals are shown here.
Example of an AXI write transaction. The initiator drives 4 beats (AWLEN + 1[18]) of 4 Bytes each starting from address 0x0 with INCR type, writing 0x10 for address 0x0, 0x11 for address 0x4, 0x12 for address 0x8 and 0x13 for address 0xc. The target returns 'OKAY' as write response for the whole transaction. Only the most relevant signals are shown here.

Worked examples

Example 1 — a first encounter with Advanced eXtensible Interface

Start with the simplest possible case. Write down what Advanced eXtensible Interface claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Advanced eXtensible Interface before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Advanced eXtensible Interface ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Advanced eXtensible Interface

In research
Advanced eXtensible Interface appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Advanced eXtensible Interface in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Advanced eXtensible Interface is common in secondary-school and first-year university syllabi. It links to neighbouring topics ARM architecture, Computer buses, Serial buses, so understanding it makes those chapters shorter.
In everyday life
Look for Advanced eXtensible Interface outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Advanced eXtensible Interface” →

How to study Advanced eXtensible Interface in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Advanced eXtensible Interface means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Advanced eXtensible Interface out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Advanced eXtensible Interface in simple terms?

The Advanced eXtensible Interface (AXI) is an on-chip communication low-performance bus protocol and is part of the Advanced Microcontroller Bus Architecture specification (AMBA). AXI is royalty-free and its specification is freely available from ARM.

Why does Advanced eXtensible Interface matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Advanced eXtensible Interface?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Advanced eXtensible Interface.

Tags

  • ARM architecture
  • Computer buses
  • Serial buses
  • System on a chip

Keep exploring