Home |
Search |
Today's Posts |
|
Electronic Schematics (alt.binaries.schematics.electronic) A place to show and share your electronics schematic drawings. |
Reply |
|
LinkBack | Thread Tools | Display Modes |
#1
Posted to sci.electronics.design,alt.binaries.schematics.electronic,sci.electronics.cad,sci.electronics.basics
|
|||
|
|||
Interesting Spice Netlisting Quirk
This time I'll try not to hit "Send" before I enter some content :-(
In developing Spice models/subcircuits it's useful to include within the subcircuit declaration the models used. But if you add a line to your development schematic... ..MODEL D D It doesn't appear in the netlist, it appears in the .CIR file (this applies to all Berkeley-adhering Spices, but not to LTspice... LTspice doesn't use a .CIR file, and the .NET file doesn't function quite the same way: .NET is more like a .CIR file, everything is in it, components _and_ test bench, and only exists after a "Run"). Appearing in the .CIR requires going back and manually adding whatever models you want included to your distribution subcircuit. Anything manual is a nuisance as well as a possible source of error. Experimenting I found that creating a part with a two-line "template" (PSpice speak ... ** Force Text ** TEXT causes it to appear in the .NET file exactly like that. Make text... ..MODEL D D In the netlist, voila, it appears as... ** Force Text ** ..MODEL D D in spite of (in LTspice speak), .MODEL is a "Spice directive" So I've invented the "dual" of what I devised many years ago where I wanted to force non-circuit (e.g., test bench) elements out of the netlist into the .CIR file, I did this "template"... ..INC "C:\PSpice\DeviceLib\Spacer.txt" Test Bench Element 1 Test Bench Element 2 Test Bench Element 3 | | | (Taking advantage that "Spice directives" go into the .CIR file, _unless_ you do the "Force Text" scheme. ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: Contacts Only | | | Voice480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food. |
#2
Posted to sci.electronics.design,alt.binaries.schematics.electronic,sci.electronics.cad,sci.electronics.basics
|
|||
|
|||
Interesting Spice Netlisting Quirk
Jim Thompson wrote:
This time I'll try not to hit "Send" before I enter some content :-( In developing Spice models/subcircuits it's useful to include within the subcircuit declaration the models used. But if you add a line to your development schematic... .MODEL D D It doesn't appear in the netlist, it appears in the .CIR file (this applies to all Berkeley-adhering Spices, but not to LTspice... LTspice doesn't use a .CIR file, and the .NET file doesn't function quite the same way: .NET is more like a .CIR file, everything is in it, components _and_ test bench, and only exists after a "Run"). Appearing in the .CIR requires going back and manually adding whatever models you want included to your distribution subcircuit. Anything manual is a nuisance as well as a possible source of error. Experimenting I found that creating a part with a two-line "template" (PSpice speak ... ** Force Text ** TEXT causes it to appear in the .NET file exactly like that. Make text... .MODEL D D In the netlist, voila, it appears as... ** Force Text ** .MODEL D D in spite of (in LTspice speak), .MODEL is a "Spice directive" So I've invented the "dual" of what I devised many years ago where I wanted to force non-circuit (e.g., test bench) elements out of the netlist into the .CIR file, I did this "template"... .INC "C:\PSpice\DeviceLib\Spacer.txt" Test Bench Element 1 Test Bench Element 2 Test Bench Element 3 | | | (Taking advantage that "Spice directives" go into the .CIR file, _unless_ you do the "Force Text" scheme. ...Jim Thompson Much better.. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Interesting Netlistng Quirk | Electronic Schematics | |||
Yamaha Stagepas 500 quirk | Electronics Repair | |||
PSpice Netlisting/Template Trick | Electronic Schematics | |||
.DC Spice Analysis Quirk... Anyone Know How to Do This? | Electronic Schematics | |||
Kohler engine quirk | Home Repair |