Diagnostic Test Pattern Generation And Fault Simulation For Stuck-At And Transition Faults