Max wrote:
> I have a problem with types:
>
> -----8<-----------
> entity driver is
> Port ( data : inout integer range 0 to 255;
> clk : in std_logic);
> end driver;
>
> architecture Behavioral of driver is
>
> type data_type is range 0 to 255;
This declares a new type that as nothing to do with Integers.
subtype data_type is Integer range 0 to 255;
declares a subtype of type Integer and solves your problem.
Regards,
PS: inout mode for an integer port???
--
Renaud Pacalet, ENST, 46 rue Barrault 75634 Paris Cedex 13
###### Tel. : 01 45 81 78 08 | Fax : 01 45 80 40 36 ######
# Fight Spam! Join EuroCAUCE:
http://www.euro.cauce.org/ #