Write SDC timing constraints from an Excel workbook, one SDC per mode and corner. The workbook comes from sdc2xls or from the empty template xls2sdc writes.
Writes SDC from the SDC workbook (what sdc2xls writes, or a hand-filled xls2sdc -template), one SDC per mode / corner.
Excel to SDC, one SDC per mode and corner
xls2sdc writes SDC from the constraint workbook that sdc2xls writes, or from one filled in by hand. Start a new constraint set with xls2sdc -template my_constraints.xlsx: the empty workbook has headers with a help comment each, drop-downs (command, flags yes, Raw kind), a Readme guide and one example row per sheet whose seq starts with # (ignored).
xls2sdc -template my_constraints.xlsx
xls2sdc -in my_constraints.xlsx -mode func -out func.sdc
xls2sdc -in my_constraints.xlsx -mode all -out sdc_per_mode
Rules
- Rows of all sheets are written in
seqorder (a row withoutseqgoes last, in sheet order). A row whoseseqstarts with#, and a Modes row whose mode starts with#, is ignored. -mode <m>writes the rows of that mode plus rows with an empty mode; it is mandatory when the workbook has several modes.-mode allwrites one SDC per Modes-sheet row into the directory-out, named byout_fileor<mode>[_<corner>].sdc.-cornerworks the same way.- Per row: the command, the valued options (one per cell line), the flags marked
yes, the positional arguments, thenother_optionsverbatim; comments are written above and after the command. When a row'sscopediffers from the scope in effect,current_instance <scope>is written first. - Raw rows are written as they are (
cont=+rows continue the row above).
The workbook is checked before anything is written
Readme!A1 must carry the marker, every sheet and header column must exist, seq must be a number and command one of the sheet's commands. Errors are message 10979 with sheet and row, exit status 2, and no SDC is written. Workbook layout: sdc2xls.
Usage
xls2sdc -in <book.xlsx> [-mode <name>|all] [-corner <name>] -out <file.sdc|dir> [-nobanner] [-user <email>] [-help]
xls2sdc -template <book.xlsx>
Every option is listed by xls2sdc -help, and the complete reference is in the capability file that ships with the tool's AGENTS.md.
Requirements
Java 11 or newer on PATH (Java 21 recommended), Linux or Windows. Unpack the bundle, run source setup_env.sh and call xls2sdc. Install in one command with curl -fsSL https://edautils.com/install.sh | sh -s -- xls2sdc.
Frequently asked questions
xls2sdc -in constraints.xlsx -mode func -out func.sdc for one mode, or -mode all -out dir for one SDC per mode. The workbook is the one sdc2xls writes, or one you filled in by hand.xls2sdc -template my_constraints.xlsx. It writes the empty workbook with headers, a help comment on each header, drop-downs, a Readme guide and one ignored example row per sheet.seq that is not a number or an unknown command is reported as message 10979 with the sheet and row, the exit status is 2 and no SDC is written.EDAUTILS_LICENSE_FILE) with feature XLS2SDC; without one it exits with code 10. The licenses of sdc-shell and designplayer-shell also cover it.