สคริปต์ Tcl ต่อไปนี้จะเป็นไฟล์เริ่มต้นหน่วยความจําโดยอัตโนมัติ ( การแปลง mif) เป็นไฟล์ Hexadecimal (Intel-Format) (.hex) ด้วยยูทิลิตี้ซอฟต์แวร์ Quartus® II ที่เรียกว่า mif2hex คัดลอกและวางสคริปต์ด้านล่างลงในไฟล์ที่มีชื่อ ว่า 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 " } } }