Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Niosii PLL

Elyouss
Beginner
658 Views

Hello I'm a beginner in programming FPGA devices. I have to create several frequencies multiplier using PLL  from an one Hertz input signal. With a nios processor I have to be able to make a program who let the user chose what PLL he want to use (if he want to multiply his signal by 2 he chose one PLL. If he want to multiply his signal by 3 he choose an another one). But I don't know how to begin since I never worked on Qsys. Is there some tutorials that I could follow to help me to finish my project ? 

I'm using the Quartus II web edition and the Altera DE0 board. Thank you very much

0 Kudos
8 Replies
ak6dn
Valued Contributor III
640 Views

Is this the DE0 board you have (from TerASIC)? The original DE0 board with the CycloneIII device?

https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=165&No=364#contents

You should download the support software from their site as it has several full demo applications.

 

With respect to the PLL on that FPGA in particular, the minimum input frequency it requires is 5MHz.

So if you really have a 1Hz input signal you need to think more on how it will interact with the PLL.

0 Kudos
Elyouss
Beginner
630 Views

Thank you very much for your reply, that's the device on which I'm currently working. I already download everything I can from the terasic website haha. So, if the minimum input frequency is 5MHz and I have an 1 Hz input signal I can still finish my project or I will have to work with higher frequencies ? 

 

0 Kudos
ak6dn
Valued Contributor III
620 Views

Well it will be the case that you can't feed your 1Hz input signal into the hardware PLL on the FPGA and use it to multiply your frequency. So you have to find a different way to do it.

But I might suggest it will rely on building a digital PLL state machine, oversampling your input 1Hz signal as the input, and generating an output signal that is 2X, 3X, 4X, etc of the input, based on user selection.

0 Kudos
Elyouss
Beginner
607 Views

Got it thank you very much for your answer !

0 Kudos
Ash_R_Intel
Employee
582 Views

Hi,

Agree with @ak6dn comments.


However, I am curious to know why do you have such a low frequency input signal? You can use any crystal oscillator on the board of higher frequency which is within spec of FPGA PLLs and then use it to generate more frequencies internally.


Regards


0 Kudos
Elyouss
Beginner
576 Views

Hi, 

because my project is to multiply the frequency from an external source and we are working on low frequencies. But yes, right now, I'm using the board's oscillator just to test my PLL in high frequency and to understand fully how to use Qsys. I want to connect the internal clock (pin G21) to one PLL and the PLL to the output pin R16 from the expansion header. But I haven't any signal when I test it on an oscilloscope. Do we have to program the nios processor with C to make an easy handling like that ?

Best Regards

0 Kudos
Ash_R_Intel
Employee
543 Views

Hi,

Yes, you need to program the FPGA with your NIOS II processor code.


Regards


0 Kudos
Elyouss
Beginner
533 Views

ok thank you very much for the reply 

0 Kudos
Reply