用户工具

站点工具


vlsi:icc:script-highlight-clock-paths

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

vlsi:icc:script-highlight-clock-paths [2014/09/02 07:56] (当前版本)
行 1: 行 1:
 +====== Script to Highlight Launch and Capture Clock Paths in the Layout ​ ======
  
 +You can use the get_timing_paths command with the get_attribute command to create collections of the timing paths, ​
 +
 +and use the gui_change_highlight command to highlight each collection of paths with a unique color in the GUI.
 +
 +The example below uses the get_timing_paths and gui_change_highlight commands to highlight the paths for the launch and capture clocks for the 
 +<​nowiki>​
 +I_SDRAM_TOP/​I_SDRAM_READ_FIFO/​reg_array_reg_1__31_/​D
 +</​nowiki>​
 +register input.
 +
 +
 +<code tcl>
 +set path [get_timing_paths -to I_SDRAM_TOP/​I_SDRAM_READ_FIFO/​reg_array_reg_1__31_/​D \
 +   ​-group SDRAM_CLK]
 +gui_change_highlight -color yellow -collection $path
 +set launch_clock [get_timing_paths -through [get_attribute [get_attribute $path startpoint_clock] sources] \
 +   -to [get_attribute $path startpoint]]
 +gui_change_highlight -color green -collection $launch_clock
 +set capture_clock [get_timing_paths -through [get_attribute [get_attribute $path endpoint_clock] sources] \
 +   -to [get_attribute $path endpoint_clock_pin]]
 +gui_change_highlight -color blue -collection $capture_clock
 +</​code>​
 +
 +{{:​vlsi:​icc:​launch-capture-clock.png|}}
 +
 +===== Proc Version =====
 +<code tcl>
 +proc highlight_clock_path {from_point to_point} {
 +  set path [get_timing_paths -from $from_point -to $to_point]
 +  gui_change_highlight -color yellow -collection $path
 +  set launch_clock [get_timing_paths -through [get_attribute [get_attribute $path startpoint_clock] sources] \
 +     -to [get_attribute $path startpoint]]
 +  gui_change_highlight -color green -collection $launch_clock
 +  set capture_clock [get_timing_paths -through [get_attribute [get_attribute $path endpoint_clock] sources] \
 +     -to [get_attribute $path endpoint_clock_pin]]
 +  gui_change_highlight -color blue -collection $capture_clock
 +}
 +</​code>​
vlsi/icc/script-highlight-clock-paths.txt · 最后更改: 2014/09/02 07:56 (外部编辑)