diff options
author | 2014-02-09 22:43:58 +0000 | |
---|---|---|
committer | 2014-02-09 22:43:58 +0000 | |
commit | 534348f6a96f09d4642d1eabb53ab7607b5674d5 (patch) | |
tree | 16509726366e2ab25bb5ddfe6f734a7fc02299e8 /nl_examples/sn74ls629_osc.c | |
parent | ee7c90c3a462ea9556f259ee17d08e4b2a324eb2 (diff) |
Commit current state of netlist examples. Later, these are intended as a basis for regression tests.
Diffstat (limited to 'nl_examples/sn74ls629_osc.c')
-rw-r--r-- | nl_examples/sn74ls629_osc.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nl_examples/sn74ls629_osc.c b/nl_examples/sn74ls629_osc.c new file mode 100644 index 00000000000..e390361a74b --- /dev/null +++ b/nl_examples/sn74ls629_osc.c @@ -0,0 +1,33 @@ +/* + * ne555_astable.c + * + */ + +#include "netlist/devices/net_lib.h" + +NETLIST_START(ne555_astable) + + /* + * Astable ne555 + * + */ + + /* Standard stuff */ + + SOLVER(Solver) + PARAM(Solver.FREQ, 48000) + + ANALOG_INPUT(V5, 5) // 5V + ANALOG_INPUT(VF, 2.5) // 5V + ANALOG_INPUT(VR, 5) // 5V + + SN74LS629(OSC, 0.022e-6) + + NET_C(GND, OSC.GND) + NET_C(VR, OSC.RNG) + NET_C(VF, OSC.FC) + NET_C(GND, OSC.ENQ) + + //LOG(log2, OSC.Y) + +NETLIST_END() |