Module 2: Logic Synthesis · 2.2 Yosys in OpenLane

Running the Same Design Two Ways

This article demonstrates the practical trade-off between area and timing. We synthesize alu8 twice, changing only the SYNTH_STRATEGY configuration parameter.

Run 1: Area-Optimized Synthesis

Set SYNTH_STRATEGY to "AREA 0" in designs/alu8/config.json:

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

Execute synthesis through the OpenLane flow:

openlane --flow Classic --run-tag alu8_area designs/alu8/config.json --to Synthesis

The Yosys statistics report and OpenSTA timing summary show:

Yosys stat report:
  Number of cells:                146
  Chip area for module '\alu8':   1512.67

OpenSTA synthesis-stage timing:
  Startpoint: b[7]
  Endpoint:   result_reg[6]
  Path Group: clk
  Worst slack (MET):              5.75 ns

Run 2: Delay-Optimized Synthesis

Update designs/alu8/config.json to specify "DELAY 1". Keep all other parameters identical:

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

Run synthesis with a distinct run tag:

openlane --flow Classic --run-tag alu8_delay designs/alu8/config.json --to Synthesis

The resulting summary reports show:

Yosys stat report:
  Number of cells:                189
  Chip area for module '\alu8':   1968.45

OpenSTA synthesis-stage timing:
  Startpoint: b[7]
  Endpoint:   result_reg[6]
  Path Group: clk
  Worst slack (MET):              7.42 ns

Comparative Analysis of Synthesis Results

Compare the two synthesis outputs directly:

Metric AREA 0 Strategy DELAY 1 Strategy Relative Difference
Standard Cell Count 146 189 +29.5%
Estimated Gate Area (µm²) 1512.67 1968.45 +30.1%
Worst Slack (Setup) +5.75 ns +7.42 ns +1.67 ns (Faster)

Both runs synthesize identical RTL using the same clock period constraint. The DELAY 1 strategy consumes 30 percent more gate area to improve worst-case slack by 1.67 ns.

Neither strategy is universally optimal. When silicon area and battery power constrain the design, AREA 0 provides an efficient implementation with positive timing slack. When a block lies on a chip-level critical path, the timing margin from DELAY 1 absorbs subsequent interconnect delays introduced during placement and routing.

Industrial physical design teams sweep multiple strategy values to establish Pareto-optimal trade-off curves before committing to floorplanning.

Practice Exercise

An engineer runs synthesis with "AREA 2" and achieves 121 cells with +3.10 ns worst slack. How does this result compare against the previous runs?

Solution

The "AREA 2" run represents a more aggressive area optimization point.

It reduces cell count to 121 cells and reduces area further than "AREA 0". However, its worst slack drops from +5.75 ns to +3.10 ns. This strategy suits designs with strict area budgets that can tolerate reduced timing margin.

Section 2.3 examines the contents of standard cell libraries, beginning with Liberty timing models.

← SYNTH_STRATEGY: Area Versus Delay The Liberty File →