谢谢,明白了。
我想设计一个分频器,是十分频。
我的程序如下:LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_arith.ALL;
ENTITY Cnt5b IS
PORT (clk: IN STD_LOGIC;
q: OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
END Cnt5b??;
ARCHITECTURE one OF Cnt10b IS
SIGNAL qout:STD_LOGIC_VECTOR(3 DOWNTO 0);
BEGIN
IF clk'EVENT AND clk??=??'1' THEN
IF qout="1001" THEN qou t<= "0000";
END?? IF??;
END IF;
q<=qout;
END PROCESS;
END one;
错误还是有:Error: E:/我的文档/myfile/edafile/eda/2/2/2.vhd??line 8?? Syntax error.??(VSS-1081) Error: E:/我的文档/myfile/edafile/eda/2/2/2.vhd??line 12?? Syntax error.??(VSS-1081) Error: E:/我的文档/myfile/edafile/eda/2/2/2.vhd??line 14?? Syntax error.??(VSS-1081)
我不知道其中究竟错在哪儿?
恳请大家指教!!!!!作者: wangz-1@sohu.co 时间: 2003-9-10 15:38
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_arith.ALL;
ENTITY Cnt10b IS
PORT (clk: IN STD_LOGIC;
q: OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
END Cnt10b??;
ARCHITECTURE one OF Cnt10b IS
SIGNAL qout:STD_LOGIC_VECTOR(3 DOWNTO 0);
BEGIN
IF clk'EVENT AND clk??=??'1' THEN
IF qout="1001" THEN qou t<= "0000";
END?? IF??;
END IF;
q<=qout;
END PROCESS;
END one; 保存的文件名和实体的名字要一致。作者: seasideboy 时间: 2003-9-12 17:48
qout++
哪里去了?
maxplus好像不支持中文路径名吧作者: hstaii@163.net 时间: 2003-9-19 09:58 标题: altera 器件下载