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

Re: [oc] Help::



Or use a lookup table.

    N =Power2[Ns]

----- Original Message -----
From: "Tony Wang" <twang@azanda.com>
To: <cores@opencores.org>
Sent: Tuesday, February 11, 2003 1:05 PM
Subject: RE: [oc] Help::


> You should be able to do this.
>
> 1. have a programmable control register Ns_reg[x:0]
> 2. shift 1'b1 based on Ns_reg in verilog,
>
> N = 1'b1 << Ns_reg;
>
>
>
> Tony
>
> -----Original Message-----
> From: Dharmeshbhai PATEL [mailto:dpatel@ifrance.com]
> Sent: Friday, February 07, 2003 5:55 AM
> To: cores@opencores.org
> Subject: [oc] Help::
>
>
> Hi list,
>
> I want to do this operation in VHDL
>
>   N = 2**Ns.
>
> Where Ns is programable...
>
> How can i write a synthetizable vhdl code.
>
>
> Thanks in advance.
>
>
> _____________________________________________________________________
> Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
> http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France
>
> --
> To unsubscribe from cores mailing list please visit
> http://www.opencores.org/mailinglists.shtml
> --
> To unsubscribe from cores mailing list please visit
> http://www.opencores.org/mailinglists.shtml
> --
> To unsubscribe from cores mailing list please visit
http://www.opencores.org/mailinglists.shtml
>

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