Skip to content

Dump hierarchy block before first value change - #13

Open
johnjohnlin wants to merge 1 commit into
gtkwave:mainfrom
johnjohnlin:dump_hier_first
Open

johnjohnlin wants to merge 1 commit into
gtkwave:mainfrom
johnjohnlin:dump_hier_first

Conversation

@johnjohnlin

Copy link
Copy Markdown
Contributor

This PR tries to resolve verilator/verilator#7990 in verilator. Existing fstapi.c dump hierarchy block upon simulation is finished, and the hierarchy block is write as an independent hier file. However, current libfstwriter implementation just store in-memory, so a failed simulation (segmentation fault, verilog/C++ assertion error) cannot view the hierarchy.

This only involves 3 lines of changes in libfstwriter. To keep the bit-trueness, I moved the order of the original fstapi.c to match the behavior (just moved, not modified).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing generation of FST .hier files since version 5.050

1 participant