AHB协议理解

从小父亲就教育我,做一个对社会有用的人!

目录

Chapter1 AHB Block Diagram

Ginput signal

lnput signals

Output Signal

Chapter3 Transfers

AHB接口Overview 

 Chapter6 Data Buses

HWDATA

HRDATA


Chapter1 Introduction

AHB: Advanced High-performance Bus ( 高级高性能总线 )
应用场景:针对高效率,高频宽所设计的总线,可以连接微处理器,片内或片外的内存模块,以及 DMA 等高效模块,可以构成完整独立的 SOC 系统
AHB协议理解_第1张图片

AHB Block Diagram

AHB协议理解_第2张图片

 Figure 1-1 shows only the main address and data buses and typical data routing. Not all signals are shown.

Decoder 监控 Master 的地址选择到对应的 Slave
Multiplexor 将对应的 slave 的输出路由回 Master

AHB协议理解_第3张图片

 AHB协议理解_第4张图片

 Figure 1-3 Subordinate interface

Global Singal

lnput signals

AHB协议理解_第5张图片

AHB协议理解_第6张图片

 AHB协议理解_第7张图片

 AHB协议理解_第8张图片

Output Signal

 AHB协议理解_第9张图片

 AHB协议理解_第10张图片

AHB协议理解_第11张图片

Chapter3 Transfers

  1. Address phase One address and control cycle.
  2. Data phase One or more cycles for the data.
  3. HWRITE is HIGH, it indicates a write transfer and the Manager broadcasts data on the write data bus, HWDATA.
  4. HWRITE is LOW, a read transfer is performed, and the Subordinate must generate the data on the read data bus, HRDATA.

AHB协议理解_第12张图片

Figure Transfer with no wait state

在采集到 hclk 的上升沿后, master 开始驱动地址和控制信号
Slave 在第二个上升沿后采集到地址和控制信息
Slave 会驱动 HREADYOUT response Master 会在第三个上升沿采集到这个 response ,传输结束

AHB协议理解_第13张图片

 Figure 3-1 Read transfer

AHB协议理解_第14张图片

Figure 3-2 Write transfer

AHB协议理解_第15张图片

Figure AHB transfer with wait

原因:从机未必处于就绪状态

等待时的读写:

写:要保持写的状态直至传输完成

读:只有当Hready为高时,slave才会获取有效值

 AHB协议理解_第16张图片

Figure 3-3 Read transfer with two wait states

AHB协议理解_第17张图片

Figure 3-4 Write transfer with one wait state

AHB协议理解_第18张图片

AHB协议理解_第19张图片

Figure 3-5 Multiple transfers

 Table 3-1 Transfer type encodingAHB协议理解_第20张图片

Figure 3-6 shows the use of the NONSEQ, BUSY , and SEQ transfer types.

带控制信号的多笔传输时序

AHB协议理解_第21张图片

AHB协议理解_第22张图片

 Figure 3-6 Transfer type examples

AHB协议理解_第23张图片

Figure 3-7 Locked transfer

Table 3-2 Transfer size encoding

AHB协议理解_第24张图片

Table 3-4 Burst signal encoding

AHB协议理解_第25张图片

Figure 3-8 shows a write transfer using a four-beat wrapping burst, with a wait state added for the first transfer.

AHB协议理解_第26张图片

Figure 3-8 Four-beat wrapping burst

AHB接口Overview 

MASTER

AHB协议理解_第27张图片

SLAVE

AHB协议理解_第28张图片

 AHB协议理解_第29张图片

 Figure 5-1 ERROR response

 Chapter6 Data Buses

HWDATA

The Manager drives the write data bus during write transfers. If the transfer is extended, then the Manager must hold the data valid until the transfer completes, as indicated by HREADY HIGH. See Clock on page 7-72 for details on holding signals valid across multiple cycles.
For transfers that are narrower than the width of the bus, for example a 16-bit transfer on a 32-bit bus, the Manager only has to drive the appropriate byte lanes. The Subordinate selects the write data from the correct byte lanes. See Endianness on page 6-65 for details of the byte lanes that are active for a little-endian and big-endian system.

HRDATA

The appropriate Subordinate drives the read data bus during read transfers. If the Subordinate extends the read transfer by holding HREADY LOW, then the Subordinate only has to provide valid data in the final cycle of the transfer, as indicated by HREADY HIGH.
For transfers that are narrower than the width of the bus, the Subordinate is only required to provide valid data on the active byte lanes. The Manager selects the data from the correct byte lanes.
A Subordinate only has to provide valid data when a transfer completes with an OKAY response. ERROR responses do not require valid read data.

你可能感兴趣的:(汽车芯片IC验证,机器学习,人工智能)