JSON2STEMS(1)
๐ JSON2STEMS(1) ๐
okay bestie, so this is a Filetype Conversion manual page โ it's json2stems(1), and no cap it's the little glue tool that turns your Verilator JSON into stems. let's get into it ๐ฆ
โจ NAME โจ
json2stems โ Verilator JSON to rtlbrowse stems conversion. that's the whole vibe. ๐
๐ธ SYNTAX ๐ธ
json2stems METAINFILE TREEINFILE OUTFILE
three args, in that order, no substitutions. periodt. ๐
๐ DESCRIPTION ๐
so what it does is: it converts a Verilator JSON AST representation into a stems file for use with rtlbrowse. like, that's the job. that's the whole job. โจ
and here's the tea โ it's intended to replace the obsolete xml2stems(1). rip to xml2stems, she did her best. ๐
also, lowkey foreshadowing: in the future, advanced tool features may possibly use additional data provided by the Verilator AST. so this little guy might get even more iconic later. no promises tho, that's literally just what the page says. ๐ฎ
๐ง EXAMPLES ๐ง
here's a whole chain of commands to compile Verilog source and then bring up gtkwave and rtlbrowse together for source code annotation. bestie duo behavior, honestly. ๐ซถ
this assumes the file des.fst was already generated from a prior simulation โ so don't come for me if that's missing, it's a prerequisite, okay? ๐
verilator -Wno-fatal des.v -json-only --bbox-sys
json2stems obj_dir/Vdes.tree.meta.json obj_dir/Vdes.tree.json des.stems
gtkwave -t des.stems des.fst
see how the output of one thing feeds the next? it's giving pipeline. it's giving main character energy. the des.stems shows up in the gtkwave call with -t and everything lines up. slay. ๐ฅ
๐ AUTHORS ๐
Leon Wandruschka <leon.wandruschka@outlook.com> โ the author, the moment, the legend. ๐
๐ SEE ALSO ๐
go read those too, iykyk. ๐
fr fr that's the entire page. nothing skipped, nothing invented, every flag-free argument and every command kept exactly as it was. ๐
and a lil sign-off for you, bestie: this one's by Leon Wandruschka, version 3.3.125, dated 3.3.125, filed under JSON2STEMS(1). mwah, take care of her ๐ฆโจ๐ธ
๐ฆ where this page comes from
- arch rolling: gtkwave 3.3.128-1 ยท GPL-2.0-or-later AND MIT
- epel 10: gtkwave 3.3.128-1.el10_3 ยท GPL-2.0-or-later
- fedora 43: gtkwave 3.3.125-1.fc43 ยท GPL-2.0-or-later
- fedora 44: gtkwave 3.3.126-2.fc44 ยท GPL-2.0-or-later
- fedora 44: gtkwave 3.3.127-1.fc44 ยท GPL-2.0-or-later
- nixos 26.05: gtkwave 3.3.127
- nixpkgs unstable: gtkwave 3.3.128
- ubuntu questing: gtkwave 3.3.125-1
- ubuntu resolute: gtkwave 3.3.126-1
- ubuntu stonking: gtkwave 3.3.127-1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms