Skip to content

Commit

Permalink
Add shyaml example
Browse files Browse the repository at this point in the history
  • Loading branch information
yne authored Nov 3, 2022
1 parent f2b1627 commit ca0a070
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ vcd < in.vcd | less -S # scrollable view

## Query

The default `vcd` output is a valid YAML file, so you can process it with many tools like yq (a `jq` for yaml)
The default `vcd` output is a valid YAML file, so you can process it with many tools like [`yq`](https://github.com/mikefarah/yq) or [`shyaml`](https://github.com/0k/shyaml)

```bash
# print the first 9 sample of the clk channel in the fifo1 scope
vcd < samples/basic.vcd | yq .channels.fifo1.clk[0:9]
vcd < samples/basic.vcd | shyaml -y get-value channels.default.e_clk
```

## Styling
Expand Down

0 comments on commit ca0a070

Please sign in to comment.