如何利用altera 给出的megafunction配置成自己想要的FIFO和RAM
2010-09-14 22:24
633 查看
转载
在FPGA设计过程中,一般都要用到FIFO和RAM,如何利用altera 给出的megafunction配置成自己想要的FIFO和RAM,就得从自己的设计的RAM功能来看。主要考虑:端口数目、宽度和深度、时钟、时钟使能、读端口使能、输出端口是否寄存、复位(port、Widths and depths、Clks 、readen、Regs 、clkens、 Aclrs)。
这里强调下:
Asychronous
Clear,只复位输入/输出端口的寄存器,不复位RAM块里的数据。对altera
的不同芯片,有的只复位输出寄存器,有的复位输入和输出寄存器。
还要注意:Write and Read Operations Triggering,
即读/写操作的时序,比如用M4K 的Memory Blocks作为RAM的话,下降沿写入数据,上升沿读出数据。
详细可以看:http://www.altera.com/literature/ug/ug_ram.pdf
下面就介绍几种常用的storage megafunction。
1. altsyncram
Parameterized true dual-port synchronous RAM megafunction。
端口:可配置成:一端口读(或一端读、一端写;一端读、双端写;双端口读、双端口读写)的异步复位RAM。
时钟:可配置成单一时钟、读/写双时钟、端口A/B双时钟。
2. lpm_fifo _dc
--------------------------------------------------------------------------------
Parameterized
dual-clock FIFO megafunction.
读数据端口:可配置成Legacy
synchronour FIFO mode 和Show-ahead synchronous FIFO mode.
3.
lpm_fifo
--------------------------------------------------------------------------------
Parameterized single-clock FIFO megafunction.
4. lpm_shiftreg
--------------------------------------------------------------------------------
Parameterized
shift register megafunction. Altera recommends that you use the lpm_shiftreg
function to replace all other types of shift register functions.
5. lpm_tff
--------------------------------------------------------------------------------
Parameterized
T-type flipflop megafunction. Altera recommends that you use lpm_ff rather than
lpm_tff
下列的RAM megafunction,Altera 推荐用altsyncram
1. Alt3pram :
Parameterized
triple-port RAM megafunction.
2.
Altdpram
Parameterized dual-port RAM
megafunction. This megafunction is provided only for backward compatibility in
Cyclone, Cyclone II, HardCopy Stratix, Stratix, and Stratix GX
designs; instead, Altera recommends using the altsyncram megafunction.
3. csdpram Parameterized cycle-shared dual-port
RAM megafunction. Altera recommends using lpm_ram_dp for dual-port RAM functions
in ACEX 1K, APEX 20K, APEX II, FLEX 10KE, and Mercury projects.
4.
lpm_ram_dp
Parameterized
dual-port RAM megafunction. This megafunction is provided only for backward
compatibility in Cyclone, Cyclone II, HardCopy Stratix, Stratix, and Stratix GX
designs; instead, Altera recommends using the altsyncram
megafunction.
5. lpm_ram_dq Parameterized RAM with separate
input and output ports megafunction. Altera recommends using lpm_ram_dq to
implement asynchronous memory or memory with synchronous inputs and/or outputs.
This megafunction is provided only for backward compatibility in Cyclone,
Cyclone II, HardCopy Stratix, Stratix, and Stratix GX designs; instead, Altera
recommends using the altsyncram megafunction.
6. lpm_ram_io Parameterized RAM with a single
I/O port megafunction. This megafunction is provided only for backward
compatibility in Cyclone, Cyclone II,
HardCopy Stratix, Stratix, and Stratix GX design; instead, Altera recommends
using the altsyncram megafunction.
7. pm_rom Megafunction
Parameterized
ROM megafunction. Altera recommends that you use the lpm_rom function to
implement all ROM functions. This megafunction is provided only for backward
compatibility for Cyclone, Cyclone II, HardCopy Stratix, Stratix, and Stratix
GX devices; instead, Altera recommends
using the altsyncram megafunction.
下列的FIFO megafunction,Altera 推荐用lpm_fifo_dc
1. csfifo Megafunction
Parameterized
cycle-shared FIFO megafunction. Altera recommends that you use lpm_fifo instead
of csfifo for single-clock FIFO functions, and that you use lpm_fifo_dc instead
of csfifo for dual-clock FIFO functions.
2. dcfifo Megafunction
Parameterized
dual-clock FIFO megafunction
3. scfifo Megafunction
Parameterized
single-clock FIFO megafunction
在FPGA设计过程中,一般都要用到FIFO和RAM,如何利用altera 给出的megafunction配置成自己想要的FIFO和RAM,就得从自己的设计的RAM功能来看。主要考虑:端口数目、宽度和深度、时钟、时钟使能、读端口使能、输出端口是否寄存、复位(port、Widths and depths、Clks 、readen、Regs 、clkens、 Aclrs)。
这里强调下:
Asychronous
Clear,只复位输入/输出端口的寄存器,不复位RAM块里的数据。对altera
的不同芯片,有的只复位输出寄存器,有的复位输入和输出寄存器。
还要注意:Write and Read Operations Triggering,
即读/写操作的时序,比如用M4K 的Memory Blocks作为RAM的话,下降沿写入数据,上升沿读出数据。
详细可以看:http://www.altera.com/literature/ug/ug_ram.pdf
下面就介绍几种常用的storage megafunction。
1. altsyncram
Parameterized true dual-port synchronous RAM megafunction。
端口:可配置成:一端口读(或一端读、一端写;一端读、双端写;双端口读、双端口读写)的异步复位RAM。
时钟:可配置成单一时钟、读/写双时钟、端口A/B双时钟。
2. lpm_fifo _dc
--------------------------------------------------------------------------------
Parameterized
dual-clock FIFO megafunction.
读数据端口:可配置成Legacy
synchronour FIFO mode 和Show-ahead synchronous FIFO mode.
3.
lpm_fifo
--------------------------------------------------------------------------------
Parameterized single-clock FIFO megafunction.
4. lpm_shiftreg
--------------------------------------------------------------------------------
Parameterized
shift register megafunction. Altera recommends that you use the lpm_shiftreg
function to replace all other types of shift register functions.
5. lpm_tff
--------------------------------------------------------------------------------
Parameterized
T-type flipflop megafunction. Altera recommends that you use lpm_ff rather than
lpm_tff
下列的RAM megafunction,Altera 推荐用altsyncram
1. Alt3pram :
Parameterized
triple-port RAM megafunction.
2.
Altdpram
Parameterized dual-port RAM
megafunction. This megafunction is provided only for backward compatibility in
Cyclone, Cyclone II, HardCopy Stratix, Stratix, and Stratix GX
designs; instead, Altera recommends using the altsyncram megafunction.
3. csdpram Parameterized cycle-shared dual-port
RAM megafunction. Altera recommends using lpm_ram_dp for dual-port RAM functions
in ACEX 1K, APEX 20K, APEX II, FLEX 10KE, and Mercury projects.
4.
lpm_ram_dp
Parameterized
dual-port RAM megafunction. This megafunction is provided only for backward
compatibility in Cyclone, Cyclone II, HardCopy Stratix, Stratix, and Stratix GX
designs; instead, Altera recommends using the altsyncram
megafunction.
5. lpm_ram_dq Parameterized RAM with separate
input and output ports megafunction. Altera recommends using lpm_ram_dq to
implement asynchronous memory or memory with synchronous inputs and/or outputs.
This megafunction is provided only for backward compatibility in Cyclone,
Cyclone II, HardCopy Stratix, Stratix, and Stratix GX designs; instead, Altera
recommends using the altsyncram megafunction.
6. lpm_ram_io Parameterized RAM with a single
I/O port megafunction. This megafunction is provided only for backward
compatibility in Cyclone, Cyclone II,
HardCopy Stratix, Stratix, and Stratix GX design; instead, Altera recommends
using the altsyncram megafunction.
7. pm_rom Megafunction
Parameterized
ROM megafunction. Altera recommends that you use the lpm_rom function to
implement all ROM functions. This megafunction is provided only for backward
compatibility for Cyclone, Cyclone II, HardCopy Stratix, Stratix, and Stratix
GX devices; instead, Altera recommends
using the altsyncram megafunction.
下列的FIFO megafunction,Altera 推荐用lpm_fifo_dc
1. csfifo Megafunction
Parameterized
cycle-shared FIFO megafunction. Altera recommends that you use lpm_fifo instead
of csfifo for single-clock FIFO functions, and that you use lpm_fifo_dc instead
of csfifo for dual-clock FIFO functions.
2. dcfifo Megafunction
Parameterized
dual-clock FIFO megafunction
3. scfifo Megafunction
Parameterized
single-clock FIFO megafunction
相关文章推荐
- 如何利用altera 给出的megafunction配置成自己想要的FIFO和RAM ——本文为转载
- 如何利用kaldi提自己想要的特征(mfcc plp pitch)
- 教你如何利用分布式的思想处理集群的参数配置信息——spring的configurer妙用
- 如何将自己的模块添加到Linux 2.6内核的配置系统中
- 如何利用hexo在本地搭建自己的博客
- 【百度地图API】如何利用自己的数据制作社交地图?只显示可视区域内的标注
- 发现Windows程序 最主要的还是要理解消息和窗口的相互调用,相互影响是如何实现的,才能更准确的去理解Windows程序,去编好自己想要的程序功能
- 如何自己配置和编译一个完整的Linux嵌入式开发环境?
- 如何在网页中嵌入自己想要的字体
- Spring-Security (学习记录五)--配置登录时,密码采用md5加密,以及获取登录信息属性监听同步自己想要的登录信息
- 个人源码管理:如何在本机配置自己的SVN Repository (图解)
- 【转】作为一名基层管理者如何利用情商管理自己和团队(二)
- 如何利用VBA將word2003檔裡圖片的配置予以改變?
- [zz]在web.config文件中如何添加自己的配置信息
- 如何利用自己的电脑做服务器发布tomcat的WEB项目供外网访问
- 如何利用节日祝福来推广自己的网站
- 如何在.net中配置自己的数据库
- 如何高效利用github提升自己
- 在ADT中如何选择自己想要的模拟器来运行Android Application
- 如何利用Apache+Tomcat配置JSP开发环境?