Alchitry Forums
Clocking with Lattice Parts - Printable Version

+- Alchitry Forums (https://forum.alchitry.com)
+-- Forum: Alchitry (https://forum.alchitry.com/forum-1.html)
+--- Forum: General Questions (https://forum.alchitry.com/forum-2.html)
+--- Thread: Clocking with Lattice Parts (/thread-3.html)



Clocking with Lattice Parts - samuelcomeau - 02-22-2019

Hey,
So with the Mojo, the way to get new clocks was to use coregen via the awesome installed button. Since Cu is a Lattice part there is obviously not a coregen option. Therefore, how do I get my higher or lower clock signal?


RE: Clocking with Lattice Parts - Geo747 - 02-26-2019

(02-22-2019, 06:25 AM)samuelcomeau Wrote: Hey,
So with the Mojo, the way to get new clocks was to use coregen via the awesome installed button. Since Cu is a Lattice part there is obviously not a coregen option. Therefore, how do I get my higher or lower clock signal?

If you are using IceCube2 there is a PLL module generator for generating all the PLL code for different clock signals under Tools>Configure>Configure PLL Module although I must admit I havent gotten around to playing with it yet


RE: Clocking with Lattice Parts - rrc - 03-02-2019

You can also use the icepll tool of project IceStorm. It generates a Verilog file that contains the PLL module.
Usage example:

Code:
icepll -m -f pll.v -i 100 -o 200


This generates a 200MHz clock from 100MHz input and stores the module into pll.v.