Forum Discussion

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

pll simulation

Hello,

I have to use a pll in my design. so I've created a pll via megawizard with my needs. 100Mhz clock input and 5nsec shifted clock in the output.

now, I want to simulate my design with modelsim. how can I do that?

where should I place the PLL.vhd component, I put it inside top.vhd and i am getting errors "Unknown identifier" to all pll I/Os.

can you assist?

4 Replies

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

    Hello,

    Wrap it inside an entity that is then instantiated in your testbench. Keeps the same entity as top in Quartus.

    Don't know how correct it is - but it works for me :)

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

    My design hierarchy is : TestBench -->top level-->Pll

    did you do the same?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yeah, pretty much. Modelsim needs an altera library to simulate their things tho, altera_mf if I remember correctly. When defining you pll in the megawizard you need to check off that one also.