Skip to content

Attributes_spice

Vladimir Zhbanov edited this page Mar 30, 2020 · 1 revision

All things start with Symbols in a schematic created with lepton-schematic. Attached to these Symbols are attributes. These attributes have a value associated with them. An example of this would be the value attribute which is attached to a resistor, for example 'value=100k'. Some of these attributes are predefined for a symbol, and some are used within the context of spice simulation. Examples would be the spice include symbol, spice directive, spice model symbol. These various attributes must be defined before a workable spice model can be created. The workflow is roughly;

  • Create Schematics using appropriate symbols containing necessary attributes.
  • Run the netlister (lepton-netlist) on it.
  • Use the netlist created to run through ngspice or some other spice engine.
  • View the plot(s) in ngspice or gaw or some other viewer.
  • Refine and repeat.

The netlister is at the heart of this process. It reads the schematic and examines how the various components are connected and the value(s) of those components. The netlister than transforms those schematics into a form spice understands, a (netlist). I will proceed threw each of the above steps detailing the procedure. Please refer to the voltage doubler example in the repository.

Clone this wiki locally