Data flow partitioning with clock period and latency constraints