mame/nl_examples
Couriersud 686d540bad Netlist can now be included as sub-circuits. That's the same approach SPICE uses.
The implementation also supports nesting. 
Opamp emulation now is as easy as

    /* Opamp wired as impedance changer */
    SUBMODEL(op, opamp)

    NET_C(op.GND, GND)
    NET_C(op.PLUS, clk)
    NET_C(op.MINUS, op.OUT)

The missing bit now is a central submodel repository. I'll start a discussion soon on the list.

nl_examples/opamp.c is an example of a impedance changer stage followed by a 1:2 amplifier stage.
System size (= number of voltage levels to be calculated) is between 20 - 30.
Using a simple, yet better opamp model than usually implemented in the old discrete core, I get

./nltool -f nl_examples/opamp.c -t 30
startup time ==> 0.002
runnning ...
30.000000 seconds emulation took 0.438599 real time ==> 6839.96%

Which leaves quite some buffer to emulate even complex mixing and filtering stages in real-time :-)
2014-02-13 00:28:18 +00:00
..
7400_astable.c Commit current state of netlist examples. Later, these are intended as a basis for regression tests. 2014-02-09 22:43:58 +00:00
bjt_eb.c Major renaming of netlist device macros, like 2014-01-19 15:51:25 +00:00
bjt.c Major renaming of netlist device macros, like 2014-01-19 15:51:25 +00:00
msx_mixer_stage.c Major renaming of netlist device macros, like 2014-01-19 15:51:25 +00:00
ne555_astable.c Major renaming of netlist device macros, like 2014-01-19 15:51:25 +00:00
opamp.c Netlist can now be included as sub-circuits. That's the same approach SPICE uses. 2014-02-13 00:28:18 +00:00
sn74ls629_osc.c Commit current state of netlist examples. Later, these are intended as a basis for regression tests. 2014-02-09 22:43:58 +00:00
test.c Major renaming of netlist device macros, like 2014-01-19 15:51:25 +00:00
todo.c Commit current state of netlist examples. Later, these are intended as a basis for regression tests. 2014-02-09 22:43:58 +00:00
vccs1.c Commit current state of netlist examples. Later, these are intended as a basis for regression tests. 2014-02-09 22:43:58 +00:00
vccs.c Commit current state of netlist examples. Later, these are intended as a basis for regression tests. 2014-02-09 22:43:58 +00:00