The flip-flop is a very important circuit, a more controllable latch. Here's one type of standard-cell flip-flop in the Pentium. With standard cells, the designer doesn't need to worry about this complex wiring; the circuit is pre-designed in the library. 13/21
The software for standard cells is very complex. "Automated place and route" software first places the cells in rows to minimize the distances between circuits. Then the wiring is routed between the cells as densely as possible. Both are NP-complete, so heuristics are used. 14/21