Module 2: Logic Synthesis · 2.2 Yosys in OpenLane

SYNTH_STRATEGY: Area Versus Delay

The previous article introduced the ABC technology mapping script. This article explains the configuration parameter that selects the mapping script.

Two designs synthesized from identical RTL can yield different cell counts and timing margins. This variation stems from the SYNTH_STRATEGY setting in config.json.

How SYNTH_STRATEGY Controls Technology Mapping

OpenLane passes an ABC command script using the flag -script $::env(ABC_SCRIPT). The configuration variable SYNTH_STRATEGY chooses which predefined ABC script OpenLane uses. Each script configures ABC cost weights differently:

{
  "SYNTH_STRATEGY": "AREA 0"
}

versus

{
  "SYNTH_STRATEGY": "DELAY 1"
}

An AREA strategy directs ABC to select standard cell combinations that minimize total silicon area. It accepts longer logic cascades to reduce gate counts.

A DELAY strategy directs ABC to minimize propagation delay along critical timing paths. It inserts higher drive-strength cells and duplicates logic gates to reduce logic depth.

Evaluating the Engineering Trade-Off

Adjusting SYNTH_STRATEGY involves trade-offs between area, power, and speed:

  • AREA Strategies: Produce smaller total cell area and reduce dynamic power consumption. However, tighter timing margins increase the probability of setup timing violations on high-frequency clocks.
  • DELAY Strategies: Increase worst-case timing slack by reducing combinational path delays. However, larger cell sizes increase total gate area and dynamic power consumption. Increased cell density can also cause routing congestion during placement.

Engineers must choose strategies according to design specifications. If a design has relaxed clock targets, area optimization reduces production costs. If a design struggles to meet clock targets, delay optimization helps achieve timing closure.

Configuring SYNTH_STRATEGY for the Reference ALU

Configure designs/alu8/config.json with the following parameters:

{
  "DESIGN_NAME": "alu8",
  "VERILOG_FILES": "dir::src/alu8.v",
  "CLOCK_PORT": "clk",
  "CLOCK_PERIOD": 10.0,
  "SYNTH_STRATEGY": "AREA 0"
}

Changing this setting to "DELAY 1" changes gate selection without modifying the underlying RTL code or timing constraints.

Practice Exercise

A design meets timing constraints when synthesized with "DELAY 2", but the gate area exceeds the project specification by 20 percent. The designer switches the setting to "AREA 0". What technical risk must the designer evaluate?

Solution

Switching to "AREA 0" reduces cell area, but it increases path delay.

The timing margin achieved under "DELAY 2" will shrink. The design can develop setup timing violations under "AREA 0". Designers must check post-synthesis static timing reports to verify that worst-case slack remains positive.

The next article executes two complete synthesis runs on alu8 to compare area and timing reports directly.

← The Synthesis Script OpenLane Runs Running the Same Design Two Ways →