![]() ![]() ![]() So the answer is, for a multi-gate part, you need a multi-gate model. be sure to include lines like above, where you create (identical) instances of the device that you have a model for, and just make sure you connect the pins correctly. ![]() So, in your case, simililarly, made a high level subcircuit model wrapper which has all the pins of the IC, then insert the full model inside that subcircuit. Then the next two lines (in this case, in your case the next 4 lines) are the instances of the opamps inside the IC which you need to connect to the external pins. The first line of the LM358D model ".SUBCKT LM358D in1- in1+ out1 in2- in2+ out2 vdd vss" has ALL the pins of the IC, and you should do the same for your part. Notice that MACROOPAMP is the name of the single opamp model, but LM358D is the multigate part (the IC with multiple opamps). SUBCKT LM358D in1- in1+ out1 in2- in2+ out2 vdd vss open that example and run the simulation command so you can view the netlist. See the "MapMultiGatePart" example under ngspice/Analog/mapgates/ (sorry got the name wrong in previous post). OK so here is a little more detail for the solution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |