出现错误!求教!VHDL!~本人初学!
quartus吧
全部回复
仅看楼主
level 1
whale9793 楼主
VHDL程序请教!本人初学!
error (10327): vhdl error at jiafaqi.vhd(50): can't determine definition of
operator ""+"" -- found 0 possible
definitions
请问出现这个问题怎么解决?
我写了一个计数器但是出现这个错误!同样!我用lpm宏功能模块画计数器也是这个错误出现!
请教各位高手!
程序如下:
entity jiafaqi is
-- {{altera_io_begin}} do not remove this
line!
port
(
led : in std_logic;
led4 : out std_logic_vector(3
downto 0)
);
-- {{altera_io_end}} do not remove this line!
end
jiafaqi;
-- architecture body
architecture jiafaqi_architecture of jiafaqi is
signal
temp:std_logic_vector(3 downto
0):="0000";
begin
process
begin
if(led'event and
led="1")then
if(temp='1111')then
temp<="0000";
else
temp<=temp+1;
end if;
end if;
end
process;
led4<=temp;
end jiafaqi_architecture;
2012年11月12日 12点11分 1
1