Re: Lookup tables
On Nov 29, 8:55 am, Mike <M...@yahoo.co.uk> wrote:
> > So you would need 32 sixteen-entry constant arrays. Index each array
> > with the 4 input bits.
>
> > VHDL constants can be initialized discretely, or with a function call,
> > if that helps. Depending on surrounding registers, etc. they can be
> > implemented as distributed rams(roms), or combined as a block
> > ram(rom).
>
> Thanks for your comment. But all this lookup table have the same
> content, so I could just use one lookup table and then multiplexors to
> get the right values out of the array?
Depends on whether you need to use the table for more than one value
simultaneously. If not, then yes, a multiplexer would work. If it is
used simultaneously, the synthesis tool should figure it out and make
multiple copies.
Andy
|