Quantcast
Channel: Cadence System Design and Verification Forum
Viewing all articles
Browse latest Browse all 276

VPI profiling and debugging

$
0
0

Hi All,


I'm working on a project consisting out of a VHDL/Verilog part and several C++ classes around it, communication using VPI. I compile using NCVerilog and run using NCSim (08.20-s201).

I've two problems here:

1) Typically I have to run for a long time, 10s of millions of cycles. Every now and then a 'ncsim internal error' in a VPI method occurs with zero useful information. Since my code does the same over and over, I don't understand why it would crash all of the sudden. Are there ways to get more information out of NCSim regarding such crashes? Or is it 'normal' that NCSim crashes every now and then? The stack trace often names 'vpi_scan' or 'vpi_iterate'.

2) Is it possible to get VPI performance profiling information out of ncsim? Just attaching perf does not produce so much useful information. In a very old post I found that adding '+ncprofile' should produce performance results, but that does not seem to work (any more?). What would be the preferred way to do this in a modern ncsim?

Thanks a lot,

Erik


Viewing all articles
Browse latest Browse all 276

Latest Images

Trending Articles



Latest Images