VHDL第一次用,不知道怎么改错误,求大神指点
Error (10500): VHDL syntax error at Vhdl2.vhd(17) near text ""; expecting "then"
Error (10500): VHDL syntax error at Vhdl2.vhd(17) near text
Error (10500): VHDL syntax error at Vhdl2.vhd(23) near text "if"; expecting "process"
Error: Quartus II 64-Bit Analysis & Synthesis was unsuccessful. 4 errors, 0 warnings
Error: Peak virtual memory: 531 megabytes
Error: Processing ended: Sat Dec 24 20:33:29 2016
Error: Elapsed time: 00:00:02
Error: Total CPU time (on all processors): 00:00:01
Error (293001): Quartus II Full Compilation was unsuccessful. 6 errors, 0 warnings
library ieee;
use ieee.std_logic_arith.all;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity ppt is
port(clk : in std_logic;
start : in std_logic;
x : in std_logic;
y : out std_logic);
end ppt;
architecture behav of askt is
signal q:integer range 0 to 3;
signal f:std_logic;
begin
process(clk)
begin
if clk'event and clk=’1’then
if start='0' then q<=0;
elsif q<=1 then f<='1';q<=q+1;
elsif q=3 then f<='0';q<=0;
else f<='0';q<=q+1;
end if;
end if;
end process;
y<=x and f;
end behav;