我有一個問題,我的VHDL代碼。在active-hdl中它可以很好地工作,但是當我嘗試在使用ise設計xilinx的FPGA電路板上實現它時,我遇到了一個組件的問題。我發現該錯誤是:Vhdl錯誤,我不明白
ERROR:Xst:827 - "E:/proiect_final/dispozitiv_impartitor/src/generator_square_wave.vhd" line 16: Signal numar_intermediar<0> cannot be synthesized, bad synchronous description. The description style you are using to describe a synchronous element (register, memory, etc.) is not supported in the current software release.
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity generator_square_wave is
port(clock,reset :in bit;
controler:std_logic_vector(2 downto 0);
numar:out std_logic_vector(7 downto 0);
data_clock:out bit);
end generator_square_wave ;
architecture descriere of generator_square_wave is
signal reset1:std_logic;
begin
process (clock,reset) -- here it shows me the error
variable numar_intermediar:bit_vector(3 downto 0):="0000";
variable numar_intermediar2:std_logic_vector(3 downto 0);
variable bitul:bit;
begin
reset1<=to_stdulogic(reset);
if rising_edge(reset1) then
numar_intermediar:="0001";
numar_intermediar2:=To_StdLogicVector(numar_intermediar);
numar(0)<=numar_intermediar2(0);
numar(1)<=numar_intermediar2(1);
numar(2)<=numar_intermediar2(2);
numar(3)<=numar_intermediar2(3);
numar(4)<='0';
numar(5)<='0';
numar(6)<='0';
numar(7)<='0';
else if(clock'event and clock ='1' and controler="001")then
bitul:=numar_intermediar(0);
numar_intermediar:=numar_intermediar srl 1;
numar_intermediar(3):=bitul;
numar_intermediar2:=To_StdLogicVector(numar_intermediar);
numar(0)<=numar_intermediar2(0);
numar(1)<=numar_intermediar2(1);
numar(2)<=numar_intermediar2(2);
numar(3)<=numar_intermediar2(3);
numar(4)<='0';
numar(5)<='0';
numar(6)<='0';
numar(7)<='0';
if(reset/='1' and controler/="001")then
numar<="00000000";
end if;
end if;
end if;
data_clock<=clock;
end process;
end descriere;
謝謝fru1tbat。如果你不介意,我還有一個問題。在代碼的某處,在這一行有另一個我沒有得到的錯誤:\t \t \t if(data_clock'event和data_clock ='1')then - ERROR:HDLCompiler:76 - Line 31:statement is not synthesizable因爲它在NOT(時鐘邊沿)條件下不保持它的值 – user3653513
我沒有注意到你在你的進程中分配了'data_clock'。你也應該使這個聲明同時發生。 – fru1tbat
你能告訴我一般這個錯誤應該是什麼意思嗎?因爲我的vhdl代碼的另一個組件中有這個錯誤。同樣,這段代碼適用於VHDL,我認爲它可能存在的問題是這是關於Suite ISE的錯誤。我也使用了rising_edge,但是這並沒有解決我的問題(同樣的錯誤) – user3653513