To meet real-time requirements of efficiently transferring and exchanginglarge amounts of data in a parallel system,a quad-port RAM was designed and implemented based on FPGA .The quad-port RAM contains a dual-port RAM module, four buffer modules and two control modules .The dual-port RAM is to serve as RAM memory .The buffer module is the interface of data buffer between external processors and the dual-port RAM,and it includes three FIFOs,the FIFOs separately buffer the read/write command,address and data from the external processors .The control module is implemented by finite state machine ,it reads and writes the dual-port RAM through time-sharing reading the four buffer modules ,and realizes the function of aquad-port RAM.Software testing and the application of specific projects show that the system function is normal ,this method is feasible and effective.%为了满足并行系统能够高效进行大量数据传输和交换的实时性要求,设计并实现了基于FPGA的四口RAM.四口RAM由1个双口RAM模块、4个缓存模块和2个控制模块构成.双口RAM作为四口RAM的存储实体.缓存模块是外部多处理器与双口RAM之间接口数据缓冲,由3个FIFO构成,分别缓存外部多处理器的读写命令、地址和数据.控制模块由有限状态机实现,通过分时读取4个缓存模块,完成对双口RAM的读写操作,实现四口RAM功能.软件测试和具体项目的应用表明,系统功能正常,此方法具有可行性和有效性.
展开▼