原创
一个不错的综合脚本小程序
2009-3-29 19:22
2536
5
5
分类:
工程师职场
foreach_in_collection clk [all_clock] {
set clk_net [get_net -of [get_attribute $clk sources]]
set clk_pin [get_pins -quiet -of $clk_net -leaf -filter "direction == out"]
set flag false
if {[sizeof_collection $clk_pin] > 0} {
echo [get_object_name $clk ] PIN [get_object_name $clk_pin]
set_ideal_network $clk_pin
set flag true
}
set clk_port [get_ports -quiet -of $clk_net -filter "direction == in"]
if {[sizeof_collection $clk_port] > 0} {
echo [get_object_name $clk ] PORT [get_object_name $clk_port]
set_ideal_network $clk_port
set flag true
}
if {!$flag} { echo "Warning: Miss set_ideal_network [get_object_name $clk ]" }
}
文章评论(0条评论)
登录后参与讨论