ARM FPGA Extended Memory Interface

Connect a ARM Microcontroller to a FPGA using its Extended Memory Interface (EMI)

http://elinux.org/Connect_a_ARM_Microcontroller_to_a_FPGA_using_its_Extended_Memory_Interface_(EMI)

 

 

http://www.makestuff.eu/wordpress/software/fpgalink/

http://www.techonlineindia.com/techonline/design_centers/170438/interface-fpgas-microcontrollers

 

For a transfer of data to the FPGA, the direction of the bidirectional buffers in the PIO must be set to output. The software algorithm that transfers data to the FPGA is as follows:

PIO_DATA = ADDRESS; // Pass the address to write

PIO_CTROL = START | WR; // Send start of address cycle

 

PIO_CTROL = CLEAR; // Clear PIO ctrl, this ends the address cycle

 

PIO_DATA = DATA; // Set data to transfer

 

PIO_CTROL = START; // Data is ready in PIO

 

PIO_CTROL = CLEAR; // This ends the data cycle

 

Reading from the FPGA is similar. Again, the direction of the buffer on the PIO must first be set to output and then change directions to input to read the data from the FPGA, the following code is executed:

 

PIO_DATA = ADDRESS; // Set the address to read

PIO_CTROL = START | RD; // Send start of address cycle

 

PIO_CTROL = CLEAR; // Clear PIO ctrl, this ends the address cycle

 

PIO_DATA_DIR = INPUT; // Set PIO-Data direction as input to receive the data

 

DELAY(WAIT_FOR_FPGA); // wait for the FPGA to send the data

 

DATA_FROM_FPGA = PIO_DATA; // Read data from FPGA

 

posted @   IAmAProgrammer  阅读(702)  评论(0编辑  收藏  举报
(评论功能已被禁用)
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
点击右上角即可分享
微信分享提示