On Jun 24, 4:31 pm, Brian Drummond <brian_drumm...@[EMAIL PROTECTED]
>
wrote:
> On Tue, 24 Jun 2008 00:16:54 -0700 (PDT), Ashani Patel
>
>
>
> <ashani4...@[EMAIL PROTECTED]
> wrote:
> >On Jun 23, 10:55 am, Nicolas Matringe <nicolas.matri...@[EMAIL PROTECTED]
>
> >wrote:
> >> Ashani Patel a =E9crit :
>
> >> > On Jun 23, 12:10 pm, Mark McDougall <ma...@[EMAIL PROTECTED]
> wrote:
> >> >> Ashani Patel wrote:
> >> >>> it doesnt show correct integer. while when i try to run other
prog=
rams
> >> >>> they work fine.
> >> Start by posting your code
> >process(bit_data)
>
> > variable int_value : integer range 0 to 15:=3D0;
> >begin
>
> > for N in 0 to M-1 loop
> > if(bit_data(N) =3D '1') then
> > int_value :=3D int_value + 2**N;
> > end if;
> > end loop;
>
> Notice that each time the process is triggered, it starts the conversion
> from the old value in "int_value", not from zero.
>
> - Brian
Hi Brian
thanks a lot.
it did work.
regards
ashani


|