【AMBA总线三部曲】APB协议理解

本文详细介绍了AMBA 3 APB协议,包括概述、信号描述、操作状态和数据传输。APB协议适用于连接各种外围设备如I2C、SPI、UART。内容涵盖APB时钟、复位信号、地址、选择、使能、读写方向等关键信号的解释,并强调了正确理解和验证这些信号对于节省验证时间的重要性。
摘要由CSDN通过智能技术生成

APB Protocol

工作项目中,不论用到的VIP是APB/AHB/AXI?工作的第一步,首先要做的工作是确认接口上的时钟和复位是否正常;VIP interface上的时钟和复位是否都正常,然后进行下一步的工作。可以帮助验证人员节省80%的debug时间!


目录

APB Protocol

1. 概述简介 

2. Signal Descriptions

3. Operating States

4 Transfers


AMBA 3 APB Protocol Specification


1. 概述简介 

APB: Advanced Peripheral Bus ( 高级外设总线 )
应用场景:提供了一个低功耗接口,降低接口复杂性。
特性:
可工作在高频下
协议简单:无复杂的时序
控制逻辑简单
同步总线:总线上所有的 transaction (读写操作)都依赖于时钟的上升沿
一主多从:一般情况下, APB 挂在 AHB 总线系统下,通过 AHB-APB  Bridge 将事务在 AHB 总线系统之间进行转化,此时 Bridge 即为 APB master ,其他的外围设备均为 slave

可连接多种外围设备:I2CSPIUART

2. Signal Descriptions

PCLK Clock source Clock. The rising edge of PCLK times all transfers on the APB.

PRESETn System bus equivalent Reset. The APB reset signal is active LOW. This signal is normally connected directly to the system bus reset signal.

PADDR APB bridge Address. This is the APB address bus. It can be up to 32 bits wide and is driven by the peripheral bus bridge unit.

PSELx APB bridge Select. The APB bridge unit generates this signal to each peripheral bus slave. It indicates that the slave device is selected and that a data transfer is required. There is a PSELx signal for each slave.

PENABLE APB bridge Enable. This signal indicates the second and subsequent cycles of an APB transfer.

PWRITE APB bridge Direction. This signal indicates an APB write access when HIGH and an APB read access when LOW.

PWDATA APB bridge Write data. This bus is driven by the peripheral bus bridge unit during write cycles when PWRITE is HIGH. This bus can be up to 32 bits wide.

PREADY Slave interface Ready. The slave uses this signal to extend an APB transfer.

PRDATA Slave interface Read Data. The selected slave drives this bus during read cycles when PWRITE is LOW. This bus can be up to 32-bits wide.

PSLVERR Slave interface This signal indicates a transfer failure. APB peripherals are not required to support the PSLVERR pin. This is true for both existing and new APB peripheral designs. Where a peripheral does not include this pin then the appropriate input to the APB bridge is tied LOW.

3. Operating States

4 Transfers

欢迎大家一起讨论学习!需要相关文档资料的同学可以给我发邮件!

lixingyi09@qq.com

振兴中华 

  • 7
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值