完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
library ieee;
use ieee.std_logic_1664.all; use ieee.std_lodic_unsigned.all; entity cnt10 is port (clk,rst,en,load:in std_logic; data :in std_logic_vector(3 downto 0); DOUT :OUT STD_LOGIC_VECTOR(3 DOWNTO 0); COUT : OUT STD_LOGIC); end cnt10; architecture behav of cnt10 is begin process(clk,res,en,load) variable q : std_logic_vector(3 downto 0); begin if rst='0' then q := (others=>'0'); elsif clk'event and clk='1' then if en='1' then if (load='0') then q :=data; else if q<9 then q:=q+1; else q := (others=>'0'); end if; end if; end if; end if; if q="1001" then cout<='1'; else cout<='0';end if; dout <= q ; end process; end behav; 以上程序没问题,但是软件还是报错了。以下时报错内容,请大神们告诉我一下原因,万分感谢 Error (10481): VHDL Use Clause error at vhdl1.vhd(2): design library "ieee" does not contain primary unit "std_logic_1664" Error (10800): VHDL error at vhdl1.vhd(2): selected name in use clause is not an expanded name Error (10481): VHDL Use Clause error at vhdl1.vhd(3): design library "ieee" does not contain primary unit "std_lodic_unsigned" Error (10800): VHDL error at vhdl1.vhd(3): selected name in use clause is not an expanded name Error: Quartus II 64-Bit Analysis & Synthesis was unsuccessful. 4 errors, 0 warnings Error: Peak virtual memory: 814 megabytes Error: Processing ended: Fri Oct 12 11:15:43 2018 Error: Elapsed time: 00:00:16 Error: Total CPU time (on all processors): 00:00:39 Error (293001): Quartus II Full Compilation was unsuccessful. 6 errors, 0 warnings |
|
相关推荐
2个回答
|
|
|
|
|
|
|
|
|
看了一下果然是打错了吧。。。第一个是1164,第二个是logic不是lodic
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
NVMe高速传输之摆脱XDMA设计52:主要功能测试结果与分析4(NVMe 指令提交与完成机制测试)
866 浏览 0 评论
NVMe高速传输之摆脱XDMA设计51:主要功能测试结果与分析3 nvmePCIe高速存储 PCIe高速存储
546 浏览 0 评论
NVMe高速传输之摆脱XDMA设计50:主要功能测试结果与分析2 nvmePCIe高速存储
524 浏览 0 评论
NVMe高速传输之摆脱XDMA设计49:主要功能测试结果与分析1
1568 浏览 0 评论
1031 浏览 0 评论
4525 浏览 64 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-9 07:33 , Processed in 0.675236 second(s), Total 75, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2171