Hello !!
I would like to use the "print fmt" function of spectremdl, however, I have not managed yet in printing something in an ouput file with this function.
I have written some extracted data from a transient simu with export command but the "print fmt" doesn't work for me.
I would like to better configure what is inside the results_file, meaning removing the default template :
"Exported variables from results directory: ./input.raw
date : 31:18:59 AM, Wed Jun 19, 2023
design : (no title)
simulator : spectre"
I launch : spectremdl -batch input.mdl -design input.scs -measure results_file +log log_file.log
I have the following input.mdl file :
/* mdl measurement file */
alias measurement run_tran_simu {
input string out="aaa/bbb/ccc/results_file"
run tran
export real out_value_50n = V(out)@50n
export real out_value_0 = V(out)@0
export real diff_out_50n_0 = abs(V(out)@50n - V(out)@0)
print fmt ("****Cell functionnality : TEST****") addto=out
if (diff_out_50n_0 > 1)
{
print fmt ("****Cell functionnality : GOOD****") addto=out
}
else
{
print fmt ("****Cell functionnality : BAD****") addto=out
}
}
run run_tran_simu
and the following results_file :
Exported variables from results directory: ./input.raw
date : 31:18:59 AM, Wed Jun 19, 2033
design : (no title)
simulator : spectre
Measurement Name : run_tran_simu
Analysis Type : tran
diff_out_50n_0 = 1.1
out_value_0 = 1.1
out_value_50n = 4.89856e-06
NB : we don't see any "print fmt" written stuff !!
The log file is clean :
sam@clust:/xxx/yyy/.../zzz> grep -i error log_file.log
spectre completes with 0 errors, 0 warnings, and 3594 notices.
How can I do to use this "print fmt" function with success ? How can i customize the "template" of the results_file ??
Thanks !!
P.