📄 wash.tcl
字号:
########## Tcl recorder starts at 04/19/08 18:35:54 ##########
set version "6.1"
set proj_dir "E:/WASH"
cd $proj_dir
# Get directory paths
set pver $version
regsub -all {\.} $pver {_} pver
set lscfile "lsc_"
append lscfile $pver ".ini"
set lsvini_dir [lindex [array get env LSC_INI_PATH] 1]
set lsvini_path [file join $lsvini_dir $lscfile]
if {[catch {set fid [open $lsvini_path]} msg]} {
puts "File Open Error: $lsvini_path"
return false
} else {set data [read $fid]; close $fid }
foreach line [split $data '\n'] {
set lline [string tolower $line]
set lline [string trim $lline]
if {[string compare $lline "\[paths\]"] == 0} { set path 1; continue}
if {$path && [regexp {^\[} $lline]} {set path 0; break}
if {$path && [regexp {^bin} $lline]} {set cpld_bin $line; continue}
if {$path && [regexp {^fpgapath} $lline]} {set fpga_dir $line; continue}
if {$path && [regexp {^fpgabinpath} $lline]} {set fpga_bin $line}}
set cpld_bin [string range $cpld_bin [expr [string first "=" $cpld_bin]+1] end]
regsub -all "\"" $cpld_bin "" cpld_bin
set cpld_bin [file join $cpld_bin]
set install_dir [string range $cpld_bin 0 [expr [string first "ispcpld" $cpld_bin]-2]]
regsub -all "\"" $install_dir "" install_dir
set install_dir [file join $install_dir]
set fpga_dir [string range $fpga_dir [expr [string first "=" $fpga_dir]+1] end]
regsub -all "\"" $fpga_dir "" fpga_dir
set fpga_dir [file join $fpga_dir]
set fpga_bin [string range $fpga_bin [expr [string first "=" $fpga_bin]+1] end]
regsub -all "\"" $fpga_bin "" fpga_bin
set fpga_bin [file join $fpga_bin]
if {[string match "*$fpga_bin;*" $env(PATH)] == 0 } {
set env(PATH) "$fpga_bin;$env(PATH)" } }
if {[string match "*$cpld_bin;*" $env(PATH)] == 0 } {
set env(PATH) "$cpld_bin;$env(PATH)" }
lappend auto_path [file join $install_dir "ispcpld" "tcltk" "lib" "ispwidget" "runproc"]
package require runcmd
# Commands to make the Process:
# Hierarchy
if [runCmd "\"$cpld_bin/sch2jhd\" \"yuanli.sch\" "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:35:54 ###########
########## Tcl recorder starts at 04/19/08 18:42:40 ##########
# Commands to make the Process:
# Hierarchy
if [runCmd "\"$cpld_bin/sch2jhd\" \"yuanli.sch\" "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:42:40 ###########
########## Tcl recorder starts at 04/19/08 18:42:58 ##########
# Commands to make the Process:
# Hierarchy
if [runCmd "\"$cpld_bin/ahdl2blf\" \"con159.abl\" -ojhd only -def _PLSI_ _LATTICE_ -err automake.err"] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:42:58 ###########
########## Tcl recorder starts at 04/19/08 18:45:58 ##########
# Commands to make the Process:
# Hierarchy
if [runCmd "\"$cpld_bin/ahdl2blf\" \"con159.abl\" -ojhd only -def _PLSI_ _LATTICE_ -err automake.err"] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:45:58 ###########
########## Tcl recorder starts at 04/19/08 18:46:11 ##########
# Commands to make the Process:
# Hierarchy
if [runCmd "\"$cpld_bin/ahdl2blf\" \"kzmk.abl\" -ojhd only -def _PLSI_ _LATTICE_ -err automake.err"] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:46:11 ###########
########## Tcl recorder starts at 04/19/08 18:54:05 ##########
# Commands to make the Process:
# Hierarchy
if [runCmd "\"$cpld_bin/ahdl2blf\" \"kzmk.abl\" -ojhd only -def _PLSI_ _LATTICE_ -err automake.err"] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:54:05 ###########
########## Tcl recorder starts at 04/19/08 18:56:23 ##########
# Commands to make the Process:
# Hierarchy
if [runCmd "\"$cpld_bin/ahdl2blf\" \"con159.abl\" -ojhd only -def _PLSI_ _LATTICE_ -err automake.err"] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:56:23 ###########
########## Tcl recorder starts at 04/19/08 18:56:27 ##########
# Commands to make the Process:
# JEDEC File
if [runCmd "\"$cpld_bin/sch2blf\" yuanli.sch -dev PLSI -sup -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblflink\" \"yuanli.bls\" -o \"yuanli.bl0\" -ipo -propadd -family PLSI -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblifopt\" -i \"yuanli.bl0\" -o \"yuanli.bl1\" -red bypin choose -sweep -collapse none -pterms 8 -family -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/ahdl2blf\" \"kzmk.abl\" -mod KZMK -ojhd compile -def _PLSI_ _LATTICE_ -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblifopt\" \"KZMK.bl0\" -red bypin choose -collapse -pterms 8 -family -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/ahdl2blf\" \"con159.abl\" -mod CON159 -ojhd compile -def _PLSI_ _LATTICE_ -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblifopt\" \"CON159.bl0\" -red bypin choose -collapse -pterms 8 -family -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblflink\" \"yuanli.bl1\" -o \"wash.bl2\" -omod yuanli -propadd -family PLSI -ues wash.ues -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblifopt\" wash.bl2 -red bypin choose -sweep -collapse all -pterms 8 -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/idiofft\" -i wash.bl3 -o wash.tt2 -propadd -idev PLSI -dev pla_basic -pla -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/syndpm\" -i wash.tt2 -if pla -p ispLSI1016-60LH44/883 -pre "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$install_dir/ispcomp/bin/impsrclever\" -prj wash -log wash.irs "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/syndpm\" -i wash.laf -if laf -p ispLSI1016-60LH44/883 -pd \"$proj_dir\" -of vhdl -of verilog"] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:56:27 ###########
########## Tcl recorder starts at 04/19/08 18:57:09 ##########
# Commands to make the Process:
# Hierarchy
if [runCmd "\"$cpld_bin/sch2jhd\" \"yuanli.sch\" "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:57:09 ###########
########## Tcl recorder starts at 04/19/08 18:57:14 ##########
# Commands to make the Process:
# JEDEC File
if [runCmd "\"$cpld_bin/sch2blf\" yuanli.sch -dev PLSI -sup -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblflink\" \"yuanli.bls\" -o \"yuanli.bl0\" -ipo -propadd -family PLSI -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblifopt\" -i \"yuanli.bl0\" -o \"yuanli.bl1\" -red bypin choose -sweep -collapse none -pterms 8 -family -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblflink\" \"yuanli.bl1\" -o \"wash.bl2\" -omod yuanli -propadd -family PLSI -ues wash.ues -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/iblifopt\" wash.bl2 -red bypin choose -sweep -collapse all -pterms 8 -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/idiofft\" -i wash.bl3 -o wash.tt2 -propadd -idev PLSI -dev pla_basic -pla -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/syndpm\" -i wash.tt2 -if pla -p ispLSI1016-60LH44/883 -pre "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$install_dir/ispcomp/bin/impsrclever\" -prj wash -log wash.irs "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [runCmd "\"$cpld_bin/syndpm\" -i wash.laf -if laf -p ispLSI1016-60LH44/883 -pd \"$proj_dir\" -of vhdl -of verilog"] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:57:14 ###########
########## Tcl recorder starts at 04/19/08 18:57:22 ##########
# Commands to make the Process:
# Pre-Fit Equations
if [runCmd "\"$cpld_bin/blif2eqn\" wash.tt2 -o wash.eq3 -err automake.err"] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
########## Tcl recorder end at 04/19/08 18:57:22 ###########
########## Tcl recorder starts at 04/19/08 19:02:03 ##########
# Commands to make the Process:
# JEDEC File
if [runCmd "\"$cpld_bin/ahdl2blf\" \"wash.abv\" -vec -ovec \"wash.tmv\" -def _PLSI_ _LATTICE_ -err automake.err "] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
if [catch {open copytmv.bat w} rspFile] {
puts stderr "Cannot create response file copytmv.bat: $rspFile"
} else {
puts $rspFile "Copy wash.tmv wash.dtv
if \"wash.tmv\"==\"wash.tmv\" goto end
Copy wash.tmv wash.tmv
:end
"
close $rspFile
}
if [runCmd "\"copytmv\""] {
return
} else {
vwait done
if [checkResult $done] {
return
}
}
file delete copytmv.bat
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -