Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- "creating packages and declaring appropriate library/use statements" - this sounds complicated - I'll look into it. But my typical problem isn't a log2 function. It's a big table that I auto-generate as VHDL using a Perl script - so it's only used one place. Sounds like i need to extend the Perl to generate the complete entity/architecture .vhd file (up to now it generated only the key part, which I had hoped to 'include'). --- Quote End --- If the Perl code is generating lookup tables, then its analogous to the code in lfsr_pkg.vhd. The LFSR polynomials were all copied from app notes. I then wrapped them in VHDL function calls. The code I posted above, then uses those functions. Cheers, Dave