当前位置:网站首页>IP核:FIFO
IP核:FIFO
2022-08-01 23:59:00 【刘颜儿】
前言
例化这个FIFO的IP核用于SDRAM中读写FIFO
正文
只配置了下面3部分,其余保持默认即可



配置完成后,即可到文件夹找到例化文件,将其复制到顶层模块中

//------------- wr_fifo_data -------------
fifo_r_w wr_fifo_data(
//用户接口
.wrclk (wr_fifo_wr_clk ), //写时钟
.wrreq (wr_fifo_wr_req ), //写请求
.data (wr_fifo_wr_data), //写数据
//SDRAM接口
.rdclk (sdram_clk ), //读时钟
.rdreq (sdram_wr_ack ), //读请求
.q (sdram_data_in ), //读数据
.rdusedw (wr_fifo_num ), //FIFO中的数据量
.wrusedw ( ),
.aclr (~sdram_rst_n || wr_fifo_rst) //清零信号
);
//------------- rd_fifo_data -------------
fifo_r_w rd_fifo_data(
//sdram接口
.wrclk (sdram_clk ), //写时钟
.wrreq (sdram_rd_ack ), //写请求
.data (sdram_data_out ), //写数据
//用户接口
.rdclk (rd_fifo_rd_clk ), //读时钟
.rdreq (rd_fifo_rd_req ), //读请求
.q (rd_fifo_rd_data), //读数据
.rdusedw ( ),
.wrusedw (rd_fifo_num ), //FIFO中的数据量
.aclr (~sdram_rst_n || rd_fifo_rst) //清零信号
);
边栏推荐
猜你喜欢

多御安全浏览器android版更新至1.7,改进加密协议

Work for 5 years, test case design is bad?To look at the big case design summary

How to get the best power efficiency in Windows 11?

经典文献阅读之--DLO

Classical Literature Reading--DLO

Excel导入和导出

Architecture basic concept and nature of architecture

SphereEx Miao Liyao: Database Mesh R&D Practice under Cloud Native Architecture

20220725 Information update

TCP 可靠吗?为什么?
随机推荐
2022第六届强网杯部分wp
ICLR 2022 Best Paper: Partial Label Learning Based on Contrastive Disambiguation
QML包管理
在MySQL中使用MD5加密【入门体验】
Detailed explanation of Zadig's self-testing and tuning environment technical solution for developers
Keepalived 高可用的三种路由方案
Chrome书签插件,让你实现高效整理
认识USB、Type-C、闪电、雷电接口
[Three sons] C language implements simple three sons
技术分享 | 接口测试中如何使用Json 来进行数据交互 ?
Enterprise firewall management, what firewall management tools are there?
windows sql server 如何卸载干净?
使用 Zadig 交付云原生微服务应用
Wincc报表教程(SQL数据库的建立,wincc在数据库中保存和查询数据,调用Excel模板把数据保存到指定的位置和打印功能)
TCP 可靠吗?为什么?
Excel导入和导出
async和await用法介绍
不就是个TCC分布式事务,有那么难吗?
GetHashCode方法与=
架构基本概念和架构本质