nco_ip_design_add.tcl

来自「NCO的VHDL程序」· TCL 代码 · 共 19 行

TCL
19
字号
set ModelName "nco_ip_design"
set mdldir [file dirname [info script]]
set importdir "$mdldir/DSPBuilder_${ModelName}_import/"

puts "Adding ${ModelName}.mdl in $mdldir to the current Quartus project"

# Add the MDL file to the Quartus Project.
set_global_assignment -name "SOURCE_FILE" "$mdldir/${ModelName}.mdl"
set_global_assignment -name "USER_LIBRARIES" "$mdldir;[get_global_assignment -name USER_LIBRARIES]"

#Add the import directory if it exists and run any Quartus add scripts.
if { [file exists $importdir] } {
	set_global_assignment -name USER_LIBRARIES "$importdir;[get_global_assignment -name USER_LIBRARIES]"
	foreach g [glob -nocomplain "$importdir/*_add.tcl"] {
		source $g
	}
}

⌨️ 快捷键说明

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