Compare two SDC constraint files and report every added, removed or changed constraint and argument -- for reviewing timing-constraint changes between design versions.
Compares two SDC (Synopsys Design Constraints) files. Each file is sourced into an embedded Tcl interpreter running the sdc-shell command layer, which builds an SDC data model; the two models are saved as temporary XMI files and compared with EMF Compare. Output is a numbered difference list written to a text file (default diff.txt) and echoed to the log.
Usage
comparesdc -golden <file.sdc> -revised <file.sdc> [-outfile <file>] [-user <email>]
Every option is listed by comparesdc -help, and the complete reference is in the capability file that ships with the tool's AGENTS.md.
Exit status
- 0 on a normal finish (also after in-run errors such as an unreadable SDC file, which are reported but not fatal). 1 = unrecognised option, missing mandatory input, or an internal exception. 10 = license checkout failed. 11 = protected Tcl content failed its signature check or decryption. 1 also =
EDAUTILS_ROOTmissing/invalid (launcher). - Message format:
comparesdc: <Severity>: <id>: <text>, severity one ofError,Fatal Error,Warning,Note,Programming Error;<id>is a 5-digit message number. Key notes:Found total differences : N,Written differences into file : <f>. - The run ends with
comparesdc: Note: <id>: Found N error(s) and M warning(s) ....
Requirements
Java 11 or newer on PATH (Java 21 recommended), Linux or Windows. Unpack the bundle, run source setup_env.sh and call comparesdc. Install in one command with curl -fsSL https://edautils.com/install.sh | sh -s -- comparesdc.