mame/nl_examples/vccs.c
Couriersud 4b4b4542b2 Netlist:
- fixed a bug in which the fallback solver was called instead of gauss - seidel.
- matrix solvers are now subdevices of the solver devices
- matrix solvers can now be scheduled independently
- Rename RESCHED_LOOPS to GS_LOOPS (Gauss Seidel)
- Added paragmenter NR_LOOPS (Newton Raphson)
2014-04-18 17:58:35 +00:00

28 lines
456 B
C

/*
* vccs.c
*
*/
#include "netlist/devices/net_lib.h"
NETLIST_START(vccs)
CLOCK(clk, 1000) // 1000 Hz
SOLVER(Solver, 48000)
PARAM(Solver.ACCURACY, 1e-12)
PARAM(Solver.GS_LOOPS, 10000)
VCCS(VV)
PARAM(VV.G, 100) // typical OP-AMP amplification
RES(R2, 1)
NET_C(clk, VV.IN)
NET_C(R2.1, VV.OP)
NET_C(R2.2, GND)
NET_C(VV.ON, GND)
NET_C(VV.IP, GND)
LOG(logX, VV.OP)
LOG(logY, clk)
NETLIST_END()