10372|0

1

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

求助,关于SRAM设计中出现latch [复制链接]

我设计了一个SRAM,可是结果出现了8个12bit的latch,不知道怎么消去,还望高手帮忙,在此先谢过了
!代码如下:
module SRAM(CLK, CS, AWE, A, D, AOE);
input CLK;
input CS;
input AWE;
input [2:0] A;
inout [11:0] D;
input AOE;

reg [11:0] MEM [7:0];


//Only CS is low and AWE is high,then read option is valid!
assign D = (((!CS) && AWE)==1)?MEM[A]:12'bz;
//Only AOE is low,then output data stored in the RAM to the inner FPGA modoule.
assign D = ((CLK && (!AOE))==1)?MEM[A]:12'bz;

always @(CS or AWE or A or D)
begin
  if((!CS) && (!AWE))//Only CS and AWE are low,then write option is
valid!
  begin
  MEM[A] = D;
  end
  else MEM[A] = MEM[A];
end
endmodule

有下面的warnings:
============================================================
*                   HDL Synthesis                     *
============================================================

Synthesizing Unit <SRAM>.
  Related source file is "SRAM.v".
WARNING:Xst:737 - Found 12-bit latch for signal <MEM_7>.
WARNING:Xst:737 - Found 12-bit latch for signal <MEM_6>.
WARNING:Xst:737 - Found 12-bit latch for signal <MEM_5>.
WARNING:Xst:737 - Found 12-bit latch for signal <MEM_4>.
WARNING:Xst:737 - Found 12-bit latch for signal <MEM_3>.
WARNING:Xst:737 - Found 12-bit latch for signal <MEM_2>.
WARNING:Xst:737 - Found 12-bit latch for signal <MEM_1>.
WARNING:Xst:737 - Found 12-bit latch for signal <MEM_0>.
  Found 12-bit tristate buffer for signal <D>.
  Found 12-bit 8-to-1 multiplexer for signal <$n0000> created at line 44.
  Summary:
   inferred 12 Multiplexer(s).
   inferred 24 Tristate(s).
Unit <SRAM> synthesized.

============================================================
*                 Low Level Synthesis                   *
============================================================
Loading device for application Rf_Device from file '3s400.nph' in environment C:\Xilinx.
WARNING:Xst:2040 - Unit SRAM: 12 multi-source signals are replaced by logic (pull-up yes): N11, N13, N15, N17, N19, N21, N23, N25, N27, N5, N7, N9.

此帖出自FPGA/CPLD论坛
点赞 关注
 

回复
举报
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/7 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表