FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5741 Discussions

Generation of PLL Reconfiguration MIF files

Altera_Forum
Honored Contributor I
817 Views

Hi, 

 

I'm currently porting an existing project from Stratix 3 to Cyclone 5. The project reconfigures one of the PLL's with any of 25 different frequencies from the NIOS, the parameters of which were derived from MIF files output from the PLL Mega Wizard. In the past we tediously ran the Mega Wizard 25 times and input the desired frequencies and generated the output files. 

 

I'm wondering this time 'round whether there was any way to generate the output programmatically via a command-line program/script/etc? I notice a PLL_CMD.EXE in the bin directory - is that related? I really don't want to spend a few hours generating all the MIF files, only to discover that one of my base parameters needs changing and I need to do it all over! A simple batch/script file would be much nicer. 

 

TIA 

 

[edit] I notice in pll_hw_extra.tcl there is a proc called generate_mif_file which appears to do the trick. However I don't know enough about tcl to be able to extract the relevant sections and/or execute in the correct context.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
56 Views

 

--- Quote Start ---  

Hi, 

 

I'm currently porting an existing project from Stratix 3 to Cyclone 5. The project reconfigures one of the PLL's with any of 25 different frequencies from the NIOS, the parameters of which were derived from MIF files output from the PLL Mega Wizard. In the past we tediously ran the Mega Wizard 25 times and input the desired frequencies and generated the output files. 

 

I'm wondering this time 'round whether there was any way to generate the output programmatically via a command-line program/script/etc? I notice a PLL_CMD.EXE in the bin directory - is that related? I really don't want to spend a few hours generating all the MIF files, only to discover that one of my base parameters needs changing and I need to do it all over! A simple batch/script file would be much nicer. 

 

TIA 

 

[edit] I notice in pll_hw_extra.tcl there is a proc called generate_mif_file which appears to do the trick. However I don't know enough about tcl to be able to extract the relevant sections and/or execute in the correct context. 

--- Quote End ---  

 

 

Did anyone answer this? I'm attempting to do something similar - would like to use the pll reconfiguration at run time to generate legal PLL parameters from a given set of inputs, ref clk, config, etc... as if running the wizard to get all of the advanced parameters. 

 

Regards, 

Jon Herr
Reply