
关于VHDL语言的,用quartus II运行了一下发现有错 5
这么个提示Error(10500):VHDLsyntaxerroratsr.vhd(8)neartext",";expecting";",or")"说一下双击了错误显示在...
这么个提示Error (10500): VHDL syntax error at sr.vhd(8) near text ","; expecting ";", or ")"说一下双击了错误显示在第8行,可是我看来看去这都没错啊下面是程序library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all; entity sr is port(k1,k2,k3,k4,k5:in std_logic; en:in std_logic_vector(1 downto 0) y1,y2,y3,y4:out std_logic_vector(3 downto 0)); end sr;architecture one of sr is begin process(Q,en) begin if k5'event and k5='1'then if en="00" then y1<=k1&k2&k3&k4; elsif en="01"then y2<=k1&k2&k3&k4; elsif en="10"then y3<=k1&k2&k3&k4; else y4<=k1&k2&k3&k4; end if; end if; end process;end one;
知道哪里错了,随便来个人我给采纳 展开
知道哪里错了,随便来个人我给采纳 展开
1个回答
2015-11-28
展开全部
小错误 ,检查你的实体名与文件名是否一致,entity .. architecture 里的实体名是否一致!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询