DSP SRIO协议的逻辑层定义了操作协议和相应的包格式。DSP上SRIO支持的逻辑层业务(数据发送方法)主要是直接IO/DMA(Direct
IO/ Direct Memory Access)和消息传递(Message Passing)。
•直接IO/DMA模式是最简单实用的传输方式,其前提是主设备知道被访问端的存储器映射。在这种模式下,主设备可以直接读写从设备的存储器。可以硬件直接实现。
•消息传递模式则类似于以太网的传输方式,它不要求主设备知道被访问设备的存储器状况。数据在被访问设备中的位置则由邮箱号(类似于以太网协议中的端口号)确定。从设备根据接收到的包的邮箱号把数据保存到对应的缓冲区。需要软件协助。
Two Basic Modes of Operation:
– DirectIO
• Read/write operations directed to specific memory address
– Transmit device has knowledge of memory map of receiving device
• Functional units:
– LSU (Load/Store Unit)
– MAU (Memory Access Unit)
– Message Passing
• Mailbox and Letter designators
– Transmit device does not need knowledge of memory map of receiving device
• Functional units:
– TXU (Message Transmit Unit)
– RXU (Message Receive Unit)
• DOORBELL(重要)
下文会对两种模式进行详解。