This is an old revision of the document!
Static Timing and Power Analysis
ACT includes a static timing and power analysis engine called Cyclone. Cyclone takes an ACT design along with a Liberty file as well as (optional) parasitics to estimate the performance of the circuit, as well as to check any timing constraints required for correct operation.
Timing
Asynchronous circuits contain cycles of gates. How do we time them? The following provides more detail on how static timing analysis for asynchronous circuits works. Please read this before proceeding, as it will explain the terminology used as well as what the interact
commands below are for.
Note that timing analysis requires that the design has been mapped to cells.
Loading in the timer
Make sure interact
was built with the timer compiled in. An easy way to see this is to run help timer:
. If the timer is built-in, then a number of commands will be displayed. If you see no commands, then your version does not have the timing engine. In addition, a dynamically loaded library is needed to use the timer. This can be read in using:
interact> load-scm "timer.scm"
Reading in Liberty files
The following two commands are used to read in the Liberty (.lib
) files for the cells in the design. The timer uses a Liberty file handle to refer to one complete set of characterized cells (at one corner). If your Liberty files are split into say one file per cell, then they can be merged into a single file handle using the commands below.
Command | Meaning |
---|---|
timer:lib-read <file> | This reads in the specified file name as a .lib Liberty file, which contains delay and power information for the cells used in the design. This returns a handle to the Liberty file, used in other timing commands to refer to the .lib . |
timer:lib-merge <lib> <file> | If your .lib file is split into multiple files (e.g. for different groups of cells), then this command can be used to combine them into one handle. <lib> is a valid Liberty file handle, and <file> is the new Liberty file to be merged into the file handle. |
Creating the timing graph
There are two ways to create a timing graph:
- When the design is fully specified in ACT and production rules are specified using cells that are auto-extracted by the ACT tools (e.g. using the
ckt:cell-map
command), the timing arcs from each cell are computed from the production rules directly. These arcs are checked against the.lib
file, and an error is reported if the timing arc is missing from the.lib
. - When the design has user-specified cells/black box cells, then ACT assumes that timing arcs could potentially relate any input pin of the cell to any output pin, and the arcs are computed based on those specified in the
.lib
file.
Delays and transition times are added to the timing graph using information in the .lib
file. If you are making your own cells, the ACT tools also include xcell, a cell library characterizer.
TIming graph using ACT and Liberty files
Most of the time, a timing graph can be created directly using a combination of the ACT files and the Liberty file that contains the cell library information. In what follows, we assume your design has been read in to interact
and is ready for timing analysis. A common sequence of commands for this is something like the following:
interact> load-scm "timer.scm" interact> act:read "design.act" interact> act:merge "cells.act" interact> act:expand interact> act:top "toplevel" interact> ckt:cell-map
(The timer requires the design to be mapped to a set of cells.)