Scan Chain Fault Identification Using Weight-Based Codes For Soc Circuits