Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSorry - let me explain - I use ifdef primarily to include/exclude code blocks. the generate does that nicely.
"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'). thanks /j