[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [oc] Again! modulo arithmetic hardware



Hi!

It seems I'll make quite of a thread on my own... :-)

There was a bug in the previous posting. Here's a better one:

> if (Rand(3..0) < 10) then
>     Output <= Rand;
> end if;
> if (Rand(3..0) > 9) and (Rand(3..0) < 15) then
>     if (Rand(4) = 1) then
>         Output <= Rand(3..0) - 5;
>     else
>         Output <= Rand(3..0) - 10;
>     end if;
> end if;
> if (Rand(3..0) = 15) then
>     Output <= Cnt;
      if (Cnt < 9) then
>         Cnt <= Cnt + 1;
      else
          Cnt <= 0;
      end if;
> end if;

Andras Tantos



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

--
To unsubscribe from cores mailing list please visit http://www.opencores.org/mailinglists.shtml