📄 command.log
字号:
#@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: read_vhdl#@ ##@ # ABSTRACT: Emulate PT's read_vhdl command in DC:#@ ##@ # Usage: read_vhdl # Read one or more vhdl files#@ # file_names (Files to read)#@ ##@ ##@ ###############################################################################@ ##@ #@ proc read_vhdl { args } {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {read_file -format vhdl %s [list %s]} [array names ra -netlist] $ra(file_names)]#@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes read_vhdl -info " Read one or more vhdl files" -permanent -define_args {#@ {file_names "Files to read" file_names list required}#@ {-netlist "Use structural VHDL netlist reader" "" boolean optional}#@ }#@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: read_db#@ ##@ # ABSTRACT: Emulate PT's read_db command in DC:#@ ##@ # Usage: #@ # read_db # Read one or more db files#@ # *[-netlist_only] (Do not read any attributes from db (ignored))#@ # *[-library] (File is a library DB (ignored))#@ # file_names (Files to read)#@ ##@ ##@ ###############################################################################@ ##@ #@ proc read_db { args } {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {read_file -format db [list %s]} $ra(file_names)]#@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes read_db -info " Read one or more db files" -permanent -define_args {#@ {file_names "Files to read" file_names list required}#@ {-netlist_only "Do not read any attributes from db (ignored)" "" boolean {hidden optional}}#@ {-library "File is a library DB (ignored)" "" boolean {hidden optional}}#@ }#@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: read_edif#@ ##@ # ABSTRACT: Emulate PT's read_edif command in DC: #@ ##@ # Usage: #@ # read_edif # Read one or more edif files#@ # *[-complete_language] (Use ptxr to read the file (ignored))#@ # file_names (Files to read)#@ ##@ ##@ ###############################################################################@ ##@ proc read_edif { args } {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {read_file -format edif [list %s]} $ra(file_names)]#@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes read_edif -info " Read one or more edif files" -permanent -define_args {#@ {file_names "Files to read" file_names list required}#@ {-complete_language "Use ptxr to read the file (ignored)" "" boolean {hidden optional}}#@ }#@ #@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: read_ddc#@ ##@ # ABSTRACT: Shorthand for "read_file -format ddc":#@ ##@ # Usage: #@ # read_ddc # Read one or more ddc files#@ # file_names (Files to read)#@ ##@ ##@ ###############################################################################@ ##@ #@ proc read_ddc { args } {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {read_file -format ddc [list %s]} $ra(file_names)]#@ return [uplevel \#0 $cmd]#@ }#@ #@ define_proc_attributes read_ddc -info "Read one or more ddc files" -permanent -define_args { {file_names "Files to read" file_names list required} }#@ #@ #@ #@ ###############################################################################@ ##@ # PROCEDURE: source_tcl_file#@ ##@ # ABSTRACT: generic procedure to source another tcl file#@ ##@ # Arguments:#@ # filename tcl filename#@ # dir directory to check for file#@ # msg verbose message#@ # verbose verbose mode#@ ##@ # Usage: #@ ##@ ###############################################################################@ ##@ proc source_tcl_file { filename dir msg {verbose 1} } {#@ set __qual_pref_file [file join $dir $filename]#@ if {[file exists $__qual_pref_file]} {#@ if { $verbose } {#@ echo $msg $__qual_pref_file#@ }#@ # use catch to recover from errors in the pref file#@ echo_trace "Sourcing " $__qual_pref_file#@ # to speed up sourcing use read and eval#@ set f [open $__qual_pref_file]#@ if {[catch {namespace eval :: [read -nonewline $f]} __msg]} {#@ echo Error: Error during sourcing of $__qual_pref_file#@ if {$__msg != ""} { echo $__msg }#@ # actually, it looks like $__msg is always null after#@ # source fails#@ }#@ close $f#@ } else {#@ echo_trace "Info: File '" $__qual_pref_file "' does not exist!"#@ }#@ }#@ define_proc_attributes source_tcl_file -hidden#@ #@ #@ #@ ###############################################################################@ ##@ # PROCEDURE: echo_trace#@ ##@ # ABSTRACT: echo only in trace modus#@ ##@ ###############################################################################@ ##@ proc echo_trace { args } {#@ if { [info exists ::env(TCL_TRACE)] } {#@ echo TRACE\> [join $args "" ]#@ }#@ }#@ define_proc_attributes echo_trace -hidden#@ #@ ##############################################################################@ ##@ # Following procedures added for PC write_script#@ ##@ ##@ ##@ #############################################################################@ #@ proc set_cell_restriction { args } {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {set_attribute %s -type integer restrictions %s } $ra(cell) $ra(value)]#@ return [uplevel #0 $cmd]#@ #@ }#@ define_proc_attributes set_cell_restriction -hidden -define_args { {cell "cell_name" cell string required} {value "value" value string required} }#@ #@ #@ proc set_cell_soft_keepout {args} {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {set_keepout_margin -type soft -outer {%d %d %d %d} [list %s] } $ra(llx) $ra(lly) $ra(urx) $ra(ury) $ra(objects)]#@ return [uplevel #0 $cmd]#@ #@ #@ }#@ #@ define_proc_attributes set_cell_soft_keepout -hidden -define_args { {llx "llx" llx float required} {lly "lly" lly float required} {urx "urx" urx float required} {ury "ury" ury float required} {objects "objects" objects list required} }#@ #@ proc set_cell_hard_keepout {args} {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {set_keepout_margin -type soft -outer {%d %d %d %d} [list %s] } $ra(llx) $ra(lly) $ra(urx) $ra(ury) $ra(objects)]#@ return [uplevel #0 $cmd]#@ #@ #@ }#@ #@ define_proc_attributes set_cell_hard_keepout -hidden -define_args { {llx "llx" llx float required} {lly "lly" lly float required} {urx "urx" urx float required} {ury "ury" ury float required} {objects "objects" objects list required} }#@ #@ set mw_use_pdb_lib_format false#@ #@ ###############################################################################@ ##@ # PROCEDURE: write_milkyway#@ ##@ # ABSTRACT: wrapper around save_mw_cel to support original write_milkyway#@ # interface#@ # if { [info commands open_mw_cel] == "open_mw_cel" } {}#@ ##@ ###############################################################################@ #@ if { [string match -nocase {*icc_shell*} $synopsys_program_name] } {#@ #@ proc write_milkyway args {#@ #@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {save_mw_cel -as %s %s %s %s %s} $ra(-output) [array names ra -overwrite] [array names ra -create] [array names ra -all] [array names ra -dps]]#@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes write_milkyway -info " Saves the design as milkyway CEL" -define_args {{-output fileName "Name" string {optional}} {-overwrite "Overwrite the current version" "" boolean {optional}} {-create "Create from scratch" "" boolean {hidden optional}} {-all "Save all modified cells" "" boolean {hidden optional}} {-dps "Save internal DPS design" "" boolean {hidden optional}}}#@ #@ ###############################################################################@ ##@ # PROCEDURE: read_milkyway#@ ##@ # ABSTRACT: wrapper around open_mw_cel to support original read_milkyway#@ # interface#@ # MODIFIED: To support DPS in Galileo we need to pass the filtering#@ # parameters to the DPS command. (Pankaj Goswami, Mar09 2005)#@ ##@ ###############################################################################@ #@ proc read_milkyway args {#@ #@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {open_mw_cel %s} $ra() ]#@ #@ if {[info exists ra(-library)]} {#@ set cmd [concat [concat $cmd " -library " ] " $ra(-library) "]#@ }#@ #@ if {[info exists ra(-read_only)]} {#@ lappend cmd {-readonly}#@ }#@ #@ # DPS specific stuff#@ set dps_cmd "vh_set_current_partition "#@ set read_mw_with_dps_filter false#@ #@ if {[info exists ra(-vh_module_only)]} {#@ append dps_cmd "-vh_module_only "#@ set read_mw_with_dps_filter true#@ }#@ #@ if {[info exists ra(-vh_include)]} {#@ append dps_cmd [concat " -vh_include " " \{ $ra(-vh_include) \}"]#@ append dps_cmd " "#@ set read_mw_with_dps_filter true#@ }#@ #@ if {[info exists ra(-vh_exclude)]} {#@ append dps_cmd [concat " -vh_exclude" " \{ $ra(-vh_exclude) \}"]#@ set read_mw_with_dps_filter true#@ }#@ #@ if { $read_mw_with_dps_filter == true } {#@ # Call the DPS command to store the DPS filtering params.#@ uplevel #0 $dps_cmd#@ } else {#@ # If there is no DPS filtering params, then we need to reset the#@ # params which might have been stored from the provious command.#@ append dps_cmd " -vh_reset_partition"#@ uplevel #0 $dps_cmd#@ }#@ # End of DPS stuff#@ #@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes read_milkyway -info " Read milkyway CEL from disk" -define_args {{-library "library name" "lib_name" string {optional}} {-read_only "open design in read only mode" "" boolean {optional}} {-version "version number of the CEL" "number" string {optional}} {-vh_module_only "open design for DPS module only partition" "" boolean {hidden optional}} {-vh_include "list of designs to be included in the DPS partition" "include_designs" list {hidden optional}} {-vh_exclude "list of designs to be excluded in the DPS partition" "exclude_designs" list {hidden optional}} {"" fileName "CEL name" string {required}}}#@ #@ ###############################################################################@ ##@ # PROCEDURE: set_mw_technology_file#@ ##@ # ABSTRACT: wrapper around update_mw_lib#@ ##@ ###############################################################################@ #@ proc set_mw_technology_file args {#@ #@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {update_mw_lib -technology %s %s} $ra(-technology) $ra() ]#@ #@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes set_mw_technology_file -hide_body -info " Set technology file for the library " -define_args {{-technology "Technology file name" "tech_file" string {required}} {"" "Library name" "libName" string {required}}}#@ #@ ###############################################################################@ ##@ # PROCEDURE: rebuild_mw_lib#@ ##@ # ABSTRACT: wrapper around update_mw_lib#@ ##@ ###############################################################################@ #@ proc rebuild_mw_lib args {#@ #@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {update_mw_lib -rebuild %s} $ra() ]#@ #@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes rebuild_mw_lib -hide_body -info " Rebuild the library " -define_args {{"" "Library name" "libName" string {required}}}#@ #@ ###############################################################################@ ##@ # PROCEDURE: set_mw_lib_reference#@ ##@ # ABSTRACT: Procedure to set ref lib list or ref ctrl file#@ ##@ ##############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -