The development of modern embedded system needs more practical design technology with larger covering scope. A codesign method called DT(Dual-Trees) is proposed for system-level in coarse-grained view. This method builds behavior-tree and resource-tree by UML description and achieves the reasonable design results through analyzing the two trees integrally. Compared with other codesign methods, DT fully considers the actual design environment and enforces the user's free design by different-level constraint description. In addition, more integrated resource classes of embedded system are defined in this method too. Proved by the experiment, this method has advantages as following: smaller design and realization spending of algorithm, lower sensitivity to the initial condition, stronger actual utility and so on.Index Terms -Embedded System, HW/SW Codesign, UML, DT.