summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/xspice/state
diff options
context:
space:
mode:
authorrahulp132021-01-07 07:55:48 +0530
committerrahulp132021-01-07 07:55:48 +0530
commit088203b088a02eabb4606dc734e901b81f237b11 (patch)
treeebe9109661a149c82fc66599a6ce8103637d0b4a /Windows/spice/examples/xspice/state
parentac223c4a69c701ad0a247401acdc48b8b6b6dba6 (diff)
downloadeSim-088203b088a02eabb4606dc734e901b81f237b11.tar.gz
eSim-088203b088a02eabb4606dc734e901b81f237b11.tar.bz2
eSim-088203b088a02eabb4606dc734e901b81f237b11.zip
removed outdated dependencies
Diffstat (limited to 'Windows/spice/examples/xspice/state')
-rw-r--r--Windows/spice/examples/xspice/state/nggtk.tcl10
-rw-r--r--Windows/spice/examples/xspice/state/state-machine.cir42
-rw-r--r--Windows/spice/examples/xspice/state/state.in13
3 files changed, 0 insertions, 65 deletions
diff --git a/Windows/spice/examples/xspice/state/nggtk.tcl b/Windows/spice/examples/xspice/state/nggtk.tcl
deleted file mode 100644
index a8669f6f..00000000
--- a/Windows/spice/examples/xspice/state/nggtk.tcl
+++ /dev/null
@@ -1,10 +0,0 @@
-# tcl script for gtkwave: show vcd file data created by ngspice
-set nfacs [ gtkwave::getNumFacs ]
-
-for {set i 0} {$i < $nfacs } {incr i} {
- set facname [ gtkwave::getFacName $i ]
- set num_added [ gtkwave::addSignalsFromList $facname ]
-}
-
-gtkwave::/Edit/UnHighlight_All
-gtkwave::/Time/Zoom/Zoom_Full
diff --git a/Windows/spice/examples/xspice/state/state-machine.cir b/Windows/spice/examples/xspice/state/state-machine.cir
deleted file mode 100644
index 4f37914d..00000000
--- a/Windows/spice/examples/xspice/state/state-machine.cir
+++ /dev/null
@@ -1,42 +0,0 @@
-* state machine example
-* by Marcel Hendrix, Jan. 10th, 2014
-
-* Define a simple up/down counter that counts clk edges.
-* Digital outputs are on msb+lsb.
-* inputs clock reset outputs (all digital)
-a0 [n_one] clk n_zero [msb lsb] state1
-*.model state1 d_state(state_file = "D:\Software\Spice\various\xspice\state.in")
-.model state1 d_state(state_file = "state.in")
-
-* Digital "one" and "zero"
-a1 n_one pullup1
-.model pullup1 d_pullup(load = 1pF)
-a2 n_zero pulldown1
-.model pulldown1 d_pulldown(load = 1pF)
-
-* Convert the digital outputs to analog so we can conveniently plot them
-a3 [msb] [out_msb] dac1
-a4 [lsb] [out_lsb] dac1
-.model dac1 dac_bridge(out_low = 0 out_high = 5 out_undef = 2.5)
-
-* The digital VCO needs an analog control voltage
-Vcnt cntl 0 pulse(-1V 1V 0 5ms 4ms 1ms 1)
-
-* Digital VCO to drive state-machine (counter)
-a5 cntl clk var_clock
-.model var_clock d_osc(cntl_array = [-2 -1 1 2] freq_array = [1e3 1e3 10e3 10e3]
-+ duty_cycle = 0.1)
-
-.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
diff --git a/Windows/spice/examples/xspice/state/state.in b/Windows/spice/examples/xspice/state/state.in
deleted file mode 100644
index 61fa3fdb..00000000
--- a/Windows/spice/examples/xspice/state/state.in
+++ /dev/null
@@ -1,13 +0,0 @@
-* This is an example state.in file. This file
-* defines a simple 2-bit counter with one input. The
-* value of this input determines whether the counter counts
-* up (in = 1) or down (in = 0).
-* [state#] [output1 output2] [input] [next state]
-0 0s 0s 0 -> 3
- 1 -> 1
-1 0s 1z 0 -> 0
- 1 -> 2
-2 1z 0s 0 -> 1
- 1 -> 3
-3 1z 1z 0 -> 2
-3 1z 1z 1 -> 0