From a7f1b2a5f1db236259922cdd1f6ee74b9840cc70 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Mon, 8 Jan 2024 23:59:55 +0100 Subject: [PATCH] add Spectrum analysis recogniztion (yet another ac type) in raw files --- src/save.c | 4 +++- src/xschem.tcl | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/save.c b/src/save.c index 6fd95706..3cb5a34e 100644 --- a/src/save.c +++ b/src/save.c @@ -570,7 +570,9 @@ static int read_dataset(FILE *fd, Raw **rawptr, const char *type) dbg(dbglev, "read_dataset(): op sim_type=%s\n", sim_type ? sim_type : ""); } else if(!strncmp(line, "Plotname:", 9) && - ( strstr(lowerline, "ac analysis") || strstr(lowerline, "sp analysis")) ) { + ( strstr(lowerline, "ac analysis") || + strstr(lowerline, "spectrum") || + strstr(lowerline, "sp analysis")) ) { ac = 1; if(!type) type = "ac"; if(!strcmp(type, "ac")) sim_type = "ac"; diff --git a/src/xschem.tcl b/src/xschem.tcl index e4adf286..c002dcb9 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -7189,7 +7189,8 @@ proc build_widgets { {topwin {} } } { $topwin.menubar.waves.menu add command -label Ac -command {waves ac} $topwin.menubar.waves.menu add command -label Tran -command {waves tran} $topwin.menubar.waves.menu add command -label Noise -command {waves noise} - $topwin.menubar.waves.menu add command -label Sp -command {waves sp} + $topwin.menubar.waves.menu add command -label Sp -command {waves ac} + $topwin.menubar.waves.menu add command -label Spectrum -command {waves ac} eval button $topwin.menubar.simulate -text "Simulate" -activebackground yellow -takefocus 0 \