📄 command.log
字号:
#@ # #@ # Running dc_shell Version Y-2006.06 for linux -- May 25, 2006#@ # Date: Mon Apr 7 22:20:14 2008#@ # Run by: zhouzm@romeo#@ source /tools2/synopsys/syn_vY-2006.06/admin/setup/.synopsys_dc.setup#@ ##@ ##@ # ".synopsys_dc.setup" Initialization File for#@ ##@ # Dc_Shell and Design_Analyzer#@ ##@ # The variables in this file define the behavior of many parts#@ # of the Synopsys Synthesis Tools. Upon installation, they should #@ # be reviewed and modified to fit your site's needs. Each engineer#@ # can have a .synopsys file in his/her home directory or current#@ # directory to override variable settings in this file. #@ ##@ # Each logical grouping of variables is commented as to their #@ # nature and effect on the Synthesis Commands. Examples of#@ # variable groups are the Compile Variable Group, which affects #@ # the designs produced by the COMPILE command, and the Schematic #@ # Variable Group, which affects the output of the create_schematic#@ # command.#@ ##@ # You can type "man <group_name>_variables" in dc_shell or #@ # design_analyzer to get help about a group of variables.#@ # For instance, to get help about the "system" variable group, #@ # type "help system_variables". You can also type#@ # "man <variable name>", to get help on the that variable's #@ # group.#@ ##@ #@ # System variables#@ set sh_command_abbrev_mode "Anywhere"#@ set sh_continue_on_error "true"#@ set sh_enable_page_mode "true"#@ set sh_source_uses_search_path "true"#@ set sh_new_variable_message "true"#@ if { [string compare $dc_shell_mode "tcl"] == 0 } {#@ set sh_enable_line_editing "true"#@ set sh_line_editing_mode "emacs"#@ }#@ #@ # Suppress new variable messages for the following variables#@ array set auto_index {}#@ set auto_oldpath ""#@ #@ # Enable debug output on fatal #@ if { $sh_arch == "sparc" || $sh_arch == "sparcOS5" || $sh_arch == "sparc64" || $sh_arch == "hpux10" || $sh_arch == "hp700" || $sh_arch == "hp32" || $sh_arch == "hp64" || $sh_arch == "linux" } {#@ setenv SYNOPSYS_TRACE ""#@ }#@ #@ ##@ # Load the procedures which make up part of the user interface.#@ ##@ if { [string compare $dc_shell_mode "tcl"] == 0 } {#@ source $synopsys_root/auxx/syn/.dc_common_procs.tcl#@ source $synopsys_root/auxx/syn/.dc_procs.tcl#@ alias list_commands help#@ }#@ ###############################################################################@ ##@ ##@ # FILE: auxx/syn/.dc_common_procs.tcl#@ ##@ # ABSTRACT: These procedures are part of the PrimeTime and DC#@ # user interface.#@ # They are loaded by .synopsys_pt.setup and .synopsys_dc.setup.#@ ##@ ###############################################################################@ ##@ ##@ #@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: group_variable#@ ##@ # ABSTRACT: Add a variable to the specified variable group.#@ # This command is typically used by the system#@ # administrator only.#@ ##@ # Below the proc is the command which creates the command#@ # help information and semantic data for the argument.#@ ##@ # RETURNS: 1 if it is successful.#@ # error code if the variable does not exist.#@ # error code of the variable is already in the group.#@ ##@ # SYNTAX: group_variable group_name variable_name#@ ##@ ###############################################################################@ ##@ #@ #@ proc group_variable { args } {#@ global _Variable_Groups#@ #@ parse_proc_arguments -args $args resarr#@ set group $resarr(group)#@ set var $resarr(variable_name)#@ #@ if { ![info exists _Variable_Groups($group)] } {#@ set _Variable_Groups($group) ""#@ }#@ #@ # Verify that var exists as a global variable#@ #@ set cmd "uplevel #0 \{info exists $var\}"#@ if { ![eval $cmd] } {#@ return -code error "Variable '$var' is not defined."#@ }#@ #@ # Only add it if it's not already there#@ #@ if { [lsearch $_Variable_Groups($group) $var] == -1 } {#@ lappend _Variable_Groups($group) $var#@ }#@ #@ return 1#@ }#@ #@ define_proc_attributes group_variable -info "Add a variable to a variable group" -command_group "Builtins" -permanent -dont_abbrev -define_args { #@ {group "Variable group name" group}#@ {variable_name "Variable name" variable_name}}#@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: print_variable_group#@ ##@ # ABSTRACT: Shows variables and their values defined in the given group.#@ #@ ##@ # Below the proc is the command which creates the command#@ # help information and semantic data for the argument.#@ ##@ # RETURNS: 1 if it is successful.#@ # error code of the variable group does not exist.#@ ##@ # SYNTAX: print_variable_group group_name#@ ##@ ###############################################################################@ ##@ #@ proc print_variable_group { args } {#@ global _Variable_Groups#@ #@ parse_proc_arguments -args $args resarr#@ set group $resarr(group)#@ #@ if { [string compare $group "all"] == 0 } {#@ set cmd "uplevel #0 \{printvar\}"#@ return [eval $cmd]#@ }#@ #@ if { ![info exists _Variable_Groups($group)] } {#@ return -code error "Variable group '$group' does not exist."#@ }#@ #@ # Print out each global variable in the list. To be totally bulletproof, #@ # test that each variable in the group is still defined. If not, remove #@ # it from the list.#@ #@ foreach var [lsort $_Variable_Groups($group)] {#@ set cmd "uplevel #0 \{info exists $var\}"#@ if { ![eval $cmd] } {#@ # Remove it#@ set n [lsearch $_Variable_Groups($group) $var]#@ set $_Variable_Groups($group) [lreplace $_Variable_Groups($group) $n $n]#@ } else {#@ # Print it.#@ set cmd "uplevel #0 \{set $var\}"#@ set val [eval $cmd]#@ echo [format "%-25s = \"%s\"" $var $val]#@ }#@ }#@ #@ return 1#@ }#@ #@ define_proc_attributes print_variable_group -info "Print the contents of a variable group" -command_group "Builtins" -permanent -define_args {{group "Variable group name" group}}#@ #@ #@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: _Variable_Groups_Get_Groups#@ ##@ # ABSTRACT: Return a list of all variable groups. This command is hidden#@ # and is used by Design Vision.#@ ##@ # RETURNS: Tcl list of all variable groups including group all#@ ##@ # SYNTAX: _Variable_Groups_Get_Groups#@ ###############################################################################@ ##@ #@ proc _Variable_Groups_Get_Groups { } {#@ global _Variable_Groups#@ #@ set groups [array names _Variable_Groups]#@ append groups " all"#@ return $groups#@ }#@ define_proc_attributes _Variable_Groups_Get_Groups -hidden#@ #@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: _Variable_Groups_Get_Variables_Of_Group#@ ##@ # ABSTRACT: Return a list of all variables of a variable group.#@ # It also works for pseudo group all.#@ ##@ # RETURNS: Tcl list of all variables of a variable group including#@ # pseudo group all#@ ##@ # SYNTAX: _Variable_Groups_Get_Groups#@ ###############################################################################@ ##@ #@ proc _Variable_Groups_Get_Variables_Of_Group { group } {#@ global _Variable_Groups#@ #@ if { [string compare $group "all"] == 0 } {#@ set itr [array startsearch _Variable_Groups]#@ for { } { [array anymore _Variable_Groups $itr]} { } {#@ set index [array nextelement _Variable_Groups $itr]#@ append vars $_Variable_Groups($index)#@ }#@ array donesearch _Variable_Groups $itr#@ return $vars#@ }#@ #@ if { ![info exists _Variable_Groups($group)] } {#@ return -code error "Variable group '$group' does not exist."#@ }#@ #@ # Test if all variables in the list of variables are still defined.#@ # Remove not existing variables.#@ foreach var [lsort $_Variable_Groups($group)] {#@ set cmd "uplevel #0 \{info exists $var\}"#@ if { ![eval $cmd] } {#@ # Remove it#@ set n [lsearch $_Variable_Groups($group) $var]#@ set $_Variable_Groups($group) [lreplace $_Variable_Groups($group) $n $n]#@ }#@ }#@ return $_Variable_Groups($group)#@ }#@ define_proc_attributes _Variable_Groups_Get_Variables_Of_Group -hidden#@ #@ # -- End source /tools2/synopsys/syn_vY-2006.06/auxx/syn/.dc_common_procs.tcl#@ ###############################################################################@ ##@ ##@ # FILE: auxx/syn/.dc_procs.tcl#@ ##@ # ABSTRACT: These procedures are part of the Design Compiler Tcl #@ # user interface.#@ # They are loaded by .synopsys_dc.setup.#@ ##@ ###############################################################################@ ##@ ##@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: read_verilog#@ ##@ # ABSTRACT: Emulate PT's read_verilog command in DC:#@ ##@ # Usage: read_verilog # Read one or more verilog files #@ # *[-hdl_compiler] (Use HDL Compiler (ignored))#@ # file_names (Files to read)#@ ##@ # Modified: Bharat 11/17/99. Use uplevel to ensure that the command#@ # sees user/hidden variables from the top level. Star 92970.#@ ##@ # Modified: Evan Rosser, 12/5/01. Support -netlist and -rtl flags.#@ ##@ ###############################################################################@ ##@ #@ proc read_verilog { args } {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {read_file -format verilog %s %s [list %s]} [array names ra -rtl] [array names ra -netlist] $ra(file_names)]#@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes read_verilog -info " Read one or more verilog files" -permanent -define_args {#@ {file_names "Files to read" file_names list required}#@ {-netlist "Use structural Verilog netlist reader" "" boolean optional}#@ {-rtl "Use RTL Verilog compiler (Presto or HDLC)" "" boolean optional}#@ {-hdl_compiler "Use HDL Compiler (ignored)" "" boolean {hidden optional}}#@ }#@ #@ ###############################################################################@ ##@ ##@ # PROCEDURE: read_sverilog#@ ##@ # ABSTRACT: Emulate PT's read_sverilog command in DC:#@ ##@ # Usage: read_sverilog # Read one or more systemverilog files #@ # *[-hdl_compiler] (Use HDL Compiler (ignored))#@ # file_names (Files to read)#@ ##@ # Modified: Yong Xiao, 01/31/2003: Copied from read_verilog to support #@ # systemverilog input. #@ ##@ ###############################################################################@ ##@ #@ proc read_sverilog { args } {#@ parse_proc_arguments -args $args ra#@ #@ set cmd [format {read_file -format sverilog %s %s [list %s]} [array names ra -rtl] [array names ra -netlist] $ra(file_names)]#@ return [uplevel #0 $cmd]#@ }#@ #@ define_proc_attributes read_sverilog -info " Read one or more systemverilog files" -permanent -define_args {#@ {file_names "Files to read" file_names list required}#@ {-netlist "Use structural Verilog netlist reader" "" boolean optional}#@ {-rtl "Use RTL Systemverilog compiler (Presto or HDLC)" "" boolean optional}#@ {-hdl_compiler "Use HDL Compiler (ignored)" "" boolean {hidden optional}}#@ }#@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -