For a new FPGA board with a Cyclone V I wanted to make a quick project to test the board with a simple led blink via a counter and clock provided by a PLL.
I've use the megawizard function before and was always able to include the created functions with the regular '...entity work.xxxx'. But for the PLL is does not want to work.
Example of 16k rom generated via Megawizard, works as expected:
rom: entity work.rom16k
port map( ....
);
So I created a PLL 'mypll' and tried to instantiate it:
mypll: entity work.mypll
Quartus reports:
Info (12021): Found 2 design units, including 1 entities, in source file cyc5_test.vhd
Info (12022): Found design unit 1: cyc5_test-rtl
Info (12023): Found entity 1: cyc5_test
Info (12021): Found 2 design units, including 1 entities, in source file addons/pll/mypll.vhd
Info (12022): Found design unit 1: mypll-rtl
Info (12023): Found entity 1: mypll
Info (12021): Found 1 design units, including 1 entities, in source file addons/pll/mypll/mypll_0002.v
Info (12023): Found entity 1: mypll_0002
Error (10481): VHDL Use Clause error at cyc5_test.vhd(27): design library "work" does not contain primary unit "mypll". Verify that the primary unit exists in the library and has been successfully compiled.
Looking at the generated .qip file it seems Quartus seems to have created a 'mypll' library. I've tried various ways to use it but to no avail.
What is the proper way to instantiate a Megawizard generated PLL?
this is with Quartus II 18.1
if I only add the generated VHDL en Verilog files to the project I can instantiate the pll via '...work.mypll' but then the Megawizard can no longer be used to change the parameters.