With the developing of IC and the increasing of integration level,high—level synthesis becomes a practical and efficient method of digital system design.In this paper,atask of high—level synthesis,allocation,is studied.First of all,allocationis modeled as an integer programming problem.Then a heuristic algorithm,called clustering allocation algorithm,is introduced.The experimental results show that the algorithm gets the same results or even better results than other published algorithms in less CPU time.