Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1074

How to manually flush display message buffer to console?

$
0
0

Hi,

I have a few functions that take a long time to compute results. I'm trying to debug any performance problems. I know about the profiler and this has been of some use. No need to suggest this.

I'd like to print something on each iteration of the computation so I can get a real time sense for how the computation is progressing via live messages in the SimVision console window. However, Simvision seems to be buffering my $write(".")/$display() message until the end of the time slot.

   protected function void process_streams(adc_stream streams[);

    for (int i = 0; i < streams.size(); i++) begin

      for (int ii = 0; ii < streams[i].num_samples(); ii++)

        process_sample(streams[i].m_adc_samples[ii].sample);

      $write(".");

    end

    $display();

  endfunction

I see no dots printed to the console for minutes and then all of a sudden they all show up. 
 
Is there a SimVision option or command that'll cause messages to immediately be printed to the console window?
 
Thanks,
Ben 

Viewing all articles
Browse latest Browse all 1074

Trending Articles