When i compiled this code using warp 6.3 galaxy, i got a popup message "vhdlfe.exe has encountered a problem and needs to close. We are sorry for the inconvenience", need help.
Thanks,
------------------------------------
Code:
library IEEE;
use IEEE.STD_LOGIC_1164.all, IEEE.NUMERIC_STD.all;
entity ENCODE_8_3_CASE is
port (A:in unsigned(7 downto 0);
Y:out unsigned(2 downto 0));
end entity ENCODE_8_3_CASE;
attribute part_name of ENCODE_8_3_CASE : entity is "22V10";
attribute PIN_NUMBERS of ENCODE_8_3_CASE: entity is
" A(7):09 A(6):08 A(5):07 A(4):6 A(3):5 A(2):4 A(1):3 A(0):2 Y(2):21 Y(1):22 Y(0):23";
end entity ENCODE_8_3_CASE;
architecture LOGIC of ENCODE_8_3_CASE is
begin
process(A)
begin
case A is
when "00000001" => Y <= "000";
when "00000010" => Y <= "001";
when "00000100" => Y <= "010";
when "00001000" => Y <= "011";
when "00010000" => Y <= "100";
when "00100000" => Y <= "101";
when "01000000" => Y <= "110";
when "10000000" => Y <= "111";
when others => Y <= "000";
end case;
end process;
end architecture LOGIC;