Forum Discussion

AGofs's avatar
AGofs
Icon for Occasional Contributor rankOccasional Contributor
7 years ago

Quartus II- ALTPLL and ALTPLLCONFIG megafunctions

I've generated ALTPLL and ALTPLLRECONFIG function using QuartusII,REV10.1. I'm testing them with Altera ModelSim 6.6C. ALTPLLRECONFIG is getting 50MHz (D.C=50%), ALTPLL outputs consist of C0 and C1(50MHz each). Now I'm trying to reconfigure C0,C1 outputs by changes at data_in, counter_param,Counter_type and write_param incoming signals.

Unfortunately, It doesn't work properly. I'm attaching all relevant files to this message.Where is the problem?

10 Replies

    • AGofs's avatar
      AGofs
      Icon for Occasional Contributor rankOccasional Contributor
      I've seen this example before I created my own design. The issue is another: 1). I'm changing C0 parameters by writing DATA_IN value into Counter_param( High_Counter and Low_Counter ) of C0 on the rising edge of write_param. 2). Then I'm changing C0 parameters by writing DATA_IN value into Counter_param( High_Counter and Low_Counter ) of C1 on the rising edge of write_param. 3). Then I'm making reconfiguration by rising RECONFIG for 1 clock period. All these actions I'm executing in the Test Bench. Then I'm making a simulation for some period of time and the problem begins: The parameters of C0,C1(High/Low counters) are different from the ones I wrote. Sometimes C1/High counter is different, sometimes something else is different, sometimes one of the counters is bypassed. What is a right order of the writing DATA_IN into counter_param?
  • AGofs's avatar
    AGofs
    Icon for Occasional Contributor rankOccasional Contributor

    Hi people,

    Do you have something new about this issue?

  • AGofs's avatar
    AGofs
    Icon for Occasional Contributor rankOccasional Contributor

    I've attached the sample project at start of this page. You can download it.

  • AGofs's avatar
    AGofs
    Icon for Occasional Contributor rankOccasional Contributor

    How can I attache the project once again?

  • AGofs's avatar
    AGofs
    Icon for Occasional Contributor rankOccasional Contributor

    Hi everybody,

    the attached example was built for STRATIX,not for Cycloneiii (as my attached example).

    The questions are still burning:

    1).Can I simulate ALTPLL and ALTPLLRECONFIG mega-functions at Altera ModelSim 6.6C?

    2). If yes,what is wrong with my TB or with my project?

    3).What is a right order of writing for High_Counter,Low_counter, Odd/even, bypass etc?

  • AGofs's avatar
    AGofs
    Icon for Occasional Contributor rankOccasional Contributor

    Good morning ,

    Do you have something new about this issue?