Forum Discussion
Altera_Forum
Honored Contributor
10 years agoBug report: Quartus will not load correct library in VHDL
Hello, I am a software-engineer and try to design circuits as a hobby. I had wanted to hide some modules/entities, such as C++'s namespace, or C's file-scope, so I have written designs in Alt...
Altera_Forum
Honored Contributor
10 years agoVHDL does not support polymorphism (in a programming sense).
For now, the easiest way to work around is just have different names for the entities - calc1, calc2. That way you know for sure whats going to happen.= - its how real projects work. When you're compiling for an FPGA, you need to know the architecture when you compile, and it cannot change while it's running - it needs a recompile each time. Or you could just have 2 projects - one for 1 set, and one for the other. And then you're going to run into problems when you use modelsim, because it doesnt understand the --synthesis pragmas (because they are not relevent to it).