Hi all,
I am new to VHDL.
My problem is this:
I have defined in a package the type data_out,as following:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
constant width : INTEGER := 4;
type data_out is array(0 to width-1) of std_logic;
Then I have as output:
data : out data_out;
and also a signal (maned sig) as std_logic_vector(0 to width-1).
So, when I calculate the expression of sig and finally I want to assign it to data (of type data_out) , I have an error message that says:<<Type of data is incompatible with type of sig>>.
But, an array of standar_logic, is not equal to a standard_logic_vector?
How can I resolve the problem?
Please, help me :-(
tnx to all
I am new to VHDL.
My problem is this:
I have defined in a package the type data_out,as following:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
constant width : INTEGER := 4;
type data_out is array(0 to width-1) of std_logic;
Then I have as output:
data : out data_out;
and also a signal (maned sig) as std_logic_vector(0 to width-1).
So, when I calculate the expression of sig and finally I want to assign it to data (of type data_out) , I have an error message that says:<<Type of data is incompatible with type of sig>>.
But, an array of standar_logic, is not equal to a standard_logic_vector?
How can I resolve the problem?
Please, help me :-(
tnx to all