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