On Tue, Jan 23, 2007 at 03:49:33PM +0900, Romain Lenglet wrote:
> Hello again,
> 
> I reply to myself... (^_^)
> 
> If I declare an intermediate type, it works:
> 
> entity ex21 is
> 
>   port (
>     a, b : in  bit;
>     q    : out bit);
> 
> end entity ex21;
> 
> architecture behavioral of ex21 is
> 
>   subtype two_bit_vector is bit_vector'(0 to 1);
> 
> begin  -- behavioral
> 
>   with two_bit_vector'(a, b) select
>     q <=
>     '1' after 3.5 ns when "11",
>     '0' after 2.5 ns when "00",
>     unaffected       when others;
> 
> end architecture behavioral;
> 
> 
> But I still don't understand what is wrong in using bit_vector as a type 
> mark here...
There is no length for bit_vector type, therefore it is not allowed in
a with or case statement.

Tristan.

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to