The Simulink-SPICE-Interface was developed for the simultaneous simulation of
mixed systems containing Simulink-type and SPICE-type subsystems. The
Inteface works within the familiar MATLAB/Simulink environment and is based
on a Simulink feature to create new blocks written in C (C MEX S-Functions).
The source code of SPICE Version 3F5 was implemented in such a way.
Typical applications are:
- mechanical / hydraulical / electrical / electronic mixed
systems (i.e. automotive)
- aerospace / avionics
- environmental technology
- power system design
- biological / medical / biomedical systems
|
Subsystem with interface block SLSP |
|
The new Simulink block SLSP is provided by the interface to:
- read a SPICE circuit file
- initialize the simulation
- perform the numerical integration
- manage the communication between Simulink and SPICE
|
One parameter of the new block SLSP is the name of a circuit file
which describes the circuit as a flat netlist.
The DATASHEET contains more
information and a complete application example.
Device level model of OpAmp. uA741
.TRAN 0.005 10 0 0.005
...
VCC 10 0 SLSP
VEE 0 11 SLSP
XOPA 12 7 9 10 11 UA741
.SUBCKT UA741 2 1 24 27 26
R1 10 26 1K
...
COMP 22 8 30PF
Q1 3 2 4 QNL
...
Q23 26 20 25 QPL
.MODEL QNL NPN(BF=80 RB=100 ...)
.MODEL QPL PNP(BF=10 RB=20 TF=1NS ...)
.ENDS UA741
.END
|
|
SPICE circuit file |
SPICE schematic of OpAmp. uA741 |
The Simulink-SPICE-Interface is available for the PC Version of
MATLAB/Simulink.