VHDL 这是什么原因?
我刚开始学,照书上写了一个程序,如下,LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
ENTITY CNT10 IS
PORT(CLK,RST,EN : IN STD_LOGIC;
CQ: OUT STD_LOGIC_VECTOR(3 DOWNTO 0 );
COUT: OUT STD_LOGIC);
END ENTITY;
ARCHITECTURE behav OF CNT10 IS
BEGIN
PROCESS(CLK,RST,EN)
VARIABLE CQI :STD_LOGIC_VECTOR(3 DOWNTO 0);
BEGIN
IF RST='1' THEN CQI :=(OTHERS=>'0');
ELSIF CLK'EVENT AND CLK='1' THEN
IF EN='1' THEN
IF CQI<9 THEN CQI<=CQI+1;
ELSE CQI:=(OTHERS=>'0');
END IF;
END IF;
END IF;
IF CQI=9 THENCOUT<='1';
ELSE COUT<='0';
END IF;
CQ<=CQI;
END PROCESS;
END behav;
在编译的时候出现了这样的错误:
Warning: FLEXlm software error: Invalid (inconsistent) license keyThe license-key and data for the feature do not match.This usually happens when a license file has been altered Feature: quartus License path:D:\Program Files\altera\71\quartus\bin\directory\license.dat FLEXlm error:-8,523 For further information, refer to the FLEXlm End User Manual, available at "www.macrovision.com".
Error: Current license file does not support the EP1C3T144C8 device
Error: Quartus II Fitter was unsuccessful. 1 error, 1 warning
Error: Quartus II Full Compilation was unsuccessful. 1 error, 1 warning
这是什么原因???? 第二个if else不对,可以另写一个进程,进行判断处理,这种描述的EN,rst两个信号对第二组的IF else也不会起作用。。。 警告你的 license不是Altera提供的正版 license,所以无法做全编译。
原因是你的Quartuss没有破解,或者破解得不完整。
解决的办法要看你的Quartuss版本------你可以在百度上搜到解决办法。
第二个if else不对,可以另写一个进程,进行判断处理,这种描述的EN,rst两个信号对第二组的IF else也不会起作用
页:
[1]