有人能告诉我下面的VHDL代码有什么问题吗? [英] Can anybody let me know what is the problem with the following vhdl code?

查看:20
本文介绍了有人能告诉我下面的VHDL代码有什么问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误"Error:xst:827-"C:/1553/decder_copy/decder.vhd"第265行:无法合成信号NO_WORD,同步描述不正确"。

     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;

结束进程;

推荐答案

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

这篇关于有人能告诉我下面的VHDL代码有什么问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆