Specman e: How to disable coverage of an instances / units? -


in verification environment under sys there instance of timer_sve. under timer_sve have 2 other instances: timer , ocp_master:

extend sys {     timer_sve : timer_sve_u instance; };  unit timer_sve_u {     timer       : timer_u instance;     ocp_master  : ocp_u instance; }; 

i need collect coverage timer. i've tried code (and many other variations of it) disable coverage of ocp_master:

extend sys {     timer_sve : timer_sve_u instance;      setup() { // code disable ocp_master's coverage         global.covers.set_cover_block("ocp_u", false);     }; }; 

the code compiled , run continues collect coverage ocp_master... how can disable collecting ocp_master coverage? appreciate help.

the method set_cover_block(...) doesn't take unit input, module (i.e. file) in coverage elements defined. try changing take file in extend ocp_u coverage definitions.

what disable coverage items/groups/etc. set when option false:

extend some_struct {   cover some_cover using     when = false; }; 

some speculation on part:

disabling coverage using set_cover_block(...) not instrument excluded code coverage (i.e. ignore coverage definitions) , make simulation run faster disabling using when option.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -