# 高级微控制器总线架构

**高级微控制器总线架构（Advanced Microcontroller Bus Architecture，AMBA）** 是一套由Arm发布的开放标准片上互连规范，定义了在片上系统（SoC）中连接和管理功能模块（如处理器、内存控制器和外设）所用的接口与协议。<sup>[1](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)</sup> 尽管其名称指向微控制器，其范围早已远超微控制器：AMBA广泛用于ASIC和SoC部件，包括智能手机中的应用处理器，并已成为将控制器或外设IP模块推向市场的事实标准接口。<sup>[1](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)</sup> 这些规范可免费获取且免版税。<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 1996年由Arm作为开放架构推出，此前一年已在内部开发；第一个版本包括高级系统总线（ASB）和高级外设总线（APB）<sup>[1](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)</sup> |
| 主要协议 | AXI（应用最广）、AHB、APB、ATB、ACE和CHI<sup>[1](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)</sup> |
| AXI通道 | 五个独立通道：读地址（AR）、读数据（R）、写地址（AW）、写数据（W）和写响应（B）<sup>[3](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf)</sup> |
| 突发规则 | 突发不得跨越4KB地址边界；AXI3支持每次突发1–16次传输，AXI4将递增突发扩展到1–256次<sup>[4](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf?hash=6325311012DDADF238C35A6C0FD734E520754F82&la=en&revision=71bd7c57-2ed7-487b-bc3e-68c4ab56fa5f)</sup> |
| 握手 | 每个通道都使用VALID/READY握手；只有在上升时钟沿两个信号均为高电平时才发生传输<sup>[3](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf)</sup> |
| 一致性 | ACE（2011）在AXI之上增加了硬件缓存一致性；AMBA 5 CHI（2013）面向大型SoC的一致性枢纽<sup>[5](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/amba-4-ace-and-hardware-cache-coherency---top-5-questions)</sup><sup> • </sup><sup>[6](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba-5-chi-and-how-does-it-help)</sup> |
| 许可 | 规范可免费获取，并附带免版税许可，用于开发、制造和销售合规产品<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup> |

## 历史与代际

AMBA的故事可追溯到1995年，当时Arm获得了一些欧盟资助；借助这一支持，高级微控制器总线架构在内部开发一年后，于1996年作为开放架构推出。<sup>[1](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)</sup> AMBA很快成为Arm的注册商标。<sup>[1](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)</sup>

**代际。** AMBA第一个版本包括两条总线：高级系统总线（ASB）和高级外设总线（APB）。在第二版AMBA 2中，Arm增加了AMBA高性能总线（AHB），这是一种单时钟沿协议，广泛用于基于ARM7和[ARM9](https://www.edgepedia.org/zh/arm9)的设计，并仍在基于Cortex-M的设计中使用。AMBA 3于2003年发布，增加了[高级可扩展接口](https://www.edgepedia.org/zh/advanced-extensible-interface)（AXI）以支持更快的互连，以及高级追踪总线（ATB），后者是CoreSight调试与追踪技术中用于片上用途的组件。2010年，AMBA 4规范以AXI4开始；2011年，AMBA 4 ACE扩展了系统级一致性，使big.LITTLE处理等技术成为可能。2013年，AMBA 5 CHI（一致性枢纽接口）规范推出，具有重新设计的高速传输层和旨在减少拥塞的特性。<sup>[1](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)</sup>

“AMBA x”一词指在同一时期前后发展起来的一代接口标准；在每一代内部，不同接口针对SoC中的不同需求，从简单的配置寄存器访问到完全一致、支持多个未完成事务的处理器接口。<sup>[6](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba-5-chi-and-how-does-it-help)</sup>

## AXI协议

AXI是最广泛使用的AMBA接口。<sup>[1](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)</sup> AXI协议基于突发，定义了五个独立的事务通道：读地址（信号以AR开头）、读数据（R）、写地址（AW）、写数据（W）和写响应（B）。地址通道承载描述待传输数据性质的控制信息；在写事务中，从设备使用写响应通道向主设备发出完成信号。<sup>[3](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf)</sup> 该协议允许地址信息先于实际数据传输发出，支持多个未完成事务，并支持事务乱序完成。<sup>[3](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf)</sup>

**握手。** 所有五个通道都使用相同的VALID/READY握手来传输地址、数据和控制信息。源端生成VALID以表示信息可用，目的端生成READY以表示可以接受；只有两者均为高电平时才发生传输。这种双向流控让主设备和从设备都能控制信息传输速率。源端不得等到READY断言后才断言VALID，一旦VALID断言，就必须保持断言直到握手发生；相反，目的端可以等待VALID后再断言READY。<sup>[3](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf)</sup>

**突发。** 主设备通过向从设备驱动控制信息和第一个字节的地址来开始每次突发，从设备计算后续传输的地址。一次突发不得跨越4KB地址边界，这一规则防止突发跨越两个从设备之间的边界，并限制从设备必须支持的地址增量。突发长度由读操作的ARLEN和写操作的AWLEN指定：AXI3对所有突发类型支持1到16次传输的突发长度，而AXI4将递增（INCR）突发类型扩展到1到256次传输，其他突发类型仍为1到16。回绕突发的长度必须为2、4、8或16，且不支持突发的提前终止，不过主设备可以在仍完成剩余传输的同时，通过撤销所有写选通来禁止写突发中的进一步写入。<sup>[4](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf?hash=6325311012DDADF238C35A6C0FD734E520754F82&la=en&revision=71bd7c57-2ed7-487b-bc3e-68c4ab56fa5f)</sup>

**AXI4-Lite。** AXI4-Lite是AXI4的子集，用于更简单的控制寄存器式接口。所有事务的突发长度均为1，所有数据访问都使用32位或64位数据总线的全宽，所有访问都是不可修改且不可缓冲的，且不支持独占访问。<sup>[4](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf?hash=6325311012DDADF238C35A6C0FD734E520754F82&la=en&revision=71bd7c57-2ed7-487b-bc3e-68c4ab56fa5f)</sup>

## AHB与APB

AHB连接SoC中的高性能模块，支持突发模式数据传输和拆分事务，所有时序都以单个时钟沿为基准；APB连接不需要AHB速度或带宽的较低性能外设模块，两者通过APB桥连接。<sup>[7](https://www.nxp.com/docs/en/user-guide/LH79524-LH79525_UG_V1_3.pdf)</sup> APB经过多个修订版本演变：APB3通过PREADY和PSLVERR信号增加了等待状态和错误报告；APB4增加了事务保护（PPROT）以及通过写选通（PSTRB）的稀疏数据传输；APB5增加了可选功能，包括领域管理扩展（RME）支持以及用户定义的请求、数据和响应属性。<sup>[8](https://documentation-service.arm.com/static/63fe2c1356ea36189d4e79f3)</sup>

## 一致性：ACE与CHI

ACE，即“AXI一致性扩展”，随2011年发布的AMBA 4规范引入。它允许处理器和系统通过硬件一致性共享内存，取代了此前应用、驱动程序和操作系统必须谨慎管理处理器与系统硬件（如DMA、图形和IO接口）之间数据共享的做法。AMBA 4 ACE-Lite接口面向IO（单向）一致性系统主设备，如DMA引擎、网络接口和加速器。<sup>[5](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/amba-4-ace-and-hardware-cache-coherency---top-5-questions)</sup><sup> • </sup><sup>[9](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/exploring-how-cache-coherency-accelerates-heterogeneous-compute)</sup>

AMBA 5 CHI面向许多SoC中一致性枢纽的接口，该高性能互连是SoC的核心，连接高性能处理器和内存控制器。CHI提供QoS机制来控制系统资源的分配方式，而无需详细了解每个组件；其下层带来更高时钟速度的握手，并将传输信息与有效载荷清晰分离，从而使互连更高效并运行在更高时钟频率。CHI建立在AMBA 4 ACE所用的同一套一致性协议之上，因此使用ACE-Lite的IO一致性设备可以高效地连接到CHI。<sup>[6](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba-5-chi-and-how-does-it-help)</sup> AXI和ACE使用主设备和从设备，而CHI使用请求节点、归属节点、从属节点和杂项节点。<sup>[10](https://developer.arm.com/community/arm-community-blogs/b/soc-design-and-simulation-blog/posts/optimization-of-systems-containing-the-arm-corelink-ccn-504-cache-coherent-network)</sup> CHI具有高度可扩展性，采用基于信用的流量控制，并具有高速、分组化的特性，这使其适合作为多芯片规范的协议层；它与CCIX和[UCIe](https://www.edgepedia.org/zh/ucie)等行业标准以及NVIDIA的NVLink-C2C等定制方案兼容。<sup>[11](https://developer.arm.com/community/arm-community-blogs/b/servers-and-cloud-computing-blog/posts/why-chiplets-why-now)</sup> 截至2023年5月，Arm正在开发CHI C2C，这是片上CHI的扩展，使其适合连接小芯片与小芯片，补充UCIe等小芯片标准化工作。<sup>[12](https://developer.arm.com/community/arm-community-blogs/b/servers-and-cloud-computing-blog/posts/multi-chip-and-chi-c2c)</sup>

## 近期规范更新

AMBA AXI和ACE协议规范的G版以及AMBA CHI架构规范的D版均属于AMBA 5，二者增加了若干特性：<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup>

- **唯一ID指示。** 组件可以指示它们使用一组唯一ID，从而无需互连和下游组件为排序而跟踪这些ID，因此请求可以快速发送，响应可以在返回路径中绕过排序逻辑。<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup>
- **读数据分块。** 若管理组件支持，从属组件可以返回乱序和部分读数据拍，这大大降低了在不同位宽之间从AXI桥接到CHI时的缓冲需求和复杂性。<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup>
- **写通道上的CMO。** 缓存维护操作可以在写通道而非读通道上传输，从而提高通道利用率，因为写响应通道更窄且利用率更低。<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup>
- **接口奇偶校验保护。** AMBA接口奇偶校验扩展支持汽车等具有韧性或功能安全要求的应用，可实现来自不同供应商的组件之间片上通信的端到端保护。<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup>
- **MPAM传输。** 规范描述了Armv8.4-A架构中增加的软件定义的内存系统资源分区与监控（MPAM）分区标识符如何附加到事务上并通过AMBA接口传输，以便虚拟机监控器可以在虚拟机之间分区缓存和内存。<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup>
- **更宽的事务ID。** 增加事务ID宽度可以允许更多未完成事务，这是高延迟芯片间接口所需要的。<sup>[2](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)</sup>

## 互连产品

AMBA协议在互连IP中实现。在单个实例中，Arm CoreLink NIC-400网络互连最多可将128个AXI或AHB-Lite主设备与最多64个AXI、AHB-Lite或APB从设备连接起来；它同时适用于AXI3和AXI4，并提供可选许可功能，包括服务质量、虚拟网络和适合长路径的细链路。<sup>[13](https://developer.arm.com/community/arm-community-blogs/b/soc-design-and-simulation-blog/posts/getting-the-most-out-of-the-arm-corelink-nic-400)</sup> 在FPGA方面，Xilinx AXI互连核将一个或多个内存映射AXI主设备连接到一个或多个从设备，执行数据宽度转换、时钟速率转换、AXI4-Lite和AXI3适配以及流水线化，并支持N对1、1对N和稀疏交叉开关配置。<sup>[14](https://www.amd.com/content/dam/xilinx/support/documents/ip_documentation/axi_ref_guide/latest/ug1037-vivado-axi-reference-guide.pdf)</sup>

## References

1. [What is AMBA? (Ben Walshe, Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba)
2. [AMBA moves forward with major revisions to AXI and CHI specifications (Francisco Socal, Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/updates-to-amba-axi-and-chi-specifications)
3. [AMBA AXI and ACE Protocol Specification, A1.2 AXI Architecture (ARM IHI 0022H, Arm)](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf)
4. [AMBA AXI and ACE Protocol Specification, A3.4 Transaction structure and B1 AXI4-Lite (ARM IHI 0022H, Arm)](https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/IHI0022H_amba_axi_protocol_spec.pdf?hash=6325311012DDADF238C35A6C0FD734E520754F82&la=en&revision=71bd7c57-2ed7-487b-bc3e-68c4ab56fa5f)
5. [AMBA 4 ACE and Hardware Cache Coherency - Top 5 Questions (Neil Parris, Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/amba-4-ace-and-hardware-cache-coherency---top-5-questions)
6. [What is AMBA 5 CHI and how does it help? (Bruce Mathewson, Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/what-is-amba-5-chi-and-how-does-it-help)
7. [LH79524/LH79525 User's Guide, Glossary (NXP Semiconductors)](https://www.nxp.com/docs/en/user-guide/LH79524-LH79525_UG_V1_3.pdf)
8. [AMBA APB Protocol Specification (ARM IHI 0024E, Arm)](https://documentation-service.arm.com/static/63fe2c1356ea36189d4e79f3)
9. [Exploring how cache coherency accelerates heterogeneous compute (Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/architectures-and-processors-blog/posts/exploring-how-cache-coherency-accelerates-heterogeneous-compute)
10. [Optimization of systems containing the Arm CoreLink CCN-504 Cache Coherent Network (Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/soc-design-and-simulation-blog/posts/optimization-of-systems-containing-the-arm-corelink-ccn-504-cache-coherent-network)
11. [Why chiplets, why now? (Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/servers-and-cloud-computing-blog/posts/why-chiplets-why-now)
12. [Moving AMBA forward with multi-chip and CHI C2C (Francisco Socal, Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/servers-and-cloud-computing-blog/posts/multi-chip-and-chi-c2c)
13. [Getting the most out of the Arm CoreLink NIC-400 (Arm Community)](https://developer.arm.com/community/arm-community-blogs/b/soc-design-and-simulation-blog/posts/getting-the-most-out-of-the-arm-corelink-nic-400)
14. [Vivado Design Suite: AXI Reference Guide (UG1037, AMD/Xilinx)](https://www.amd.com/content/dam/xilinx/support/documents/ip_documentation/axi_ref_guide/latest/ug1037-vivado-axi-reference-guide.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Embedded & soft processors › Embedded systems › Embedded hardware design and system-on-chip

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/advanced-microcontroller-bus-architecture

English original: https://www.edgepedia.org/advanced-microcontroller-bus-architecture
