hi
I have problem with my first program in VHDL ,
I am working with ISE 8.2
my code is:
entity mux2 is
generic(type DATA_TYPE );
port (sel : in bit; a, b : in DATA_TYPE ; z : out DATA_TYPE );
end mux2;
architecture RTL of mux2 is
begin
z <= a when sel ='0' else b;
end architecture RTL;
the problem is:
ERROR:HDLParsers:164 - "J:/FPGA/test/Mux2/mux2.vhd" Line 31. parse error, unexpected TYPE, expecting IDENTIFIER
would you please help me
I have problem with my first program in VHDL ,
I am working with ISE 8.2
my code is:
entity mux2 is
generic(type DATA_TYPE );
port (sel : in bit; a, b : in DATA_TYPE ; z : out DATA_TYPE );
end mux2;
architecture RTL of mux2 is
begin
z <= a when sel ='0' else b;
end architecture RTL;
the problem is:
ERROR:HDLParsers:164 - "J:/FPGA/test/Mux2/mux2.vhd" Line 31. parse error, unexpected TYPE, expecting IDENTIFIER
would you please help me