diff options
author | Jannis Harder <me@jix.one> | 2022-11-28 19:06:59 +0100 |
---|---|---|
committer | Jannis Harder <me@jix.one> | 2022-12-02 14:36:19 +0100 |
commit | 5524d5185d0d10246fb5410025c39e458e1a9abb (patch) | |
tree | cb9b5b513268cb5500bd7e8005b46c630904d5d5 /passes | |
parent | 7036a312bf1fba8ea88c0b1227bf0f84362e5f9a (diff) | |
download | yosys-5524d5185d0d10246fb5410025c39e458e1a9abb.tar.gz yosys-5524d5185d0d10246fb5410025c39e458e1a9abb.tar.bz2 yosys-5524d5185d0d10246fb5410025c39e458e1a9abb.zip |
tcl: Return scratchpad result.json and result.string as tcl objects
This makes it possible for yosys commands to return values when invoked
as tcl commands. Right now no commands natively support this, but the
tee command can be used with json output like this:
```tcl
set stat [yosys tee -q -s result.json stat -json -top top]
dict get $stat modules \\top num_cells_by_type \$pmux
```
Or with newline separated lists like this:
```tcl
split [yosys tee -q -s result.string select -list top] "\n"
```
Diffstat (limited to 'passes')
0 files changed, 0 insertions, 0 deletions