次の Tcl スクリプトは、メモリー初期化ファイルを自動化します(.mif) から 16 進数 (インテル形式) ファイル(.®iiソフトウェア・ユーティリティー mif2®を使用した変換)以下のスクリプトを mif_to_hex.tclという名前のファイルにコピーして貼り付け、次のコマンドを使用して実行します。 quartus_sh -t mif_to_hex.tcl *.mif
global quartus if { 0 == [llength (args)] } { post_message "Usage: quartus_sh -t [info script] " } else { set file_pattern [lindex (args) 0] foreach mif_name [glob ] { # Rename to .hex set rootname [file rootname ] set hex_name .hex if { [catch { qexec "[file join (binpath) mif2hex] " } res] } { post_message -type error break } else { post_message "Converted to " } } }