求助fifo ip核的问题

[复制链接]
 楼主| mxjtracy 发表于 2011-12-2 16:07 | 显示全部楼层 |阅读模式
请问ip core生成的fifo怎么控制,是不是还需要驱动一下啊,通过WR_CLK.我现在用就是读写使能信号直接pull up,写的时候直接给个写信号上升沿把数写进去,读的时候给个读信号上升沿将数据读出来。利用全局始终来给它复位。可这样做读不出来数据,也写不进去,跪求各位解决
opple 发表于 2011-12-3 21:06 | 显示全部楼层
我觉得需要驱动下
opple 发表于 2011-12-3 21:06 | 显示全部楼层
明空 发表于 2011-12-3 23:30 | 显示全部楼层
生产的fifo一般都是同步的,写使能有效,每一个wr_clk上升沿写入一个数据,读同理
GoldSunMonkey 发表于 2011-12-3 23:31 | 显示全部楼层
我觉得需要驱动下
opple 发表于 2011-12-3 21:06

为啥要驱动?
GoldSunMonkey 发表于 2011-12-3 23:32 | 显示全部楼层
1# mxjtracy 照明空说的办。
 楼主| mxjtracy 发表于 2011-12-7 12:41 | 显示全部楼层
6# GoldSunMonkey 好的多谢
GoldSunMonkey 发表于 2011-12-7 15:16 | 显示全部楼层
爱在2012 发表于 2011-12-29 20:24 | 显示全部楼层
搞定没?
zhongxon 发表于 2011-12-29 22:43 | 显示全部楼层
生成fifo的时候,它会有HDL Instantiation Template。按着这个调用就行。这个是我用的:
输入36bit 512.输出18bit 1024.
capture_fifo capture_fifo_inst1 (
  .rst(rst),                                                                 // input rst
  .wr_clk(wr_clk_bufr),                                                 // input wr_clk
  .rd_clk(rd_clk),                                                 // input rd_clk
  .din({6'b000000,din_reg[23:12],6'b000000,din_reg[11:0]}), // input [35 : 0] din
  .wr_en(wr_en),                                                         // input wr_en
  .rd_en(rd_en),                                                         // input rd_en
  .dout(fifo_dout),                                                 // output [17 : 0] dout
  .full(),                                                                         // output full
  .almost_full(),                                                 // output almost_full
  .wr_ack(),                                                                 // output wr_ack
  .overflow(),                                                         // output overflow
  .empty(empty),                                                                 // output empty
  .almost_empty(),                                                 // output almost_empty
  .valid(),                                                                 // output valid
  .underflow()                                                         // output underflow

评分

参与人数 2威望 +3 收起 理由
12089044 + 1
GoldSunMonkey + 2 我很赞同

查看全部评分

GoldSunMonkey 发表于 2011-12-29 23:41 | 显示全部楼层
;P楼上说的对。加分
binghe41 发表于 2012-7-17 22:24 | 显示全部楼层
这样啊
GoldSunMonkey 发表于 2012-7-17 23:53 | 显示全部楼层
vivisa 发表于 2012-7-18 14:48 | 显示全部楼层
酱紫啊。:)
GoldSunMonkey 发表于 2012-7-18 15:14 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

14

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部

0

主题

14

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部