Generate a UPF (IEEE 1801) power-intent file from an Excel spreadsheet of power domains, supply sets, isolation, retention, level shifters and power states.
Translates a power-intent spreadsheet into a UPF (IEEE 1801) file, default output.upf, for UPF 2.1, 3.0, 3.1 (default) or 4.0. Two input layouts are read, .xlsx or .xls either way.
- Template 2.0 (any workbook with a [design] block; write one with -write_template): every 1801 command, names entered once and checked, supplies/supply sets/power states derived, sub-IPs (hierarchy), version checking. This is the layout to use. - Template 1.x (the older one-worksheet-per-construct layout of the shipped examples/*.xls): still translated, worksheet by worksheet, without the checks above.
Behaviour notes
- Sequenced workbooks: a
seqcolumn writes rows exactly as given, in that order; an[extern]block names what another file defines;[sub_ips]has modesource; names are per scope; rows coverupf_version, power models andset_related_supply_net.
Correct-by-construction UPF from a spreadsheet
Describe power intent in rows and columns instead of hand-written Tcl: domains, supplies, supply sets, switches, isolation, level shifters, retention and power states. xlsx2upf -write_template power.xlsx writes the template 2.0 workbook with one worksheet per area. Every name is entered once and checked: a second definition, or a reference to a name nothing defines, is an error with its cell. Supplies, supply sets and power states are derived, sub-IPs are written as a hierarchy, and a command or option not in the target UPF version (2.1, 3.0, 3.1 or 4.0) is an error with its cell, so the UPF that comes out is consistent by construction.
xlsx2upf -write_template power.xlsx
xlsx2upf -in power.xlsx -out chip.upf -upf_version 3.1
upflint -in chip.upf
Bring existing UPF into the same workbook with upf2xlsx, check the result with upflint and compare versions with compareupf. Excel is not needed to run it, and the download bundle includes its license.
Usage
xlsx2upf -in <file.xlsx|file.xls> [-out <file.upf>] [-upf_version 2.1|3.0|3.1|4.0] [-user <email>]
xlsx2upf -write_template <file.xlsx>
Every option is listed by xlsx2upf -help, and the complete reference is in the capability file that ships with the tool's AGENTS.md.
Exit status
- 0: translated with no error. 2: the translation reported errors (the UPF is still written, for inspection, but is not to be trusted), or
-write_templatefailed. 1: an option without its value, or a bad-upf_version; alsoEDAUTILS_ROOTmissing/invalid (launcher). 10: no valid license file. - Message format:
xlsx2upf: <Severity>: <id>: <text>; template 2.0 messages start with the cell, e.g.worksheet 'Isolation' row 3 column 'domain': the domain 'PD_B' is not defined anywhere in this workbook. - The run ends with
xlsx2upf: 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 xlsx2upf. Install in one command with curl -fsSL https://edautils.com/install.sh | sh -s -- xlsx2upf.
Frequently asked questions
xlsx2upf -write_template power.xlsx, fill in the worksheets (design, sub-IPs, supplies, domains, switches, isolation, level shifters, retention, power states), then xlsx2upf -in power.xlsx -out chip.upf -upf_version 3.1.