Hi,
I run relatively long transient spectre simulation with some verilog-A block which on each "cycle" of simulation should print data to the log file. Like in following example -
Code:@(cross(V(CNT_RST)-vth, +1)) begin
// ... some code here
$fwrite(logFile,"%d\t%.2f\t%.2f\t%.2f\n", row_index, cds_code,reset_code,signal_code)
end
The problem is that the log file updated only after the simulation completes, and I want to do monitoring of the log during the simulation. I think there is some way to control the flushing of the buffer, can anyone help with this?
Tnanks.