2011-05-18 133 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