Hardware Ip Classification Through Weighted Characteristics