Forum Discussion

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

I would like to know how to instantiate megawizard programs in my code. please help!

I want to learn everything about megawizard, instantiating the inbuilt code and about libraries related to that. please give me sufficient guidance how to do it.

6 Replies

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

    Hi Naveen,

    For the megawizard flow, go to IP Catalog and select the IP and specify design description. After generate all the IPs user manually connect all the IPs using rtl or vhdl.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Naveen,

    Instantiating your IP would look something like this in Verilog

    pll u1 (

    .reset (<fill this in with your declared port name>)

    .inclk (<fill this in with your declared port name>)

    .locked (<fill this in with your declared port name>)

    );

    This is just example. If this is confusing to you, maybe you should refer to some websites on how to instantiate a module.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I want to learn everything about megawizard, instantiating the inbuilt code and about libraries related to that. please give me sufficient guidance how to do it.

    --- Quote End ---

    You can look into the transceiver design examples at Altera wiki (http://www.alterawiki.com/wiki/category:transceivers). These designs should have the info related to megawizard generated instances, how to instantiate these into top level and together with simulation examples.