• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Issue with merging code coverage with different parameter...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 65
  • Views 15195
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Issue with merging code coverage with different parameter values written inside generate block

Btarpara
Btarpara over 6 years ago

Hi, 

I've ran couple of tests for below RTL code. One with parameter COUNTER value 1 and another test with COUNTER value 0.  
Now, I could not merge the coverage for both tests cases. 

Command used for merging : merge cov_work/scope/* cov_work/scope_0/* -out all (in imc -batch)  

Warning message : *W,WEMMO1: Module/Generate/NamedBlock 'generate_check.genblk1_T' not merged because it is not present in target run.
*W,WEMIN1: Instance 'gen_tb.DUT.genblk1' and its hierarchy not merged with target instance 'gen_tb.DUT.genblk1' and its hierarchy - Mismatch in type names - Primary: worklib.generate_check.genblk1_F Secondary: worklib.generate_check.genblk1_T.
Total items not merged                      : 2

module generate_counter(clock, reset, count);

  input clock, reset ;
  output reg[3:0] count ;
  parameter COUNTER = 0;

  generate
    if (COUNTER == 1) begin
      always@(posedge clock) begin
      if (reset)
        count <= 4'b0;
      else
        count <= count +1;
      end
    end
    else begin
      always@(posedge clock) begin
      if (reset)
        count <= 4'b0;
      else
        count <= count +2;
      end
    end
  endgenerate

endmodule

Is there any way in imc to merge the coverage with both parameter values ?
Can someone please help me how to merge the coverage in such cases. 

Thanks. 

  • Cancel
Parents
  • StephenH
    StephenH over 6 years ago

    As far as I'm aware there is no way to merge code coverage for different specialisations of a module.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • StephenH
    StephenH over 6 years ago

    As far as I'm aware there is no way to merge code coverage for different specialisations of a module.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information