diff options
author | rahulp13 | 2020-02-28 11:38:58 +0530 |
---|---|---|
committer | rahulp13 | 2020-02-28 11:38:58 +0530 |
commit | 246319682f60293b132fca1ce6e24689c6682617 (patch) | |
tree | 6871b758a17869efecfd617f5513e31f9a933f4a /Windows/spice/tests/xspice/digital/d_state.cir | |
parent | d9ab84106cac311d953f344386fef1c1e2bca1cf (diff) | |
download | eSim-246319682f60293b132fca1ce6e24689c6682617.tar.gz eSim-246319682f60293b132fca1ce6e24689c6682617.tar.bz2 eSim-246319682f60293b132fca1ce6e24689c6682617.zip |
initial commit
Diffstat (limited to 'Windows/spice/tests/xspice/digital/d_state.cir')
-rw-r--r-- | Windows/spice/tests/xspice/digital/d_state.cir | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Windows/spice/tests/xspice/digital/d_state.cir b/Windows/spice/tests/xspice/digital/d_state.cir new file mode 100644 index 00000000..facc8650 --- /dev/null +++ b/Windows/spice/tests/xspice/digital/d_state.cir @@ -0,0 +1,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 + + + + + + |