完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
本帖最后由 wqsax 于 2014-11-3 21:46 编辑
错误Error (10500): VHDL syntax error at CNT10_TB.vhd(21) near text "BEGIN"; expecting an identifier ("begin" is a reserved keyword), or "constant", or "file", or "signal", or "variable"Error (10500): VHDL syntax error at CNT10_TB.vhd(27) near text "PROCESS"; expecting ";", or an identifier ("process" is a reserved keyword), or "architecture" 程序LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; use IEEE.std_logic_unsigned.all; ENTITY CNT10_TB IS END CNT10_TB; ARCHITECTURE ONE OF CTN10_TB IS COMPONENT CNT10 PORT (CLK,REST,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_VECTOR(3 DOWNTO 0); END COMPONENT; SIGNAL CLK :STD_LOGIC :='0'; SIGNAL RST :STD_LOGIC :='1'; SIGNAL EN :STD_LOGIC :='0'; SIGNAL LOAD:STD_LOGIC :='1'; SIGNAL DATA :IN STD_LOGIC_VECTOR(3 DOWNTO 0); SIGNAL DOUT : STD_LOGIC_VECTOR(3 DOWNTO 0); SIGNAL COUT : STD_LOGIC; CONSTANT CLK_P :TIME :=30 ns; BEGIN U1: CNT10 PORT MAP (CLK =>CLK, RST=>RST,EN=>EN,LOAD=>LOAD, DATA=>DATA, DOUT=>DOUT, COUT=>COUT); PROCESS BEGIN CLK<='0'; WAIT FOR CLK_P; CLK<='1'; WAIT FOR CLK_P; END PROCESS; RST <= '1' ,'0' AFTER 110 ns, '1' AFTER 114 ns; EN <= '0' ,'1' AFTER 110 ns ; LOAD <= '1' ,'0' AFTER 910 ns, '1' AFTER 940 ns; DATA <= "0100","0110" AFTER 400 ns, "0111" AFTER 700ns,"0100" AFTER 1000 ns; END ONE; |
|
相关推荐
1个回答
|
|
看上面说关键字的问题,可能是前面库没有声明。
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
908 浏览 0 评论
矩阵4x4个按键,如何把识别结果按编号01-16(十进制)显示在两个七段数码管上?
1115 浏览 0 评论
882 浏览 0 评论
1966 浏览 0 评论
488 浏览 0 评论
1310 浏览 30 评论
5478 浏览 113 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-13 04:04 , Processed in 0.680353 second(s), Total 73, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号