diff options
author | rahulp13 | 2020-03-03 05:31:58 +0530 |
---|---|---|
committer | rahulp13 | 2020-03-03 05:31:58 +0530 |
commit | dfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch) | |
tree | 1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/examples/xspice/d_source/PWMexample.net | |
parent | fd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff) | |
download | eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2 eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip |
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/xspice/d_source/PWMexample.net')
-rw-r--r-- | Windows/spice/examples/xspice/d_source/PWMexample.net | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Windows/spice/examples/xspice/d_source/PWMexample.net b/Windows/spice/examples/xspice/d_source/PWMexample.net new file mode 100644 index 00000000..a7771271 --- /dev/null +++ b/Windows/spice/examples/xspice/d_source/PWMexample.net @@ -0,0 +1,22 @@ +* PWMexample.net +* calling with: +* ngspice -r ngs.raw -b PWMexample.net + +.model input_vector d_source(input_file = "pwmexample_data.text") +.model dac1 dac_bridge(out_low = 0.7 out_high = 3.5 out_undef = 2.2 ++ input_load = 5.0e-12 t_rise = 1e-9 t_fall = 1e-9) + + +*============== Begin SPICE netlist of main design ============ +A1 [3 4] input_vector +abridge1 [3] [33] dac1 +abridge2 [4] [44] dac1 +R1 33 1 1K +C1 0 1 10n + +.control +save 33 44 1 +tran 1us 50m +wrdata $inputdir/fil2.dat V(33) v(44) V(1) +plot v(44) V(1) xlimit 22.9m 23m +.endc |