From a41a0bf9fd4839ef93993792fc58c192cafda577 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 18 Oct 2023 02:56:06 +0200 Subject: [PATCH] add noise analysis recognition in raw files --- src/save.c | 5 +++++ src/xschem.tcl | 4 ++-- src/xschemrc | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/save.c b/src/save.c index afae01fd..227acbbd 100644 --- a/src/save.c +++ b/src/save.c @@ -526,6 +526,11 @@ static int read_dataset(FILE *fd, Raw **rawptr, const char *type) if(!strcmp(type, "dc")) sim_type = "dc"; dbg(dbglev, "read_dataset(): dc sim_type=%s\n", sim_type ? sim_type : ""); } + else if(!strncmp(line, "Plotname:", 9) && strstr(lowerline, "noise spectral density curves")) { + if(!type) type = "noise"; + if(!strcmp(type, "noise")) sim_type = "noise"; + dbg(dbglev, "read_dataset(): noise sim_type=%s\n", sim_type ? sim_type : ""); + } else if(!strncmp(line, "Plotname:", 9) && strstr(lowerline, "operating point")) { if(!type) type = "op"; diff --git a/src/xschem.tcl b/src/xschem.tcl index c4d2e06c..ac97795e 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -2038,7 +2038,7 @@ proc graph_edit_properties {n} { # center right frame label .graphdialog.center.right.lab1 -text { Signals in graph } if { [info tclversion] > 8.4} { - ttk::combobox .graphdialog.center.right.list -values {dc ac tran op sp} -width 4 + ttk::combobox .graphdialog.center.right.list -values {dc ac tran op sp noise} -width 4 } else { entry .graphdialog.center.right.list -width 4 } @@ -2073,7 +2073,7 @@ proc graph_edit_properties {n} { label .graphdialog.center.right.rawlab -text { Raw file: } entry .graphdialog.center.right.rawentry -width 30 - bind .graphdialog.center.right.rawentry { + bind .graphdialog.center.right.rawentry { xschem setprop rect 2 $graph_selected rawfile [.graphdialog.center.right.rawentry get] fast if {[file exists [subst [.graphdialog.center.right.rawentry get]]]} { graph_fill_listbox diff --git a/src/xschemrc b/src/xschemrc index 0cfbe6aa..121f4729 100644 --- a/src/xschemrc +++ b/src/xschemrc @@ -359,6 +359,7 @@ # set editor {gvim -f -geometry 90x28} # set editor { xterm -geometry 100x40 -e nano } # set editor { xterm -geometry 100x40 -e pico } +# set editor {gedit -w} #### For Windows # set editor {notepad.exe}