Forum Discussion
Altera_Forum
Honored Contributor
9 years agoCompilation incompatibilities Modelsim-Quartus (component conditional generation)
Hello, We're having some issues while trying to compile a project generated with Quartus 13.1 using Modelsim-Altera Starter Edition 10.1. The problem is due to a conditional instantiation ...
Altera_Forum
Honored Contributor
9 years agoThe altsyncram component is declared in the altera_mf library, so a local component is not required. This may be what your problem is, because the component declaration in the altera_mf_componts package has default values for the clocks and clocken if they are left unconnected (ie. left out of the port map, rather than left to open).
Modelsim is correct about the first instance, because "in" ports must be connected to something according to VHDL rules. Quartus is generally a bit more relaxed when it comes to language rules, but modelsim is not. What you may need to do here is have two if... generates. one for Legacy and one for dual_clk, with a separate ram instantiation in each. If you post thje full code, I may be able to have a look.