【问题标题】:Can anybody let me know what is the problem with the following vhdl code?任何人都可以让我知道以下 vhdl 代码有什么问题吗?
【发布时间】:2011-05-18 11:33:20
【问题描述】:

我收到错误为“ERROR:Xst:827 - “C:/1553/decoder_copy/decoder.vhd”第 265 行:无法合成信号 no_words,错误的同步描述”。

     process(rst_n,dword_int,sync_csw_reg,sync_dw_reg)
     begin
if(rst_n='1')then
    noofwords<="00000";
    no_words<="00000";
    nfw<='1';
elsif(falling_edge(sync_csw_reg) and dword_int(10)='0' and nfw='1' )then
    noofwords<=dword_int(0 to 4);
    check_nfw<=dword_int(0 to 4);
elsif(falling_edge(sync_dw_reg))then
    if(no_words = noofwords)then
        no_words<="00000";
        nfw<='1';
    else
        no_words<= no_words+'1';
        nfw<='0';
    end if;
end if;

结束进程;

【问题讨论】:

  • 由于错误来自 XST,我强烈建议您阅读 XST 用户指南。特别是关于编码风格的章节。

标签: vhdl


【解决方案1】:

我猜这是因为您在一个进程中检查两个不同信号(sync_csw_regsync_dw_reg)的边缘。如果要合成代码,则不能这样做。你必须把它分成两个进程。

【讨论】:

  • 我收到另一个错误。我把它作为另一个问题。请看看你能不能给我一些建议。
猜你喜欢
  • 2017-04-22
  • 1970-01-01
  • 2023-01-15
  • 2020-04-01
  • 2015-05-24
  • 1970-01-01
  • 1970-01-01
  • 2019-12-02
  • 1970-01-01
相关资源
最近更新 更多