setPreference -pref UserLevel:NOVICE
setPreference -pref MessageLevel:DETAILED
setPreference -pref ConcurrentMode:FALSE
setPreference -pref UseHighz:FALSE
setPreference -pref ConfigOnFailure:STOP
setPreference -pref StartupCLock:AUTO_CORRECTION
setPreference -pref AutoSignature:FALSE
setPreference -pref KeepSVF:FALSE
setPreference -pref svfUseTime:FALSE
setPreference -pref UserLevel:NOVICE
setPreference -pref MessageLevel:DETAILED
setPreference -pref ConcurrentMode:FALSE
setPreference -pref UseHighz:FALSE
setPreference -pref ConfigOnFailure:STOP
setPreference -pref StartupCLock:AUTO_CORRECTION
setPreference -pref AutoSignature:FALSE
setPreference -pref KeepSVF:FALSE
setPreference -pref svfUseTime:FALSE
setMode -pff
setMode -pff
setMode -pff
addConfigDevice -size 128 -name "xcf01s" -path "d:\engineering\work\naswi\xskripsi/"
setSubmode -pffserial
addPromDevice -position 1 -size -1 -name "xcf01s"
setMode -pff
setSubmode -pffserial
setAttribute -configdevice -attr size -value "0"
addCollection -name "av0"
setAttribute -collection -attr dir -value "UP"
addDesign -version 0 -name "0000"
addDeviceChain -index 0
addDevice -position 1 -file "D:\Engineering\Work\Naswi\xskripsi\top_level2.bit"
setMode -pff
setAttribute -configdevice -attr fillValue -value "FF"
setAttribute -configdevice -attr fileFormat -value "mcs"
setAttribute -collection -attr dir -value "UP"
setAttribute -configdevice -attr path -value "d:\engineering\work\naswi\xskripsi/"
setAttribute -collection -attr name -value "av0"
generate
setMode -bs
setCable -port auto
Identify
setAttribute -position 1 -attr configFileName -value "D:\Engineering\Work\Naswi\xskripsi\top_level2.bit"
setAttribute -position 2 -attr devicePartName -value "xcf01s"
setAttribute -position 2 -attr configFileName -value "D:\Engineering\Work\Naswi\xskripsi\av0.mcs"
Program -p 2 -e -v -loadfpga 
setMode -pff
setAttribute -configdevice -attr fileFormat -value "mcs"
setAttribute -configdevice -attr swapBit -value "FALSE"
setAttribute -configdevice -attr fillValue -value "FF"
setAttribute -collection -attr dir -value "UP"
setMode -sm
setMode -bs
setMode -bs
setMode -ss
setMode -sm
setMode -bsfile
setMode -dtconfig
setMode -cf
setMode -mpm
setMode -pff
setMode -bs
setMode -bs
