2011-05-18 59 views
0

错误是: “ERROR:XST:528 - 多源在单位上信号NFW”。如何解决以下vhdl代码中发生的错误?

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); 
    end if; 
end process; 

process(sync_dw_reg,noofwords) 
begin 
    if(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; 
end process; 
+0

完全重复(同一用户):?任何人都可以让我知道了什么是用下面的VHDL代码的问题(http://stackoverflow.com/questions/6043975/can-anybody-let-me-know-什么 - 是最问题与最以下-VHDL代码) – 2011-05-18 17:20:17

+1

@保罗:这不是一个重复的,但后续。 – bmk 2011-05-18 17:29:40

回答

4

问题是,您正在从两个进程中分配信号nfw。这是不可能的。你将不得不使用两个不同的信号(如果你需要它们)并以某种方式组合它们。 RESP:你可以添加一个if (rst_n='1')到第二处理和分配的nfw有重置价值。

+0

好的,我会试试。感谢您的答复。 – meghs 2011-05-18 17:07:02