Parse an SDC (Synopsys Design Constraints) file with an ANTLR4 grammar and write it back -- a structural front end and Java API for timing-constraint tools.
Parses an SDC (Synopsys Design Constraints) file with an ANTLR4 grammar (SDC.g4) and writes it back out (default output.sdc). It is a structural parse of the one file: source is not followed, $variables are not substituted and nothing is executed. This is the grammar-layer front end; sdc-shell and comparesdc are the ones that execute SDC as Tcl and build the data model.
Changes in release 10.0
- A backslash escapes the next character in a bareword or brace word, so a regexp such as
-regexp {^(.*)\.sync\[([0-9]+)\]}is one word, and several[..]groups may follow in one word (a[0][1]). - Need the constraints in a spreadsheet? sdc2xls writes an Excel workbook and xls2sdc writes the SDC back.
Usage
parsesdc -in <file.sdc> [-out <file>] [-user <email>]
Every option is listed by parsesdc -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, including runs that reported errors (syntax errors, missing input file, usage errors). 10 = no valid license file. 1 =
EDAUTILS_ROOTmissing/invalid (launcher). - Message format:
ParseSDC: <Severity>: <id>: <text>(the prefix isParseSDC, notparsesdc);<id>is a 5-digit message number. Usage lines have no severity or id. - Key messages:
File '<f>' not found ...(Error 9411; nothing written), the ANTLR syntax error text (Error 9413; nothing written),Completed parsing ...,Written decompiled SDC in file : <out>.
Requirements
Java 11 or newer on PATH (Java 21 recommended), Linux or Windows. Unpack the bundle, run source setup_env.sh and call parsesdc. Install in one command with curl -fsSL https://edautils.com/install.sh | sh -s -- parsesdc.