« Prev | Next » How do I use code coverage in the command line? Solution To use code coverage in the command line, please use the -cc switch with the asim command. In order for code coverage to be collected, the files should be compiled with debugging information (-dbg switch). As the simulation advances, you can control the Code Coverage engine with the coverage commands (coverage clear, coverage disable, coverage enable, coverage off, coverage write). The -cc argument cannot be used in conjunction with the -profiler argument. For example: asim -lib work -cc -cc_dest ./results tb Previous article Next article