1
0
mirror of synced 2026-02-25 08:31:37 +00:00
Files
YosysHQ.yosys/kernel
Jannis Harder 5524d5185d 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"
```
2022-12-02 14:36:19 +01:00
..
2022-10-24 12:03:01 +02:00
2022-01-28 23:34:41 +01:00
2022-10-24 12:03:01 +02:00
2022-05-27 12:37:03 +02:00
2022-11-25 16:18:02 +01:00
2021-10-08 15:44:07 +02:00
2022-05-13 00:37:14 +02:00
2022-01-28 23:34:41 +01:00
2022-11-15 12:55:22 +01:00
2022-10-24 12:03:01 +02:00