File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -884,9 +884,8 @@ int AntennaChecker::checkGates(odb::dbNet* db_net,
884884 excess_ratio = std::max (violation_info.excess_ratio_PAR ,
885885 violation_info.excess_ratio_PSR );
886886 }
887- bool to_repair = (diode_mterm != nullptr );
888887 // while it has violation, increase iterm_diff_area
889- if (to_repair ) {
888+ if (diode_mterm ) {
890889 while (par_violation || psr_violation) {
891890 // increasing iterm_diff_area and count
892891 violation_info.iterm_diff_area += diode_diff_area * gates.size ();
@@ -935,10 +934,8 @@ int AntennaChecker::checkGates(odb::dbNet* db_net,
935934 diode_count_per_gate
936935 = std::max (0 , diode_count_per_gate - num_diodes_added[gate]);
937936 num_diodes_added[gate] += diode_count_per_gate;
938- // save antenna violation when there is violation and
939- // if number of diodes is greater than 0 or
940- // the function is not called to repair antennas
941- if (violated && (diode_count_per_gate > 0 || !to_repair)) {
937+ // save antenna violation
938+ if (violated) {
942939 antenna_violations.push_back ({layer->getRoutingLevel (),
943940 gates_for_diode_insertion,
944941 diode_count_per_gate,
You can’t perform that action at this time.
0 commit comments