⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uart.tcl

📁 一个UART的FPGA core
💻 TCL
📖 第 1 页 / 共 5 页
字号:
		return
	}
}
if [catch {open uart.cm2 w} rspFile] {
	puts stderr "Cannot create response file uart.cm2: $rspFile"
} else {
	puts $rspFile "-t uart.mt
-to uart.tw1
-o uart.tcm
-log uart.log
-pr uart.prf
-rpt uart.mrp
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/checkpoint\" -m -f \"uart.cmm\" -f \"uart.cm2\" -arch machxo \"uart_map.ncd\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
file delete uart.cm2
if [catch {open uart.p2t w} rspFile] {
	puts stderr "Cannot create response file uart.p2t: $rspFile"
} else {
	puts $rspFile "-w
-i 6
-l 5
-n 1
-t 1
-s 1
-c 0
-e 0
-exp parplcinlimit=0
-exp parplcinneighborsize=1
-exp parpathbased=off
-exp parhold=on
"
	close $rspFile
}
if [catch {open uart.p3t w} rspFile] {
	puts stderr "Cannot create response file uart.p3t: $rspFile"
} else {
	puts $rspFile "-rem
-log uart.log
-o uart_mp.par
-pr uart.prf
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/multipar\" -p uart.p2t -f \"uart.p3t\" \"uart_map.ncd\" \"uart.ncd\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [catch {open uart.cm2 w} rspFile] {
	puts stderr "Cannot create response file uart.cm2: $rspFile"
} else {
	puts $rspFile "-t uart.pt
-to uart.twr
-o uart.tcp
-log uart.log
-pr uart.prf
-rpt uart.par
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/checkpoint\" -p -f \"uart.cmp\" -f \"uart.cm2\" -arch machxo \"uart.ncd\" -l 60"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
file delete uart.cm2
if [catch {open uart.t2b w} rspFile] {
	puts stderr "Cannot create response file uart.t2b: $rspFile"
} else {
	puts $rspFile "-g ES:Yes
"
	close $rspFile
}
if [runCmd "\"$fpga_bin/bitgen\" -f \"uart.t2b\" -w \"uart.ncd\" \"uart.prf\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [runCmd "\"$cpld_bin/synsvf\" -exe \"$install_dir/ispvmsystem/ispufw\" -prj uart -if uart.bit -log uart.prm -b2j -oft -jed -of uart.jed -comment uart.alt "] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 18:31:39 ###########


########## Tcl recorder starts at 01/11/06 18:32:04 ##########

# Commands to make the Process: 
# Hierarchy
if [runCmd "\"$cpld_bin/vlog2jhd\" \"baud1.v\" -p \"$install_dir/ispcpld/../cae_library/synthesis/verilog\" -pf machxo.v -predefine uart.h"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 18:32:04 ###########


########## Tcl recorder starts at 01/11/06 18:32:07 ##########

# Commands to make the Process: 
# JEDEC File
if [catch {open Uart4.cmd w} rspFile] {
	puts stderr "Cannot create response file Uart4.cmd: $rspFile"
} else {
	puts $rspFile "PROJECT: Uart4
working_path: \"$proj_dir\"
module: uart4
verilog_file_list: \"$install_dir/ispcpld/../cae_library/synthesis/verilog/machxo.v\" uart.h data_path.v inter.v dpram16x8.v uart_fifo.v rcvr.v txmit.v baud1.v decode.v uart4_top.v
output_file_name: uart4
suffix_name: edi
write_prf: false
vlog_std_v2001: true
frequency:  400
frequency: 1
fanout_limit:  100
disable_io_insertion: false
force_gsr: auto
package: tqfp144
speed_grade: 3
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/synpwrap\" -rem -e uart4 -target machxo -part lcmxo640c"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
file delete Uart4.cmd
if [runCmd "\"$fpga_bin/edif2ngd\" -l machxo -d lcmxo640c \"uart4.edi\" \"uart4.ngo\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [runCmd "\"$fpga_bin/edfupdate\" -t \"uart.tcy\" -w \"uart4.ngo\" -m \"uart4.ngo\" \"uart.ngx\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [runCmd "\"$fpga_bin/ngdbuild\" -a machxo -d lcmxo640c \"uart4.ngo\" \"uart.ngd\" -p \"$install_dir/ispcpld/../ispfpga/machxo/data\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [runCmd "\"$fpga_bin/map\" -a machxo -p lcmxo640c -t tqfp144 -s 3 \"uart.ngd\" -o \"uart_map.ncd\" -mp \"uart.mrp\" \"uart.lpf\" -c 0"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [catch {open uart.cm2 w} rspFile] {
	puts stderr "Cannot create response file uart.cm2: $rspFile"
} else {
	puts $rspFile "-t uart.mt
-to uart.tw1
-o uart.tcm
-log uart.log
-pr uart.prf
-rpt uart.mrp
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/checkpoint\" -m -f \"uart.cmm\" -f \"uart.cm2\" -arch machxo \"uart_map.ncd\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
file delete uart.cm2
if [catch {open uart.p2t w} rspFile] {
	puts stderr "Cannot create response file uart.p2t: $rspFile"
} else {
	puts $rspFile "-w
-i 6
-l 5
-n 1
-t 1
-s 1
-c 0
-e 0
-exp parplcinlimit=0
-exp parplcinneighborsize=1
-exp parpathbased=off
-exp parhold=on
"
	close $rspFile
}
if [catch {open uart.p3t w} rspFile] {
	puts stderr "Cannot create response file uart.p3t: $rspFile"
} else {
	puts $rspFile "-rem
-log uart.log
-o uart_mp.par
-pr uart.prf
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/multipar\" -p uart.p2t -f \"uart.p3t\" \"uart_map.ncd\" \"uart.ncd\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [catch {open uart.cm2 w} rspFile] {
	puts stderr "Cannot create response file uart.cm2: $rspFile"
} else {
	puts $rspFile "-t uart.pt
-to uart.twr
-o uart.tcp
-log uart.log
-pr uart.prf
-rpt uart.par
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/checkpoint\" -p -f \"uart.cmp\" -f \"uart.cm2\" -arch machxo \"uart.ncd\" -l 60"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
file delete uart.cm2
if [catch {open uart.t2b w} rspFile] {
	puts stderr "Cannot create response file uart.t2b: $rspFile"
} else {
	puts $rspFile "-g ES:Yes
"
	close $rspFile
}
if [runCmd "\"$fpga_bin/bitgen\" -f \"uart.t2b\" -w \"uart.ncd\" \"uart.prf\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [runCmd "\"$cpld_bin/synsvf\" -exe \"$install_dir/ispvmsystem/ispufw\" -prj uart -if uart.bit -log uart.prm -b2j -oft -jed -of uart.jed -comment uart.alt "] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 18:32:07 ###########


########## Tcl recorder starts at 01/11/06 18:40:03 ##########

# Commands to make the Process: 
# Pre-Map Preference Editor
# - none -
# Application to view the Process: 
# Pre-Map Preference Editor
if [runCmd "\"$cpld_bin/prfedit\" -src uart.ngd -premap -a machxo -p lcmxo640c -t tqfp144 -prf uart.lpf -touch uart.ngd"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 18:40:03 ###########


########## Tcl recorder starts at 01/11/06 18:41:04 ##########

# Commands to make the Process: 
# JEDEC File
if [runCmd "\"$fpga_bin/map\" -a machxo -p lcmxo640c -t tqfp144 -s 3 \"uart.ngd\" -o \"uart_map.ncd\" -mp \"uart.mrp\" \"uart.lpf\" -c 0"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [catch {open uart.cm2 w} rspFile] {
	puts stderr "Cannot create response file uart.cm2: $rspFile"
} else {
	puts $rspFile "-t uart.mt
-to uart.tw1
-o uart.tcm
-log uart.log
-pr uart.prf
-rpt uart.mrp
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/checkpoint\" -m -f \"uart.cmm\" -f \"uart.cm2\" -arch machxo \"uart_map.ncd\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
file delete uart.cm2
if [catch {open uart.p2t w} rspFile] {
	puts stderr "Cannot create response file uart.p2t: $rspFile"
} else {
	puts $rspFile "-w
-i 6
-l 5
-n 1
-t 1
-s 1
-c 0
-e 0
-exp parplcinlimit=0
-exp parplcinneighborsize=1
-exp parpathbased=off
-exp parhold=on
"
	close $rspFile
}
if [catch {open uart.p3t w} rspFile] {
	puts stderr "Cannot create response file uart.p3t: $rspFile"
} else {
	puts $rspFile "-rem
-log uart.log
-o uart_mp.par
-pr uart.prf
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/multipar\" -p uart.p2t -f \"uart.p3t\" \"uart_map.ncd\" \"uart.ncd\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [catch {open uart.cm2 w} rspFile] {
	puts stderr "Cannot create response file uart.cm2: $rspFile"
} else {
	puts $rspFile "-t uart.pt
-to uart.twr
-o uart.tcp
-log uart.log
-pr uart.prf
-rpt uart.par
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/checkpoint\" -p -f \"uart.cmp\" -f \"uart.cm2\" -arch machxo \"uart.ncd\" -l 60"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
file delete uart.cm2
if [catch {open uart.t2b w} rspFile] {
	puts stderr "Cannot create response file uart.t2b: $rspFile"
} else {
	puts $rspFile "-g ES:Yes
"
	close $rspFile
}
if [runCmd "\"$fpga_bin/bitgen\" -f \"uart.t2b\" -w \"uart.ncd\" \"uart.prf\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [runCmd "\"$cpld_bin/synsvf\" -exe \"$install_dir/ispvmsystem/ispufw\" -prj uart -if uart.bit -log uart.prm -b2j -oft -jed -of uart.jed -comment uart.alt "] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 18:41:04 ###########


########## Tcl recorder starts at 01/11/06 18:46:07 ##########

# Commands to make the Process: 
# Pre-Map Preference Editor
# - none -
# Application to view the Process: 
# Pre-Map Preference Editor
if [runCmd "\"$cpld_bin/prfedit\" -src uart.ngd -premap -a machxo -p lcmxo640c -t tqfp144 -prf uart.lpf -touch uart.ngd"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 18:46:07 ###########


########## Tcl recorder starts at 01/11/06 18:46:27 ##########

# Commands to make the Process: 
# Pre-Map Preference Editor
# - none -
# Application to view the Process: 
# Pre-Map Preference Editor
if [runCmd "\"$cpld_bin/prfedit\" -src uart.ngd -premap -a machxo -p lcmxo640c -t tqfp144 -prf uart.lpf -touch uart.ngd"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 18:46:27 ###########


########## Tcl recorder starts at 01/11/06 19:08:48 ##########

# Commands to make the Process: 
# Hierarchy
if [runCmd "\"$cpld_bin/vlog2jhd\" \"decode.v\" -p \"$install_dir/ispcpld/../cae_library/synthesis/verilog\" -pf machxo.v -predefine uart.h"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 19:08:48 ###########


########## Tcl recorder starts at 01/11/06 19:08:57 ##########

# Commands to make the Process: 
# Hierarchy
if [runCmd "\"$cpld_bin/vlog2jhd\" \"inter.v\" -p \"$install_dir/ispcpld/../cae_library/synthesis/verilog\" -pf machxo.v -predefine uart.h"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}

########## Tcl recorder end at 01/11/06 19:08:57 ###########


########## Tcl recorder starts at 01/11/06 19:09:01 ##########

# Commands to make the Process: 
# Pre-Map Preference Editor
if [catch {open Uart4.cmd w} rspFile] {
	puts stderr "Cannot create response file Uart4.cmd: $rspFile"
} else {
	puts $rspFile "PROJECT: Uart4
working_path: \"$proj_dir\"
module: uart4
verilog_file_list: \"$install_dir/ispcpld/../cae_library/synthesis/verilog/machxo.v\" uart.h data_path.v inter.v dpram16x8.v uart_fifo.v rcvr.v txmit.v baud1.v decode.v uart4_top.v
output_file_name: uart4
suffix_name: edi
write_prf: false
vlog_std_v2001: true
frequency:  400
frequency: 1
fanout_limit:  100
disable_io_insertion: false
force_gsr: auto
package: tqfp144
speed_grade: 3
"
	close $rspFile
}
if [runCmd "\"$cpld_bin/synpwrap\" -rem -e uart4 -target machxo -part lcmxo640c"] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
file delete Uart4.cmd
if [runCmd "\"$fpga_bin/edif2ngd\" -l machxo -d lcmxo640c \"uart4.edi\" \"uart4.ngo\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return
	}
}
if [runCmd "\"$fpga_bin/edfupdate\" -t \"uart.tcy\" -w \"uart4.ngo\" -m \"uart4.ngo\" \"uart.ngx\""] {
	return
} else {
	vwait done
	if [checkResult $done] {
		return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -