• 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. ncsim: *E,UNKMOD: unrecognized modifier for the coverage...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 65
  • Views 2586
  • 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

ncsim: *E,UNKMOD: unrecognized modifier for the coverage -code command (-database)

czh32689
czh32689 over 12 years ago

I encountered this error when I was trying to collect the code coverage of my design.

The nc simulation command line contains" +ncinput+./testbench/sim/ict.tcl". And the contents of the file ict.tcl are as follows.

coverage -setup -dut top.tb_top.my_design -testname my_design -workdir .
coverage -code -database -local_db
coverage -code -score all
run

I don't know what's the cause. The simulation tool I use is  ncverilog 09.20-s032.

Who can help me? Thanks a lot!!!

  • Cancel
  • czh32689
    czh32689 over 12 years ago

    After I changed the simulation tool from ncverilog 09.20-s032 to "ldv 5.7", the problem was resolved.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 12 years ago

    Your problem is that you're using Tcl commands that rely on a very old version of the simulator.

    Starting from version 5.8 the entire coverage system was replaced. Since then you must set the coverage scoring options at elaboration time. There are only a limited number of things which you may now change at simulation time, mainly you can turn coverage off completely and you can set the test name.

    Put the following commands into a file named (for example) cov.options:

    select_coverage -be -instance top.tb_top.my_design...

    Then use the ncverilog or irun option "-covfile cov.options" at elaboration time. You should then get rid of all your Tcl coverage commands from ict.tcl.

    By the way, 5.7 through to 9.2 are all old and unsupported versions now. Please consider upgrading to the latest, 12.2, since that has many improvements in terms of coverage performance and better analysis features. In addition you will actually get support for version 12.2! :-) 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • czh32689
    czh32689 over 12 years ago

    Thank you very much for your kind reply. I will adopt your advice and use the new commands during simulation. Thanks again!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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