How do we enable Coverage on the command line?

56 views
Skip to first unread message

Abel Alaniz

unread,
Jul 31, 2017, 12:03:09 PM7/31/17
to SVUnit User Group
Hello,

  I am adding the following compile option in the command line call to SVUnit.

bsub -I runSVUnit -s vcs -c -debug_access+r -c -lca -c -override_timescale=1ns/1ps -c -full64 -c -cm line+cond+tgl+fsm+branch+assert -r -cm line+cond+tgl+fsm+branch+assert -t ctrl_unit_test.sv

Yet I am getting a run failure with the following error.

Error-[CM-ARGPLM] Missing argument
  You must give a argument to the '-cm' option. It requires a '+' separated 
  list of flags. The legal flags are: line cond fsm tgl obc path assert branch
  property_path 

Does anyone have a solution for this error.

Thanks  

Abel

  

Abel Alaniz

unread,
Jul 31, 2017, 6:34:51 PM7/31/17
to SVUnit User Group
After a little debug it turns out that you have to put your coverage metric options in quotes.

  -c "-cm line+branch+tgle"

Thanks,
Abel

neil johnson

unread,
Jul 31, 2017, 6:41:59 PM7/31/17
to SVUnit User Group
good catch. just read your initial post but didn't immediately see the missing quotes.
Reply all
Reply to author
Forward
0 new messages