我刚开始学,照书上写了一个程序,如下,
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 THEN COUT<='1';
ELSE COUT<='0';
END IF;
CQ<=CQI;
END PROCESS;
END behav;
在编译的时候出现了这样的错误:
Warning: FLEXlm software error: Invalid (inconsistent) license key The 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
这是什么原因???? |