只收集DUT的coverage
-tree tb_top
+tree tb_top.dut 0
只收集module port上的toggle
在command中:
-cm_tgl portsonly
在hier中
begin tgl(portsonly)
+module mid
end
//or
begin line+tgl(portsonly)+cond
+module mid
end
// or
-tree tb_top.u_dut.u_add
begin tgl(portsonly)
+tree tb_top.u_dut.u_add 1
end
-cm_hier
-tree instance_name [level_number]
+tree instance_name [level_number]
-module module_name | entity_name
+module module_name | entity_name
+moduletree module_name [level_number]
-moduletree module_name [level_number]
+/-node
example:
-module test
+node test.w*
+node test.logic?
Command
vcs -cm_hier xxx.cfg
verdi -cov -covdir simv.vdb
verdi -cov -covdir simv.vdb -hier xxx.cfg -elfile xxx.el