Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sgherbst authored Feb 27, 2020
1 parent 753ec58 commit 7764091
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,32 @@ files:
- mod_name: "module_from_ifdef"
inst_name: "I1"
```

It is also possible to generate the full syntax tree for SystemVerilog file(s) using the ``full-tree`` option. The output is still in YAML format:

```shell
> svinst verilog/simple.sv --full-tree
files:
- file_name: "verilog/simple.sv"
syntax_tree:
- SourceText:
- Description:
- ModuleDeclaration:
- ModuleDeclarationAnsi:
- ModuleAnsiHeader:
- ModuleKeyword:
- Keyword:
- Token: "module"
Line: 1
- ModuleIdentifier:
- Identifier:
- SimpleIdentifier:
- Token: "A"
Line: 1
- Symbol:
- Token: ";"
Line: 1
- Keyword:
- Token: "endmodule"
Line: 2
```

0 comments on commit 7764091

Please sign in to comment.