Altera_Forum
Honored Contributor
10 years agoGeneration of PLL Reconfiguration MIF files
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.