我得到錯誤爲「錯誤:Xst:827 - 」C:/1553/decoder_copy/decoder.vhd「行265:信號no_words不能合成,壞的同步描述」。有人可以讓我知道下面的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);
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;
end process;
由於錯誤來自XST,我強烈建議您閱讀XST用戶指南。特別是關於編碼風格的章節。 – George 2011-05-18 12:49:12