On Friday, June 22, 2012 7:48:25 PM UTC+2, Gabor wrote:

> (E-Mail Removed) wrote:

> > library ieee;

> > use ieee.std_logic_1164.all;

> > use ieee.numeric_std.all;

> >

> > signal WRaddr : unsigned(11 downto 0);

> >

> > if rising_edge(CLK) then

> > if WRaddr/="111111111111" then

> > WRaddr <= WRaddr +1;

> > end if;

> > end if;

> >

> > How do I write this so I can easily

> > change the length of WRaddr?

> >

> > TIA

>

> how about

>

> if WRaddr /= (others => '1') then

> . . .

>

> -- Gabor
That was my first guess, but ISE 13.3 doesn't like it:

Can not determine the "others" values in aggregate. (LRM 7.3.2.2)