A weighted compatibility graph-based resource allocation algorithm (WCGRAA) is proposed in this paper and a weight formula concerning testability and interconnection cost is given. An improved weighted clique partition algorithm is used to handle weighted compatibility graph, thereby achieving the goal to give consideration both to circuit testability and interconnection cost. Experimental results show that the resource allocation algorithm proposed in this paper can improve circuit testability and interconnection cost.',