Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Can't simulate ALTERA_PLL

I'm using Quartus 12.0 SP2 and standalone ModelSim PE. I have a design in Cyclone V with a MegaFunction generated ALTERA_PLL. The generated simulation source file mypllname.vho which instantiates altera_pll only references:

LIBRARY altera_lnsim;

USE altera_lnsim.altera_lnsim_components.all;

(in addition to ieee).

When I try to sim my testbench, ModelSim reports that altera_pll is not bound. Shouldn't it be in altera_lnsim? I used msim_setup.tcl to compile the Altera libraries. It called for two files to be compiled into the altera_lnsim library. altera_lnsim_components.vhd compiled OK but altera_lnsim_for_vhdl.sv did not, since it is not in the Quartus distribution (I'm using the Web freebie if that makes a difference).

Hopefully I'm missing something obvious. Thanks for any info and advice.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Did you figure out how to solve this? I am having the same error with altera_pll supposedly unbound.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Did you figure out how to solve this? I am having the same error with altera_pll supposedly unbound.

    --- Quote End ---

    Hi,

    To solve this trouble, you have to modify the altera_lnsim_components.vhd file. Copy this file in local and do the following modification:

    Extract of the code of the altera_pll component

    pll_vco_div :integer := 0;

    pll_output_clk_frequency :string := "0 MHz"; -- Paste the original code here

    pll_bwctrl :integer := 0;

    pll_cp_current :integer := 0;

    pll_fractional_division :integer := 0;

    pll_fractional_cout :integer := 24;

    -- pll_output_clk_frequency :string := "0 MHz"; -- Original code