Follow on Modelsim LPM (FIFO, PLL) Simulation

Source: Internet
Author: User

When using third-party software: Modelsim to simulate Quartus ii lpm, you must add the. V file generated by examples and add the. V file to the Altera library during simulation, as shown below:

(By the way, only one testbench top-level file in Modelsim can exist .... None of the books ..)

 

LPM-PLL note:

Today, when Modelsim is used for a post-simulation, it is found that there is no output of the PLL. When setting different test clock frequencies, there are three situations:

(1) When the input clock cycle is less than the input clock cycle selected in the sample PLL, the following warning message is displayed during simulation:

Warning: Input clock freq. Is under VCO range. Cyclone iii pll may lose lock

(2) When the input clock cycle is greater than the input clock cycle selected in the sample PLL, the following warning message is displayed during simulation:

Warning: Input clock freq. Is Over VCO range. Cyclone iii pll may lose lock

In the above two cases, the PLL will not work normally. In the first case above, you can set a larger period for the input test clock. In the second case, you can set a lower cycle for the input test clock.

(3) When the input clock cycle is equal to the input clock cycle selected in the sample PLL, the following information appears during simulation:

Note: Cyclone iii pll locked to incoming clock

In this case, the PLL can work normally! Note:

Waveform simulation is as follows:

 

By the way, the art of Modelsim is:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.