// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0

// Only cover the `u_reg` instance of un-pre-verified modules.
-tree *
+tree tb.dut.top_earlgrey.u_clkmgr.u_reg
+tree tb.dut.top_earlgrey.u_nmi_gen.u_reg
+tree tb.dut.top_earlgrey.u_padctrl.u_reg
+tree tb.dut.top_earlgrey.u_pinmux.u_reg
+tree tb.dut.top_earlgrey.u_pwrmgr.u_reg
+tree tb.dut.top_earlgrey.u_rstmgr.u_reg
+tree tb.dut.top_earlgrey.u_rv_plic.u_reg

// Only cover the TL interface of all sub-modules.
+node tb.dut.top_earlgrey.u_*.tl_*

// TODO: Add TL interface of top_earlgrey and AST when available.

// Remove everything else from toggle coverage.
begin tgl
  -tree tb
end

// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0

// Only cover the `u_reg` instance of un-pre-verified modules.
-tree *
+tree tb.dut.top_earlgrey.u_clkmgr.u_reg
+tree tb.dut.top_earlgrey.u_nmi_gen.u_reg
+tree tb.dut.top_earlgrey.u_padctrl.u_reg
+tree tb.dut.top_earlgrey.u_pinmux.u_reg
+tree tb.dut.top_earlgrey.u_pwrmgr.u_reg
+tree tb.dut.top_earlgrey.u_rstmgr.u_reg
+tree tb.dut.top_earlgrey.u_rv_plic.u_reg

// Only cover the TL interface of all sub-modules.
+node tb.dut top_earlgrey.u_*.tl_*

// TODO: Add TL interface of top_earlgrey and AST when available.

// Remove everything else from toggle coverage.
begin tgl
  -tree tb
end

Fix VCS warning for cover cfg file
[dv/top] Fix VCS warning for cover cfg file

Fix for below warning. The syntax for struct is slightly different

Warning-[VCM-HFUFR] Hier Config: regions not found
  In the '-cm_hier' configuration file, pattern "+node ---
  tb.dut.top_earlgrey.u_*.tl_*" did not match any pattern.
  Please check the entry at line number "16" in hier config file
  "/edascratch/weicai-opentitan/ot/rerun_top2/repo_top/hw/top_earlgrey/dv/cov/chip_cover_reg_top.cfg".
  If the unmatched pattern is a design unit which is present in a verilog
  library or present under a celldefine directive and you want VCS to consider
  it for coverage, then please pass "-cm_libs yv+celldefine".

Signed-off-by: Weicai Yang <4fa8c7762ee4da95e3dee7dae2c3263ea16637f9@google.com>
