From 284e97efd216f600fe8b946febade42718e77a86 Mon Sep 17 00:00:00 2001 From: Yehowshua Immanuel Date: Wed, 14 Sep 2022 19:31:26 -0400 Subject: [PATCH] support properly printing root scopes in example vcd --- examples/vcd.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/vcd.rs b/examples/vcd.rs index 659aebf..3b67482 100644 --- a/examples/vcd.rs +++ b/examples/vcd.rs @@ -27,7 +27,8 @@ fn print_root_scope_tree(root_idx: ScopeIdx, vcd: &VCD, indent : u8) { fn ui_all_scopes(vcd: &VCD) { for root_scope_idx in vcd.root_scopes_by_idx() { - print_root_scope_tree(root_scope_idx, vcd, 0u8); + indented_print(0, vcd.scope_name_by_idx(root_scope_idx)); + print_root_scope_tree(root_scope_idx, vcd, 1u8); } }