Created
January 16, 2015 13:14
-
-
Save russdill/a051d2c4754bc41513e2 to your computer and use it in GitHub Desktop.
nor.sch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v 20110115 2 | |
C 40900 50700 1 0 0 spice-directive-1.sym | |
{ | |
T 41000 51000 5 10 0 1 0 0 1 | |
device=directive | |
T 41000 51100 5 10 1 1 0 0 1 | |
refdes=Misc | |
T 40900 50900 5 10 1 1 180 6 27 | |
value=.model pulldown d_pulldown(load=0) | |
.model pullup d_pullup(load=0) | |
A_pulldown low pulldown | |
A_pullup high pullup | |
Vdir dir 0 1V | |
.model adc adc_bridge(in_low=0 in_high=1 rise_delay=1f fall_delay=1f) | |
Adir [dir] [v6_out] adc | |
.model inv d_inverter(rise_delay=1f fall_delay=1f input_load=0) | |
Adir_inv v6_out n25q_out inv | |
.param n25q_spec={spec} | |
.param v6_spec={spec} | |
.func modv(typ, minv, maxv) {ternary_fcn(spec > 0, maxv, ternary_fcn(spec < 0, minv, typ))} | |
.MODEL m55 txl(R=modv(3.5314,2.2635,5.77) L=modv(317.6nH,261.7nH,373.3nH) C=modv(104.8pF,132.1pF,85.8pF) length=1 G=0) | |
.subckt hold in out | |
.model dac dac_bridge(out_undef=0 input_load=0 t_rise=1f t_fall=1f) | |
.model adc adc_bridge(in_low=0 in_high=1 rise_delay=1f fall_delay=1f) | |
.model dff d_dff(set_delay=1f reset_delay=1f ic=2 set_load=0 reset_load=0 rise_delay=1f fall_delay=1f) | |
.model pulldown d_pulldown(load=0) | |
A_pulldown low pulldown | |
A0 [in ~in] [a1 a2] dac | |
A1 [a1 a2] [set nreset] adc | |
A2 low low set nreset out Null dff | |
.ends | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment