Skip to content

Schematics

Merlyn Cousins edited this page Mar 13, 2020 · 7 revisions

Schematics in Lepton are created with the lepton-schematics editor. The lepton schematics editor can be used to create symbols and schematics. Please see the lepton-schematics doc. Once symbols are created they are inserted into a fresh sheet and connected via net(s). As stated earlier, the symbols will have Attributes attached to them as do nets (wires) and sometimes pins. It is these connections and symbols which netlister operates on. Following is an example of a simple completed schematic created with lepton-schematic.

Please pay special attention to the two (SPICE) attributes. Both are just symbols. But one is an include spice symbol and the other is a spice model symbol. The include symbol has a file attribute which points to a file which contains spice commands to run the simulation. It could be other include commands. The netlister simply 'INCLUDES' the contents of this file. The model symbol does something similar, but only includes the same model file once. The netlister than create a spice device line which points to the model. This linkage occurs because the netlister knows the model of the device from the device attribute and the model file included. There are other ways of including model data. For example a model attribute can be included in the symbol itself. This attribute would have a spice model on one line. Also the file attribute can be included with a symbol which directs netlister to use that file which presumably contains a spice model. Please have a look at the voltage doubler example in the repository.

Clone this wiki locally