From 83db375fe8d2423f7b88babcbcdfb02457feefdc Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 10 Aug 2018 19:55:52 +0200 Subject: [PATCH] add plotting with internal analog plot and gtkwave for digital data --- examples/xspice/state/state-machine.cir | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/xspice/state/state-machine.cir b/examples/xspice/state/state-machine.cir index bffefc8e4..4f37914d3 100644 --- a/examples/xspice/state/state-machine.cir +++ b/examples/xspice/state/state-machine.cir @@ -30,7 +30,13 @@ a5 cntl clk var_clock .control tran 1us 10ms write spifsim.raw +plot cntl out_msb+2 out_lsb+8 eprvcd n_one clk n_zero msb lsb > spifsim.vcd +* plotting the vcd file (e.g. with GTKWave) +* For Windows: returns control to ngspice +shell start gtkwave spifsim.vcd --script $inputdir/nggtk.tcl +* Others +*shell gtkwave spifsim.vcd --script nggtk.tcl & .endc .end