利用xilin实验仪完成一个可以计时的数字时钟

源代码在线查看: _cpldfit.tcl

软件大小: 80 K
上传用户: liuchuyuan
关键词: xilin 实验仪 计时 数字时钟
下载地址: 免注册下载 普通下载 VIP

相关代码

				set _rspFileHandle [open _cpldfit.rsp w]
				puts $_rspFileHandle "-p xc95108-7-PC84"
				puts $_rspFileHandle "-optimize speed"
				puts $_rspFileHandle "-loc on"
				puts $_rspFileHandle "-slew fast"
				puts $_rspFileHandle "-init low"
				if {[string compare "Template Controlled" "Template Controlled"]==0} {
				puts $_rspFileHandle "-pterms 25" } else {
				puts $_rspFileHandle "-pterms Template Controlled" }
				puts $_rspFileHandle "-power std"
				if {1} {
				puts $_rspFileHandle "-localfbk"
				}
				if {1} {
				puts $_rspFileHandle "-pinfbk"
				}
				puts $_rspFileHandle "-inputs 36"
				close $_rspFileHandle
				set _ErrorCode [catch {exec cpldfit -f _cpldfit.rsp clock.ngd} _Results]
				exeputs $_Results
				exit $_ErrorCode
							

相关资源