Bring existing UPF (IEEE 1801) power intent into the xls2upf spreadsheet: evaluates the UPF, follows source/load_upf, and writes one workbook per UPF file that xls2upf turns back into equivalent UPF.
UPF (IEEE 1801 power intent) to the xls2upf power-intent workbook -- the inverse of xls2upf, on the same workbook schema (template 2.0). It reads a top UPF file, evaluates it the way a power-intent tool does (upflint's JTcl loader: set, expr, foreach, proc, if and $variables run, source and load_upf are followed), and writes one workbook per UPF file read. xls2upf on the top workbook writes every file back as UPF equivalent to the original (compareupf exit 0 -- the regression gate).
Changes in release 10.0
- The regression runs UPF to workbook to UPF on 37 real-life and authored UPF cases: the re-read UPF must have no more errors than the original, compareupf must find it equivalent and it must be legal UPF.
Usage
upf2xlsx -in <top.upf> [-outdir <dir>] [-nobanner] [-user <email>] [-help]
xls2upf -in <dir>/<top>.xlsx -out <dir>/<top>.upf # write it back
Every option is listed by upf2xlsx -help, and the complete reference is in the capability file that ships with the tool's AGENTS.md.
Exit status
- 0: imported (warnings do not fail). 2: nothing could be imported (Error 10655: no 1801 command was read; no workbook written), or an internal error (10699). 1: usage error (10650: unknown option, missing
-in, unreadable input). 10: no license. - Warnings: 10651 a construct carried in
[raw_commands]; 10653 a statement not imported (a Tcl error in the input, a filesource/load_upfnames that cannot be read). - Notes: 10654 each workbook written; 10652 the totals (rows, raw-carried, not imported); 10657 the raw-carried constructs with counts.
Requirements
Java 11 or newer on PATH (Java 21 recommended), Linux or Windows. Unpack the bundle, run source setup_env.sh and call upf2xlsx. Install in one command with curl -fsSL https://edautils.com/install.sh | sh -s -- upf2xlsx.