How Synthesis Optimizes for Timing
The previous article explained how to write timing constraints. This article explains the actions of the synthesis tool when timing constraints are tight. The tool modifies the circuit structure to meet clock frequency targets.
Lever 1: Gate Sizing
Standard cell libraries provide logic gates in multiple physical drive strengths. A standard cell with higher drive strength contains larger transistors. Larger transistors switch faster and drive larger capacitive loads. However, larger transistors consume more silicon area and dynamic power. When a timing path violates constraints, the synthesis tool performs gate upsizing. The tool replaces standard cells on the critical path with higher-drive equivalents. The tool keeps smaller, low-power cells on non-critical paths.
Different clock constraints produce different total circuit areas for identical RTL code. A relaxed clock constraint allows the tool to use minimal standard cells. A strict clock constraint forces the tool to upsize gates on critical paths. Therefore, area increases when timing requirements become more demanding.
Lever 2: Logic Restructuring
The synthesis tool can restructure Boolean logic expressions to reduce path delay. Path delay depends heavily on logic depth. Logic depth is the number of logic gates connected in series between registers. Consider an eight-input bitwise AND operation:
assign all_ready = a & b & c & d & e & f & g & h;
A direct linear implementation creates a cascade of seven two-input AND gates. This chain introduces seven gate delays on the timing path. When timing is critical, the synthesis tool reconstructs the expression as a balanced tree:
Both implementations execute the same Boolean logic function. However, the balanced tree reduces the critical path to $\lceil \log_2(8) \rceil = 3$ gate delays. This transformation demonstrates automated logic optimization. The tool transforms a linear expression into a tree structure to satisfy timing requirements.
Synthesis Behavior Under Tightening Constraints
When you reduce the clock period in the SDC file, the synthesis tool changes its optimization strategy. The following table summarizes typical synthesis responses across different constraint levels:
| Constraint Level | Typical Synthesis Behavior |
|---|---|
| Very loose (for example, 20 ns for 5 ns logic) | Uses smallest cells, maximum resource sharing, and simple cascaded structures to minimize area. |
| Moderate (for example, 6 ns) | Selectively upsizes gates and restructures logic on slower paths while keeping other paths area-optimized. |
| Tight (for example, 4.5 ns, near technology limits) | Applies aggressive gate upsizing and tree restructuring; suppresses resource sharing on critical paths. |
| Infeasible (for example, 2 ns, below physical gate delay floor) | Reports timing violations; logic restructuring and gate sizing cannot overcome the intrinsic gate delay floor. |
Automated synthesis optimization has physical limits. The intrinsic gate delays of the target technology establish a minimum path delay. When a path exceeds this limit, synthesis cannot resolve the timing violation. The designer must modify the register-transfer level architecture. For example, the designer can insert pipeline registers as discussed in Section 7.3.
Realistic constraints guide synthesis tools effectively. An accurate timing constraint instructs the tool to allocate area and power to critical paths. If constraints are omitted or overly loose, the tool does not optimize critical paths.
Practice Exercise
A circuit meets timing at a clock period of 10 ns with minimal silicon area. The engineer tightens the constraint to 4 ns without changing the RTL code. The synthesized circuit meets timing, but the total cell area increases by 40 percent. Explain the technical cause of this area increase.
Solution
The RTL code remained unchanged, but the timing constraint became strict. At 10 ns, the design had positive timing slack on all paths. Therefore, the tool selected small standard cells and compact logic structures. At 4 ns, the tool had to eliminate negative slack on critical paths. The tool upsized gates to higher drive strengths and restructured linear chains into trees. Higher-drive gates require larger transistors and more physical silicon area. Furthermore, balanced logic trees often require additional logic cells. These automated transformations caused the 40 percent increase in circuit area.
Gate sizing trades silicon area and power dissipation for switching speed. Logic restructuring reduces logic depth by converting serial chains into balanced trees. When physical cell delays prevent timing closure, designers must apply architectural pipelining. The next article explains how to analyze static timing analysis reports.