Re: Array of constants and code generation

Thomas Heller <[email protected]>
Newsgroups gmane.comp.python.myhdl
Message-ID <[email protected]>
Am 02.06.2015 um 12:55 schrieb Josy Boelen:
>
> This converts:
[...]

> By introducing the variable *aa* and coercing *angles* into a tuple we
> get plausible VHDL code.
> I agree that  *indexing an array of constants* would looks nice, and
> probably is what you expected. But I'm almost 100% sure the
> synthesizer/mapper will generate the same element usage for both.

Cool!  Thanks for this trick.

> I had to disable the print statement as that doesn't convert when using
> parenthesis and without it will emit writelines, which is probably not
> intended either.

Sure.

> Regards,
>
> Josy

Thanks again,
Thomas



------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.