summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/xspice/filesource/simple-filesource.cir
diff options
context:
space:
mode:
authorrahulp132020-03-03 05:31:58 +0530
committerrahulp132020-03-03 05:31:58 +0530
commitdfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch)
tree1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/examples/xspice/filesource/simple-filesource.cir
parentfd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff)
downloadeSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/xspice/filesource/simple-filesource.cir')
-rw-r--r--Windows/spice/examples/xspice/filesource/simple-filesource.cir28
1 files changed, 28 insertions, 0 deletions
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