Task Synthesis for Latency-sensitive Synchronous Block Diagrams