A Partition-Oriented Hierarchical Control and Data Flow Graph (PO-HCDFG) method was proposed to study the hardware/software (HW/SW) partition with the goal of reducing energy consumption under the constraints of time and cost in the functional model of embedded software descript by C language. Firstly, the formal description of PO-HCDFG was made. Then, the transformation method from C program to PO-HCDFG was deeply analyzed, including the configuration of node levels, data dependency analysis, setup of partitioned objects, and rules of granularity conversion. The experimental results showed that the PO-HCDFG modeling method is effective to HW/SW partition.