Lint SDC timing constraints: evaluates the decks like a timing tool and checks clocks, generated clocks, IO delays, exceptions and units against a design-independent rule catalogue.
SDC lint checker. Reads one or more SDC (Synopsys Design Constraints) decks, evaluates them in a private Tcl interpreter (JTcl) the way a timing tool does -- set, expr, foreach, proc, if, source and $variables all work -- builds its own typed constraint model (clocks, generated clocks, clock latency/uncertainty/transition/propagation, clock groups, input/output delays, false path / multicycle / max / min delay with from/through/to, case analysis, environment, design rules, units; every record with file and line) and checks it against a catalogue of lint rules. Design-independent: no netlist or Liberty library is read.
Behaviour notes
- The evaluator knows
all_inputs -no_clocks,get_full_name,all_faninandall_fanout, and raises no SDC-303 for a list a deck builds while walking a collection (that depends on the netlist, which sdclint does not have). - The SDC lexer accepts backslash escapes and several
[..]groups in one word, so-regexp {^(.*)\.sync\[([0-9]+)\]}is one word. - The
sdccorpusregression family runs 15 SDC files from 9 public open-source designs through print-back and lint. - To review constraints per mode in a spreadsheet, see sdc2xlsx and xlsx2sdc.
Waivers: sign findings off, never lose them
A finding that is understood and accepted is waived, not deleted. It leaves the open list, the counts and the exit status, and the report lists it under # waived findings with the waiver that matched, its reason and its owner. A broken waiver is an error naming file:line; it never silently waives or un-waives anything.
- Waiver files (
-waiver <file>, repeatable): one waiver per line,rule=andreason=required, narrowed byfile,line,object,msg,msg_regexor the finding'sfingerprint, signed off withownerand time-boxed withexpires. The same format as the ipxactlint and CDC/RDC waiver files. - In-deck pragmas:
# sdclint waive rule=... reason="..."on the line before a command, or awaive_begin/waive_endblock. They are Tcl comments, so every other tool ignores them. - Review workflow:
-write_waivers review.txtwrites one entry per open finding, keyed by its fingerprint, withowner=$USERandreason="TODO: review";-waivers_frombuilds it from earlier reports without linting again;-strict_waiversfails a run that still has a TODO reason. - No stale waivers: a waiver that matches nothing is reported (warning 62902), an expired one stops applying (warning 62903), and
-no_waiversreports everything open to audit what is waived. - CI gate:
-fail_on error|warning|info|neversets what fails the run (exit 2), and-format csv,json,junitwrites reports a CI server reads directly.
# waivers.txt
rule=SDC-202 object=dbg_clk reason="dbg_clk is defined in the DFT deck" owner=carol expires=2099-12-31
sdclint -in block.sdc -waiver waivers.txt -format junit
sdclint -waivers_from sdclint.rpt -write_waivers review.txt
The rule catalogue
132 rules over clocks, generated clocks, IO delays, exceptions, units and design rules, each with a failing and a passing example. Design-independent: no netlist or Liberty library is read. sdclint -list_rules prints the catalogue and sdclint -explain <ID> prints a rule's rationale with a failing and a passing example; neither needs a license.
Free to evaluate: the download bundle includes its license, so the tool runs as soon as it is unpacked.
Usage
sdclint -in <file.sdc> [-in <file.sdc> ...] [-f <filelist>] [-sdc_version <v>] [-report <file>]
[-disable <ID,ID..>] [-enable_only <ID,ID..>] [-severity error|warning|info]
[-list_rules] [-quiet] [-nobanner] [-user <email>] [-help]
Every option is listed by sdclint -help, and the complete reference is in the capability file that ships with the tool's AGENTS.md.
Exit status
- 0 no lint error (warnings and info never fail the run), 2 at least one lint error reported, 1 usage error / unreadable input / internal error, 10 no license. The launcher itself exits 1 when
EDAUTILS_ROOTis not set. - Message ids 10700-10899 belong to this tool: 10700 usage error, 10701 options, 10702 reading a deck, 10703 report written, 10704 lint result, 10710 a finding, 10720-10728 usage text, 10799 internal error. Displayed ids carry the usual 50000 offset (
60704).
Requirements
Java 11 or newer on PATH (Java 21 recommended), Linux or Windows. Unpack the bundle, run source setup_env.sh and call sdclint. Install in one command with curl -fsSL https://edautils.com/install.sh | sh -s -- sdclint.
Frequently asked questions
rule=<id> reason="<why>" in a waiver file and pass -waiver waivers.txt, or put a # sdclint waive pragma above the command in the SDC. Waived findings stay in the report with their reason and owner, and stop failing the run.sdclint -in <SDC file> -write_waivers review.txt. It writes one entry per open finding, keyed by fingerprint, with owner and a TODO reason to fill in. Use -strict_waivers in CI so no TODO reason slips through.-fail_on sets the severity that fails the run (exit 2) and -format junit writes a JUnit report; waived findings never fail it, and stale or expired waivers are reported.