summaryrefslogtreecommitdiff
path: root/Windows/spice/tests/xspice/digital/d_state.cir
blob: facc86505579d4a995d1ca2d43a4f503eb4e9abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Code Model Test: d_source + d_state

* (compile (concat "SPICE_SCRIPTS=. ../../../src/ngspice " buffer-file-name) t)


vdummy  dummy 0  DC=0

a_source  [enable reset up]  d_source1

a_osc  [enable clk] clk  d_xor1

a_counter  [up] clk reset [o1 o2]  d_state1


.model d_source1 d_source (input_file="d_state-stimulus.txt")

.model d_xor1 d_xor (rise_delay=1ns fall_delay=1ns)

.model d_state1 d_state (clk_delay=0.1ns reset_delay=0.1ns
+                        state_file="d_state-updn.txt" reset_state=0)

.control
set noaskquit
set noacct
tran 100ps 20ns
eprint clk up reset o1 o2
.endc

.end