From dfc268e0863c913a1b8726cd54eea3b40caf7c67 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Tue, 3 Mar 2020 05:31:58 +0530 Subject: upgrade ngspice to v31 --- .../spice/examples/xspice/filesource/my-source.txt | 12 ++++++++++ .../xspice/filesource/simple-filesource.cir | 28 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 Windows/spice/examples/xspice/filesource/my-source.txt create mode 100644 Windows/spice/examples/xspice/filesource/simple-filesource.cir (limited to 'Windows/spice/examples/xspice/filesource') diff --git a/Windows/spice/examples/xspice/filesource/my-source.txt b/Windows/spice/examples/xspice/filesource/my-source.txt new file mode 100644 index 00000000..be21b680 --- /dev/null +++ b/Windows/spice/examples/xspice/filesource/my-source.txt @@ -0,0 +1,12 @@ +* input test +0 0 1 +10e-6 0.1 0.9 +20e-6 0.2 0.8 +30e-6 0.3 0.7 +40e-6 0.4 0.6 +50e-6 0.5 0.5 +60e-6 0.6 0.4 +70e-6 0.7 0.3 +80e-6 0.8 0.2 +90e-6 0.9 0.1 +100e-6 1 0 diff --git a/Windows/spice/examples/xspice/filesource/simple-filesource.cir b/Windows/spice/examples/xspice/filesource/simple-filesource.cir new file mode 100644 index 00000000..70876249 --- /dev/null +++ b/Windows/spice/examples/xspice/filesource/simple-filesource.cir @@ -0,0 +1,28 @@ +filesource staircase non-interpolating and interpolating + +* non-interpolating +.model filesrc filesource (file="my-source.txt" ++ amploffset=[0.1 0.1] amplscale=[3.0 3.0] ++ timeoffset=0 timescale=1 ++ timerelative=false amplstep=true) + +* interpolating +.model filesrc2 filesource (file="my-source.txt" ++ amploffset=[0.1 0.1] amplscale=[3.0 3.0] ++ timeoffset=0 timescale=1 ++ timerelative=false amplstep=false) + +A1 %vd([1 0 N_IN 0]) filesrc +Rload N_IN 0 1k + +A2 %vd([2 0 N_IN2 0]) filesrc2 +Rload2 N_IN2 0 1k + +.control +option NOINIT ACCT + +tran 1us 100us +display +plot allv +.endc +.end \ No newline at end of file -- cgit