Gast
#454849
Hallo ! Bin gerade dabei mir ein wenig VHDL beizubringen und bekomme beim implementieren Schwierigkeiten mit dem Code. Würde mich sehr über Eure Hilfe freuen. Danke Sascha library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; ------------------------------------------------------------------------ ---------- -- Company: -- Engineer: -- -- Create Date: 20:27:56 12/07/2006 -- Design Name: -- Module Name: led_modul - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- ------------------------------------------------------------------------ ---------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; ---- Uncomment the following library declaration if instantiating ---- any Xilinx primitives in this code. --library UNISIM; --use UNISIM.VComponents.all; entity led_modul is Port ( tst : in STD_LOGIC; clk : in STD_LOGIC; rst : in STD_LOGIC; lamp : out STD_LOGIC); end led_modul; architecture verhaltensbeschreibung of led_modul is type zv_type is (AUS, EINSCHALTEN, EIN, AUSSCHALTEN); signal ZU, ZVNEU : ZV_TYPE; begin ZYKLUS_PROC: process (clk, rst) begin if( rst='1') then ZV<=AUS; elsif rising_edge (clk) then ZV<=ZVNEU; end if; end process; ELZS_AL_PROC : process(ZV,tst,AUS, EINSCHALTEN, EIN, AUSSCHALTEN,lamp) begin case ZV is when AUS => if (tst='0')then lamp<='0'; ZVNEU<=AUS; else lamp<='1'; ZVNEU<='EINSCHALTEN'; end if; when EINSCHALTEN => if (tst='1')then lamp<='1'; ZVNEU<=EINSCHALTEN; else lamp<='1'; ZVNEU<='EIN'; end if; when EIN => if (tst='0')then lamp<='1'; ZVNEU<=EINd; else lamp<='0'; ZVNEU<='AUSSCHALTEN'; end if; when AUSSCHALTEN => if (tst='1')then lamp<='0'; ZVNEU<=AUSSCHALTEN; else lamp<='0'; ZVNEU<='AUS'; end if; end case; end process; end verhaltensbeschreibung; ERROR:HDLParsers:164 - "C:/Xilinx/led_modul/led_modul.vhd" Line 66. parse error, unexpected TICK ERROR:HDLParsers:164 - "C:/Xilinx/led_modul/led_modul.vhd" Line 74. parse error, unexpected TICK ERROR:HDLParsers:164 - "C:/Xilinx/led_modul/led_modul.vhd" Line 82. parse error, unexpected TICK