#set path group -all
### get seq[uentials
set reg [filter_collection [all_registers] "is_integrated_clock_gating_cell != true"]
set inp [all_inputs]
set out [all_outputs]
set mem [get_cells -hier -filter "@ref_name =~ TEM5N20HPC* && @is_hierarchical == false && @is_macro_cell == true"]
set ckgating [filter_collection [all_registers] "is_integrated_clock_gating_cell == true"]
set ignore_path_groups [list inp2reg reg2out feedthr]
group_path -name reg2reg -from $reg -to $reg
group_path -name mem2reg -from $mem -to $reg
group_path -name mem2cg -from $mem -to $ckgating
group_path -name reg2mem -from $reg -to $mem
group_path -name mem2mem -from $mem -to $mem
group_path -name reg2cg -from $reg -to $ckgating
group_path -name in2reg -from $inp -to $reg
group_path -name reg2out -from $reg -to $out
group_path -name feedthr -from $inp -to $out
proc tproc_group_path {name from_cell to_cell effort weight} {
puts "Set special path group $name with weight $weight..."
set rtn_code 0
if {[sizeof_coll $from_cell] && [sizeof_coll $to_cell]} {
group_path -name $name -from $from_cell -to $to_cell
set rtn_code 1
} elseif {[sizeof_coll $from_cell]} {
group_path -name $name -from $from_cell
set rtn_code 1
} elseif {[sizeof_coll $to_cell]} {
group_path -name $name -to $to_cell
set rtn_code 1
} else {
puts "Can't get from cell and to cell, please check ..."
return $rtn_code
}
setPathGroupOptions $name -effortLevel $effort -weight $weight
return $rtn_code
}
### TO block a53_0
set hier_name_prefix u_cortexa7/cortexa7core_0_u_cortexa7core_0
set group_name GROUP_TO_A7_0
set effort high
set weight 5
set if_from_self 0
set if_set 1
set cells [get_cells -q -hier -filter "@full_name =~ ${hier_name_prefix}*"]
if {[sizeof_coll $cells] && $if_set > 0} {
tproc_group_path $group_name $reg $cells $effort $weight
}
### FROM block a53_0
set hier_name_prefix u_cortexa7/cortexa7core_0_u_cortexa7core_0
set group_name GROUP_FROM_A7_0
set effort high
set weight 5
set if_from_self 0
set if_set 1
set cells [get_cells -q -hier -filter "@full_name =~ ${hier_name_prefix}*"]
if {[sizeof_coll $cells] && $if_set > 0} {
tproc_group_path $group_name $cells $reg $effort $weight
}
### TO block a53_1
set hier_name_prefix u_cortexa7/cortexa7core_1_u_cortexa7core_1
set group_name GROUP_TO_A7_1
set effort high
set weight 5
set if_from_self 0
set if_set 1
set cells [get_cells -q -hier -filter "@full_name =~ ${hier_name_prefix}*"]
if {[sizeof_coll $cells] && $if_set > 0} {
tproc_group_path $group_name $reg $cells $effort $weight
}
### FROM block a53_1
set hier_name_prefix u_cortexa7/cortexa7core_1_u_cortexa7core_1
set group_name GROUP_FROM_A7_1
set effort high
set weight 5
set if_from_self 0
set if_set 1
set cells [get_cells -q -hier -filter "@full_name =~ ${hier_name_prefix}*"]
if {[sizeof_coll $cells] && $if_set > 0} {
tproc_group_path $group_name $cells $reg $effort $weight
}
### TO block a53_2
set hier_name_prefix u_cortexa7/cortexa7core_2_u_cortexa7core_2
set group_name GROUP_TO_A7_2
set effort high
set weight 5
set if_from_self 0
set if_set 1
set cells [get_cells -q -hier -filter "@full_name =~ ${hier_name_prefix}*"]
if {[sizeof_coll $cells] && $if_set > 0} {
tproc_group_path $group_name $reg $cells $effort $weight
}
### FROM block a53_2
set hier_name_prefix u_cortexa7/cortexa7core_2_u_cortexa7core_2
set group_name GROUP_FROM_A7_2
set effort high
set weight 5
set if_from_self 0
set if_set 1
set cells [get_cells -q -hier -filter "@full_name =~ ${hier_name_prefix}*"]
if {[sizeof_coll $cells] && $if_set > 0} {
tproc_group_path $group_name $cells $reg $effort $weight
}
### TO block a53_3
set hier_name_prefix u_cortexa7/cortexa7core_3_u_cortexa7core_3
set group_name GROUP_TO_A7_3
set effort high
set weight 5
set if_from_self 0
set if_set 1
set cells [get_cells -q -hier -filter "@full_name =~ ${hier_name_prefix}*"]
if {[sizeof_coll $cells] && $if_set > 0} {
tproc_group_path $group_name $reg $cells $effort $weight
}
### FROM block a53_3
set hier_name_prefix u_cortexa7/cortexa7core_3_u_cortexa7core_3
set group_name GROUP_FROM_A7_3
set effort high
set weight 5
set if_from_self 0
set if_set 1
set cells [get_cells -q -hier -filter "@full_name =~ ${hier_name_prefix}*"]
if {[sizeof_coll $cells] && $if_set > 0} {
tproc_group_path $group_name $cells $reg $effort $weight
}
### set_weight
setPathGroupOptions reg2reg -effortLevel high -weight 10
setPathGroupOptions reg2cg -effortLevel high -weight 10
setPathGroupOptions mem2cg -effortLevel high -weight 10
setPathGroupOptions reg2mem -effortLevel high -weight 10
setPathGroupOptions mem2reg -effortLevel high -weight 10
setPathGroupOptions mem2mem -effortLevel high -weight 10
setPathGroupOptions in2reg -effortLevel low -weight 0
setPathGroupOptions reg2out -effortLevel low -weight 0
setPathGroupOptions feedthr -effortLevel low -weight 0
#setPathGroupOptions $name -effortLevel $effort -weight $weight -slackAdjustment $slack_adj
puts "ignore path groups for hold : {$ignore_path_groups} ."
setOptMode -ignorePathGroupsForHold $ignore_path_groups