WHEN "01" => Q<='0';--你定义的Q是std_logic类型,但你赋值的时候由于没加单引号,被认为是integer类型了,所以应加单引号,下一句也是 WHEN "10" => Q<='1';另外Q好像应该定义为buffer模式才行吧。
input(1) WHEN "01",input(2) WHEN "10",input(3) WHEN "11",
Error (10517): VHDL type mismatch error at Transmit2.vhd(118): std_logic_vector type does not match integer literal at constant preamble :
编译提示:Error (10517): VHDL type mismatch error at mux4.vhd(13): std_logic_vector type does not match integer literalError (10517): VHDL type mismatch error at mux4.vhd(14): std_logic_vector type does not match integer literalError (10517): VHDL type mismatch error at mux4.vhd(15)...
WHEN OTHERS => Q<= NOT Q;END CASE;END IF;END PROCESS;END;报错:Error (10517): VHDL type mismatch error at JK.vhd(16): std_logic type does not match integer literal entity controlis 改entity control is 少空格 architecture a of control is 少空格 use ieee.std_logic_1164....