Skip to content

Commit c46d7b2

Browse files
committed
fixed fingerprint calculation
1 parent c3dceb1 commit c46d7b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/netlist_preprocessing/src/plugin_netlist_preprocessing.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,13 +624,13 @@ namespace hal
624624
const GateType* type;
625625
std::map<GatePin*, Net*> ordered_fan_in = {};
626626
std::set<Net*> unordered_fan_in = {};
627-
u8 trust_table_hw = 0;
627+
u8 truth_table_hw = 0;
628628

629629
bool operator<(const GateFingerprint& other) const
630630
{
631631
return (other.type < type) || (other.type == type && other.ordered_fan_in < ordered_fan_in)
632632
|| (other.type == type && other.ordered_fan_in == ordered_fan_in && other.unordered_fan_in < unordered_fan_in)
633-
|| (other.type == type && other.ordered_fan_in == ordered_fan_in && other.unordered_fan_in == unordered_fan_in && other.trust_table_hw < trust_table_hw);
633+
|| (other.type == type && other.ordered_fan_in == ordered_fan_in && other.unordered_fan_in == unordered_fan_in && other.truth_table_hw < truth_table_hw);
634634
}
635635
};
636636

@@ -681,9 +681,9 @@ namespace hal
681681
u8 tmp = std::toupper(c) - 0x30;
682682
if (tmp > 9)
683683
{
684-
tmp -= 0x11;
684+
tmp -= 0x7;
685685
}
686-
fingerprint.trust_table_hw += hw_map.at(tmp);
686+
fingerprint.truth_table_hw += hw_map.at(tmp);
687687
}
688688
}
689689
}

0 commit comments

Comments
 (0)