68013 Slave FIFO传输与寄存器配置详解

需积分: 10 4 下载量 112 浏览量 更新于2024-07-24 收藏 1.97MB DOC 举报
"68013 slave fifo 说明文档" 68013 Slave FIFO 是一种在 FPGA(Field-Programmable Gate Array)设计中用于数据传输的接口组件,主要在与外部设备如微控制器、处理器或其他FPGA进行通信时使用。这份说明文档详细介绍了68013 Slave FIFO的各种特性和操作方式。 FX2特性介绍: FX2是该文档中可能涉及的一种特定的FPGA芯片或接口控制器,具有以下特性: 1.1 介绍:FX2是一款高度集成的USB接口芯片,提供了一种灵活的方法来实现USB设备功能。 1.2 结构:FX2包含一个8位微处理器和一个高速USB接口,以及内部RAM和多个I/O端口。 1.3 特征:它支持USB 2.0全速操作,具有强大的自定义I/O能力,能够轻松处理复杂的通信协议。 Slave FIFO传输: 2.1 概述:Slave FIFO是一个在FX2或类似架构中的缓冲区,允许主设备(如微控制器)与FPGA之间高效地进行数据交换。 2.2 硬件连接:Slave FIFO通过特定的I/O引脚与主设备连接,这些引脚用于控制数据的读写以及握手信号。 2.3 Slave FIFO的传输方式: - 同步Slave FIFO写:主设备在收到FPGA的确认信号后才能写入新数据,确保数据正确传输。 - 同步Slave FIFO读:主设备在接收到数据并给出响应后,FPGA才清除内部数据,确保数据不丢失。 - 异步Slave FIFO写:主设备可以连续写入数据,无需等待FPGA的确认,适用于高数据速率传输。 - 异步Slave FIFO读:FPGA在准备好数据后立即通知主设备,主设备可以随时读取,提高了数据吞吐量。 寄存器设置: 3.1 IFCONFIG到3.13 PORTACFG,这部分详细列出了与配置和控制Slave FIFO相关的各种寄存器,包括它们的功能和用法: - IFCONFIG:接口配置寄存器,用于设置Slave FIFO的工作模式和通信参数。 - PINFLAGSAB/CD:I/O引脚配置寄存器,定义了哪些引脚作为数据线,哪些作为控制信号。 - FIFORESET:FIFO复位寄存器,用于初始化或清除FIFO内部状态。 - FIFOPINPOLAR:FIFO引脚极性寄存器,定义了握手信号的高低电平含义。 - EPxCFG和EPxFIFOCFG:端点配置寄存器,用于配置Slave FIFO的读写端点和传输属性。 - EPxAUTOINLENH/L:自动输入长度寄存器,设定连续传输的数据包长度。 - EPxFIFOPFH/L:FIFO预填充寄存器,预先加载到FIFO的数据量。 - INPKTEND和OUTPKTEND:输入/输出包结束标志寄存器,指示数据包的结束。 - EPxFIFOIE和EPxFIFOIRQ:中断使能和中断请求寄存器,控制中断触发和处理。 - PORTACFG:端口A配置寄存器,用于配置与Slave FIFO相关的端口特性。 - EPxFIFOBCHEPxFIFOBCL:FIFO缓存和低级配置寄存器,用于优化数据传输的性能和效率。 通过理解和配置这些寄存器,用户可以根据具体应用需求定制Slave FIFO的行为,从而实现高效、可靠的USB通信。在实际设计中,需仔细阅读并遵循这些寄存器的使用指南,确保系统的稳定运行。

Standard SPI Mode Standard SPI mode is selected when the Mode option in the Vivado IDE is set to Standard. The relevant parameters in this mode are: • Mode • Enable STARTUPE2 Primitive • Transaction Width • No. of Slaves • Frequency Ratio Send Feedback AXI Quad SPI v3.2 7 PG153 April 4, 2018 www.xilinx.com Chapter 1: Overview • Enable FIFO The properties of the core in standard SPI mode, including or excluding a FIFO, are described as: • The choice of inclusion of FIFO is based on the Enable FIFO parameter. FIFO Depth parameter is linked to Enable FIFO parameter. FIFO Depth limits the transmit and receive FIFO depth to 16 or 256 when FIFO is enabled. When FIFO is not enabled, the value of FIFO depth parameter is considered to be 0. A FIFO depth of 256 should be used because this is the most suitable depth in relation to the flash memory page size. • The valid values for the FIFO Depth option in this mode are 16 or 256 when FIFO is enabled through Enable FIFO parameter. When Enable FIFO is 0 and no FIFO is included in the core. Data transmission occurs through the single transmit and receive register. When FIFO Depth is 16 or 256, the transmit or receive FIFO is included in the design with a depth of 16 or 256 elements. The width of the transmit and receive FIFO is configured with the Transaction Width option. The AXI Quad SPI core supports continuous transfer mode. When configured as master, the transfer continues until the data is available in the transmit register/FIFO. This capability is provided in both manual and automatic slave select modes. As an example, during the page read command, the command, address, and number of data beats in the DTR must be set equal to the same number of data bytes intended to be read by the SPI memory. When the core is configured as a slave, if the slave select line (SPISEL) goes High (inactive state) during the data element transfer, the current transfer is aborted. If the slave select line goes Low, the aborted data element is transmitted again. The slave mode of the core is allowed only in the standard SPI mode.

2023-07-22 上传