|
library ieee;
use ieee.std_logic_1164.all;
entity vhdl1 is
port (a,b,c:in std_logic;
re:in std_logic;
y ut std_logic_vector(1 downto 0));
end entity vhdl1;
architecture responder_table of vhdl1 is
signal door:bit:='0';
begin
process(a,b,c)is
variable con:std_logic_vector(2 downto 0);
begin
con:=a&b&c;
if(door='0') then
case con is
when "100"=>y<="01";
when "010"=>y<="10";
when "001"=>y<="11";
when others => y<="XX";
end case;
door<='1';
end if;
end process;
process(re) is
begin
door<='0';
end process;
end architecture responder_table;
Error (10028): Can't resolve multiple constant drivers for net "door" at Vhdl1.vhd(40)
我是想做一个三人抢答器,不止到定义信号量在那里定义,re为重新开始,abc 分别为强大按牛,请指教,谢谢!在先等!! |
|