Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Is your script somehow related to the export_hw_tcl command? The comments are matching so either you are emulating the Altera script, or vice versa, or the scripts have some common pedigree. --- Quote End --- To some degree, that is what we are trying to establish. If you read the comments in the Tcl scripts in the example scripts/ folder, it tells you how I created the scripts. Basically I created Qsys .qsys XML files under several versions of Quartus, then used the Wiki script to convert them to Tcl so that I had a method of creating a .qsys file from a Tcl script in a Quartus-version-independent manner. The Qsys Export to hw.tcl procedure is used to create a Qsys *component*, so the resulting hw.tcl files should be similar, but not the same, since my objective was to create the top-level Qsys system, not a component that you include in a Qsys system ... though after I take a look at exporting, it might be easy enough to support that option too. --- Quote Start --- I am going to make a stab at modifying your script to produce results which are more similar to what I am seeing with export_hw_tcl in 14.0. That way I can be more confident that it produces what I need but also gives me better control over the result. I wanted to be able to set some module properties as well, so having a script will give me more control over that as well. I'll keep you posted. --- Quote End --- Cool! Keep hacking away on it. Its not too hard to add callbacks for elaboration, generation, etc. If you haven't figured those out, I can post some example hw.tcl files. Cheers, Dave