From e99ca8247629a9cdcf09b7434ef045f7fbfa6c76 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 28 Aug 2021 17:02:02 +0200 Subject: [PATCH] Revert "Adapt gtkwave plotting to the various OSs." This reverts commit 1b1d4f412fcf605770d9ae4cbd2e67ca4972e635. --- examples/digital/adder_Xspice.cir | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/digital/adder_Xspice.cir b/examples/digital/adder_Xspice.cir index 4d24d75bc..e367d964d 100644 --- a/examples/digital/adder_Xspice.cir +++ b/examples/digital/adder_Xspice.cir @@ -62,7 +62,11 @@ X1 1 2 3 4 5 6 7 8 s0 s1 s2 s3 d0 c3 FOURBIT * save inputs *.save V(a1) V(a2) V(a3) V(a4) V(a5) V(a6) V(a7) V(a8) +*.save v(1) + + .control +*save v(1) TRAN 500p 6400NS rusage display @@ -70,14 +74,11 @@ edisplay * save data to input directory cd $inputdir eprvcd 1 2 3 4 5 6 7 8 s0 s1 s2 s3 c3 > adder_x.vcd -* plotting the vcd file with GTKWave -if $oscompiled = 1 | $oscompiled = 8 ; MS Windows - shell start gtkwave adder_x.vcd --script nggtk.tcl -else if $oscompiled = 7 ; macOS, manual tweaking required - shell open -a gtkwave adder_x.vcd -else ; Linux and others - shell gtkwave adder_x.vcd --script nggtk.tcl & -end +* plotting the vcd file (e.g. with GTKWave) +* For Windows: returns control to ngspice +shell start gtkwave adder_x.vcd --script nggtk.tcl +* Others +*shell gtkwave adder_x.vcd --script nggtk.tcl & .endc .END