Skip to content

Commit 124ae7e

Browse files
committed
ant: remove changes that prevented violations with zero diodes from being returned
Signed-off-by: luis201420 <[email protected]>
1 parent c5a848c commit 124ae7e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/ant/src/AntennaChecker.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)