Difference between revisions of "ESim/C2/Schematic-Creation-and-Simulation/English"
Nancyvarkey (Talk | contribs) |
|||
Line 17: | Line 17: | ||
'''Narration''' | '''Narration''' | ||
− | |||
− | |||
|- | |- | ||
Line 37: | Line 35: | ||
* <div style="margin-left:0.5in;margin-right:0in;">create '''circuit schematic'''</div> | * <div style="margin-left:0.5in;margin-right:0in;">create '''circuit schematic'''</div> | ||
* <div style="margin-left:0.5in;margin-right:0in;">generate '''spice netlist'''</div> | * <div style="margin-left:0.5in;margin-right:0in;">generate '''spice netlist'''</div> | ||
− | * <div style="margin-left:0.5in;margin-right:0in;">convert | + | * <div style="margin-left:0.5in;margin-right:0in;">convert '''spice netlist '''to '''ngspice '''format</div> |
* <div style="margin-left:0.5in;margin-right:0in;">simulate the '''netlist'''</div> | * <div style="margin-left:0.5in;margin-right:0in;">simulate the '''netlist'''</div> | ||
− | |||
|- | |- | ||
Line 48: | Line 45: | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To record this tutorial, we will use-* <div style="margin-left:0.5in;margin-right:0in;">'''Ubuntu Linux OS '''16.04 </div> | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To record this tutorial, we will use- |
+ | * <div style="margin-left:0.5in;margin-right:0in;">'''Ubuntu Linux OS '''16.04 </div> | ||
* <div style="margin-left:0.5in;margin-right:0in;">'''eSim '''version 1.1.2.</div> | * <div style="margin-left:0.5in;margin-right:0in;">'''eSim '''version 1.1.2.</div> | ||
− | |||
|- | |- | ||
Line 61: | Line 58: | ||
Desktop icon | Desktop icon | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To launch '''eSim''', double-click on the '''eSim''' icon on your | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To launch '''eSim''', double-click on the '''eSim''' icon on your '''Desktop'''. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Show slide:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Show slide:''' | ||
Line 82: | Line 79: | ||
eSim startup window | eSim startup window | ||
− | |||
− | |||
Line 92: | Line 87: | ||
− | Note that the project files created will be saved in the''' eSim-Workspace''' directory, by default. | + | Note that the '''project''' files created will be saved in the''' eSim-Workspace''' directory, by default. |
Press “'''Ok'''” in the dialog box. | Press “'''Ok'''” in the dialog box. | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | ||
Line 106: | Line 102: | ||
Type '''RC >> '''click on '''OK'''. | Type '''RC >> '''click on '''OK'''. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on the '''New Project button''', to create a new project. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on the '''New Project button''', to create a new '''project'''. |
In the “'''Enter Project name'''” field, type '''RC '''and click on '''OK'''. | In the “'''Enter Project name'''” field, type '''RC '''and click on '''OK'''. | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Please note that spaces are not allowed in the | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Please note that spaces are not allowed in the '''project''' name. |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim Main Window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim Main Window:''' | ||
Line 119: | Line 117: | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Our new project '''RC''' will appear under '''Projects.''' | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Our new project '''RC''' will appear under '''Projects.''' | ||
− | + | Double-click on '''RC '''to select the '''project'''. | |
To create the '''circuit schematic''', click''' Open Schematic''' button on the left toolbar. | To create the '''circuit schematic''', click''' Open Schematic''' button on the left toolbar. | ||
Line 126: | Line 124: | ||
Click Ok. | Click Ok. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Yes | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Yes''' in the''' confirmation '''dialog box. |
Line 151: | Line 149: | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Type ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Type '''eSim underscore Devices''' in the '''Filter''' field. |
Line 160: | Line 158: | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Press '''F1.''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Press '''F1.''' | ||
− | |||
− | |||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Zoom in by pressing '''F1.''' | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Zoom in by pressing '''F1.''' | ||
Line 177: | Line 173: | ||
− | Type again ''' | + | Type again '''eSim underscore Devices''' in the '''Filter''' field. |
Line 196: | Line 192: | ||
− | Type '''eSim_Sources''' in the '''Filter''' field | + | Type '''eSim_Sources''' in the '''Filter''' field. |
− | + | ||
− | + | ||
+ | Select '''sine''' and click on '''OK'''. | ||
|- | |- | ||
Line 206: | Line 201: | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Place the '''sine '''on the '''editor '''as done before. | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Place the '''sine '''on the '''editor '''as done before. | ||
|- | |- | ||
− | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | + | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Filter''' field >> Type '''gnd''' >> select gnd >> click OK >> place on editor |
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Similarly, type '''gnd '''and place a '''ground terminal '''on '''editor'''. | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Similarly, type '''gnd '''and place a '''ground terminal '''on '''editor'''. | ||
|- | |- | ||
Line 215: | Line 210: | ||
<span style="color:#000000;">'''Filter'''</span><span style="color:#000000;"> field >> Type </span><span style="color:#000000;">'''eSim_Plot'''</span><span style="color:#000000;"> >> select plot_v1 >> click OK >> place on editor</span> | <span style="color:#000000;">'''Filter'''</span><span style="color:#000000;"> field >> Type </span><span style="color:#000000;">'''eSim_Plot'''</span><span style="color:#000000;"> >> select plot_v1 >> click OK >> place on editor</span> | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Similarly, type ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Similarly, type '''eSim underscore Plot, '''select the''' plot_v1 '''and place it on the '''editor.''' |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | <span style="color:#000000;">Copy </span><span style="color:#000000;">'''plot_v1'''</span><span style="color:#000000;"> >> place on editor</span> | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | <span style="color:#000000;">Copy </span><span style="color:#000000;">'''plot_v1'''</span><span style="color:#000000;"> >> place on editor</span> | ||
Line 221: | Line 217: | ||
− | Place the cursor on ''' | + | Place the cursor on '''plot underscore v1''', right-click and select '''copy component'''. |
− | Now '''place it '''on the editor. | + | Now '''place it '''on the '''editor'''. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | This is the '''plot component '''used to plot '''voltages '''at the required '''nodes.''' | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | This is the '''plot component '''used to plot '''voltages '''at the required '''nodes.''' | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
Line 238: | Line 235: | ||
− | The '''labels''' are used to name the required '''nodes '''in the circuit. | + | The '''labels''' are used to name the required '''nodes '''in the '''circuit'''. |
− | This will help us understand the '''netlist''' and connection of our circuit. | + | This will help us understand the '''netlist''' and connection of our '''circuit'''. |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Place global label '''tool >> click anywhere >> Type '''IN '''>> click on''' OK''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Place global label '''tool >> click anywhere >> Type '''IN '''>> click on''' OK''' | ||
Line 251: | Line 249: | ||
Type '''IN '''in text field and click on '''OK.''' | Type '''IN '''in text field and click on '''OK.''' | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Place global label '''tool >> click anywhere >> Type '''OUT '''>> click on''' OK''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Place global label '''tool >> click anywhere >> Type '''OUT '''>> click on''' OK''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Similarly, place one more label '''OUT '''in editor. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Similarly, place one more label '''OUT '''in '''editor'''. |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us move and arrange the components to create the '''RC circuit.''' | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us move and arrange the components to create the '''RC circuit.''' | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
Line 263: | Line 264: | ||
Place cursor on '''resistor '''>> press ''''M' ''' | Place cursor on '''resistor '''>> press ''''M' ''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To move the '''resistor, '''place the cursor on it and press the key '''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To move the '''resistor, '''place the cursor on it and press the key ''''M''''. |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on editor at preferred location. | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on editor at preferred location. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Place it at the preferred location, by clicking on editor again. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Place it at the preferred location, by clicking on '''editor''' again. |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
Line 274: | Line 277: | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To rotate the '''resistor, '''place the cursor on it and press the key '''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To rotate the '''resistor, '''place the cursor on it and press the key ''''R'.''' |
Line 282: | Line 285: | ||
Connecting wires to the schematic | Connecting wires to the schematic | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Now, let us connect the various components using wires. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Now, let us connect the various '''components''' using wires. |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
Click on '''Place wire '''button >> click '''sine resource '''and drag between Sine and Resistor >> click on it. | Click on '''Place wire '''button >> click '''sine resource '''and drag between Sine and Resistor >> click on it. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Place wire '''button''' '''from the right toolbar | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Place wire '''button''' '''from the right toolbar. |
Line 294: | Line 298: | ||
Move the cursor point to one end of the '''resistor '''and click on it. | Move the cursor point to one end of the '''resistor '''and click on it. | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Similarly, connect all the components as demonstrated here. | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Similarly, connect all the '''components''' as demonstrated here. |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
Line 302: | Line 308: | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | The '''plot''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | The '''plot components''' are placed at the '''output '''and '''input nodes'''. |
This helps us to view the corresponding '''voltage waveforms '''on simulation. | This helps us to view the corresponding '''voltage waveforms '''on simulation. | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
Line 313: | Line 320: | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To '''annotate '''the '''schematic components''', | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | To '''annotate '''the '''schematic components''', click on '''Annotate '''button from the top toolbar. |
− | Click on '''Annotate ''' | + | Click on''' Annotate '''and then click on '''OK.''' |
− | + | The '''schematic '''is now '''annotated'''. | |
− | |||
− | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
Line 346: | Line 351: | ||
− | Click on '''Perform electrical rules check '''button | + | Click on '''Perform electrical rules check '''button on the top toolbar. |
− | + | ||
− | on the | + | |
Line 354: | Line 357: | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Point to the errors. | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Point to the errors. | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | We can see the errors - | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | We can see the errors - |
− | * | + | '''global label not connected''''' '' |
− | + | * and''' a pin is not driven to components''' | |
|- | |- | ||
Line 364: | Line 367: | ||
Close '''ERC''' | Close '''ERC''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Ignore | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Ignore the '''global label not connected '''error, since we have used the '''labels '''for naming the '''nodes '''only. |
− | + | ||
− | since we have used the '''labels '''for naming the '''nodes '''only. | + | |
Line 374: | Line 375: | ||
Adding Power Flag | Adding Power Flag | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Note that the '''ground terminal pin | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Note that the '''ground terminal pin''' is highlighted by a green arrow in the '''schematic.''' |
Line 394: | Line 395: | ||
− | Type '''PWR underscore FLAG and | + | Type '''PWR underscore FLAG''' and click '''OK''' Place it on the '''schematic editor.''' |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Select '''wire''' >> connect '''PWR_FLAG''' to '''gnd''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Select '''wire''' >> connect '''PWR_FLAG''' to '''gnd''' | ||
Line 415: | Line 416: | ||
There will be only '''global label not connected''' errors, which can be '''ignored.''' | There will be only '''global label not connected''' errors, which can be '''ignored.''' | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Delete Markers''' >> click on '''Close'''. | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Delete Markers''' >> click on '''Close'''. | ||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Delete Markers''' and then click on '''Close.''' | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''Delete Markers''' and then click on '''Close.''' | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
Line 428: | Line 431: | ||
− | Click on '''Generate netlist '''button | + | Click on '''Generate netlist '''button from the top toolbar. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | <span style="color:#000000;">Click </span><span style="color:#000000;">'''Generate netlist'''</span><span style="color:#000000;"> >> </span><span style="color:#000000;">'''spice'''</span><span style="color:#000000;"> tab >> check </span><span style="color:#000000;">'''Default'''</span><span style="color:#000000;"> >> click on Generate</span> | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | <span style="color:#000000;">Click </span><span style="color:#000000;">'''Generate netlist'''</span><span style="color:#000000;"> >> </span><span style="color:#000000;">'''spice'''</span><span style="color:#000000;"> tab >> check </span><span style="color:#000000;">'''Default'''</span><span style="color:#000000;"> >> click on Generate</span> | ||
Line 443: | Line 446: | ||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim schematic window:''' | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | A | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | A '''Kicad netlist '''of the '''RC circuit '''has been generated. |
Line 463: | Line 466: | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us add '''transient parameters''' in '''Analysis | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us add '''transient parameters''' in '''Analysis''' tab. |
Line 470: | Line 473: | ||
Scroll down to enter values in the '''Transient analysis''' fields. | Scroll down to enter values in the '''Transient analysis''' fields. | ||
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Kicad to Ngspice Converter:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Kicad to Ngspice Converter:''' | ||
Line 480: | Line 484: | ||
− | Type '''0 '''in the | + | Type '''0 '''in the '''Start''' textbox. |
+ | |||
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | <div style="color:#000000;">Step time >> 5ms </div> | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | <div style="color:#000000;">Step time >> 5ms </div> | ||
Line 492: | Line 497: | ||
Source Details Tab | Source Details Tab | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us add the '''source details''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us add the '''source details'''. |
To do so, click on '''Source details''' tab. | To do so, click on '''Source details''' tab. | ||
Line 507: | Line 512: | ||
<div style="color:#000000;">damping factor >> 0</div> | <div style="color:#000000;">damping factor >> 0</div> | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Enter the '''offset value '''as '''0 '''and press '''Tab.''' |
Line 515: | Line 520: | ||
Press '''Convert '''button | Press '''Convert '''button | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | We will talk about the '''Ngspice Model, Device Modelling and | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | We will talk about the '''Ngspice Model, Device Modelling''' and '''Subcircuits''' tab in later tutorials. |
− | Press the '''Convert '''button to ''' | + | Press the '''Convert '''button to convert the '''Kicad netlist''' to '''Ngspice netlist''' |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | ||
Line 525: | Line 530: | ||
Close the '''kicad to ngspice''' tool | Close the '''kicad to ngspice''' tool | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | A confirmation dialog box appears. Here let's click | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | A confirmation dialog box appears. Here let's click''' Ok.''' |
Close the '''kicad to ngspice''' tool by clicking close at the top right corner of the window. | Close the '''kicad to ngspice''' tool by clicking close at the top right corner of the window. | ||
Line 537: | Line 542: | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | An ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | An '''Ngspice terminal '''and '''plot '''windows open along with a '''Python plot''' window. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Ngspice Plot:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Ngspice Plot:''' | ||
Line 543: | Line 548: | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | The plot waveforms show '''transient analysis '''of the '''RC ''' | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | The plot waveforms show '''transient analysis '''of the '''RC circuit'''. |
− | Close the '''Ngspice terminal '''and '''plot''' | + | Close the '''Ngspice terminal '''and '''plot''' windows. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Python Plot Window:''' | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Python Plot Window:''' | ||
Line 552: | Line 557: | ||
Click on '''Potting tab''' >> maximize | Click on '''Potting tab''' >> maximize | ||
− | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Select the | + | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Select the '''Python plot''' window by clicking on '''Plotting''' tab in the dock area. |
− | Maximize the '''Python''' | + | Maximize the '''Python plot''' window. |
|- | |- | ||
| style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | | style="background-color:#ffffff;border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | ||
Line 582: | Line 587: | ||
− | '''Maximise''' the '''schematic '''and | + | '''Maximise''' the '''schematic '''and drag the '''multimeter windows''' to the corresponding '''nodes''' of '''schematic'''. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Show Slide:''' | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Show Slide:''' | ||
Device Models and Subcircuits | Device Models and Subcircuits | ||
− | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us see how to '''simulate''' a circuit involving '''semiconductor devices''' and '''subcircuits'''. | + | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us see how to '''simulate''' a '''circuit''' involving '''semiconductor devices''' and '''subcircuits'''. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Show Slide:''' | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Show Slide:''' | ||
Download code file | Download code file | ||
− | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us simulate '''7805VoltageRegulator''' circuit, which has ''' | + | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us simulate '''7805VoltageRegulator''' circuit, which has '''diodes''' and a '''LM7805 regulator IC'''. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim Main Window :''' | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''eSim Main Window :''' | ||
Line 632: | Line 637: | ||
Show annotated '''7805VoltageRegulator '''schematic. | Show annotated '''7805VoltageRegulator '''schematic. | ||
− | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | I have annotated, performed '''ERC''', and generated the '''spice netlist''' for this circuit. | + | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | I have '''annotated''', performed '''ERC''', and generated the '''spice netlist''' for this '''circuit'''. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | | ||
Line 657: | Line 662: | ||
− | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us assign '''device | + | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Let us assign '''device models''' to the '''semiconductor components''' inside the '''schematic'''. |
Line 668: | Line 673: | ||
Hover cursor over '''Diode 1: esim_diode''' | Hover cursor over '''Diode 1: esim_diode''' | ||
| style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | We will add a '''device model''' for '''Diode 1: esim_diode''' | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | We will add a '''device model''' for '''Diode 1: esim_diode''' | ||
− | |||
− | |||
|- | |- | ||
Line 698: | Line 701: | ||
− | Double-click on '''lm7805 ''' | + | Double-click on '''lm7805 ''' and then click on the '''Open''' button. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Kicad to Ngspice Converter:''' | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | '''Kicad to Ngspice Converter:''' | ||
Line 706: | Line 709: | ||
Click O'''k.''' | Click O'''k.''' | ||
− | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Press the '''Convert '''button to convert the''' | + | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Press the '''Convert '''button to convert the''' Kicad netlist '''to '''Ngspice netlist'''. |
Line 714: | Line 717: | ||
Click on '''Simulation.''' | Click on '''Simulation.''' | ||
− | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''simulation '''from the left | + | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | Click on '''simulation '''from the left toolbar. |
|- | |- | ||
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | eSim Main Window: | | style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | eSim Main Window: | ||
Line 727: | Line 730: | ||
Click on '''plot.''' | Click on '''plot.''' | ||
− | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | An ''' | + | | style="border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | An '''Ngspice terminal '''and '''Ngspice plot '''windows opens along with a '''Python plot''' window. |
− | + | Click on''' in1, in2 '''and''' out '''checkboxes in the '''Python plot''' window. | |
− | Click on''' in1, in2 '''and''' out '''checkboxes in the ''' | + | |
Line 749: | Line 751: | ||
− | * | + | * Create '''circuit schematic ''' |
− | * | + | * Generate spice '''netlist''' |
− | * | + | * Convert spice '''netlist '''to '''ngspice '''format |
− | * | + | * Simulate the '''netlist''' |
Line 790: | Line 792: | ||
Previous slide | Previous slide | ||
− | |||
− | |||
| style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | This is _________ from IIT Bombay, signing off. | | style="background-color:#ffffff;border:1pt solid #000001;padding-top:0in;padding-bottom:0in;padding-left:0.0813in;padding-right:0.075in;" | This is _________ from IIT Bombay, signing off. | ||
Thank you. | Thank you. | ||
− | |||
− | |||
|- | |- | ||
|} | |} |
Revision as of 16:59, 1 July 2019
Schematic Creation and Simulation using eSim
Author: Gaurav Supal
Visual cue
|
Narration |
Show Slide:
Opening Slide
|
Welcome to the spoken tutorial on “Schematic Creation and Simulation using eSim” |
Show Slide:
Learning Objectives |
In this tutorial, using eSim, we will learn to-
|
Show Slide:
Systems Requirements
|
To record this tutorial, we will use-
|
Show Slide:
Prerequisites |
To practice this tutorial, basic knowledge of analog and digital electronics is required. |
System Computer:
Desktop icon |
To launch eSim, double-click on the eSim icon on your Desktop. |
Show slide:
Launch eSim through Terminal esim >> press Enter
|
Alternately, you can also open eSim from the terminal.
|
System Computer:
eSim startup window
|
eSim window opens up.
|
Let us now create an RC circuit schematic and simulate it. | |
eSim Main Window:
Creating New Project
|
Click on the New Project button, to create a new project.
|
Please note that spaces are not allowed in the project name. | |
eSim Main Window:
Project Explorer >> point to RC >> Double-click >> click Open Schematic |
Our new project RC will appear under Projects.
Double-click on RC to select the project. To create the circuit schematic, click Open Schematic button on the left toolbar. |
eSim schematic window:
Click Ok. |
Click on Yes in the confirmation dialog box.
|
eSim schematic window:
Click on Place component tool >> click anywhere |
Let us now add components to the schematic.
|
eSim schematic window:
Adding Resistor
|
Type eSim underscore Devices in the Filter field.
|
Click on the editor once. | Place the resistor R on the editor, by clicking on the editor once. |
Press F1. | Zoom in by pressing F1.
|
eSim schematic window:
Adding Capacitor
|
Click on the editor once again.
|
Place capacitor on the editor | Place the capacitor C on the editor as done before. |
eSim schematic window:
Adding Sine Source
|
Click again on the editor.
|
Place sine on the editor | Place the sine on the editor as done before. |
Filter field >> Type gnd >> select gnd >> click OK >> place on editor | Similarly, type gnd and place a ground terminal on editor. |
eSim schematic window:
Adding Plots
|
Similarly, type eSim underscore Plot, select the plot_v1 and place it on the editor. |
Copy plot_v1 >> place on editor | We need one more plot for output.
|
This is the plot component used to plot voltages at the required nodes. | |
eSim schematic window:
Adding Labels
|
Let us now add labels to the schematic.
|
Click on Place global label tool >> click anywhere >> Type IN >> click on OK | Click on Place global label tool from the right toolbar.
|
Click on Place global label tool >> click anywhere >> Type OUT >> click on OK | Similarly, place one more label OUT in editor. |
Let us move and arrange the components to create the RC circuit. | |
eSim schematic window:
Moving the components Place cursor on resistor >> press 'M' |
To move the resistor, place the cursor on it and press the key 'M'. |
Click on editor at preferred location. | Place it at the preferred location, by clicking on editor again. |
eSim schematic window:
Rotating the components
|
To rotate the resistor, place the cursor on it and press the key 'R'.
|
eSim schematic window:
Connecting wires to the schematic |
Now, let us connect the various components using wires. |
eSim schematic window:
Click on Place wire button >> click sine resource and drag between Sine and Resistor >> click on it. |
Click on Place wire button from the right toolbar.
|
Similarly, connect all the components as demonstrated here. | |
eSim schematic window:
|
The plot components are placed at the output and input nodes.
|
eSim schematic window:
Annotate the schematic
|
To annotate the schematic components, click on Annotate button from the top toolbar.
|
eSim schematic window:
Giving values to components |
To assign a value to the resistor, right-click on it and choose Edit Component.
|
Similarly, assign value 1u for capacitor. | |
eSim schematic window:
Perform ERC check Click on Perform electrical rules check button >> click on Run. |
Now let us do electrical rules check for this schematic.
|
Point to the errors. | We can see the errors -
global label not connected
|
Close ERC |
Ignore the global label not connected error, since we have used the labels for naming the nodes only.
|
eSim schematic window:
Adding Power Flag |
Note that the ground terminal pin is highlighted by a green arrow in the schematic.
|
Click on Place component tool >> Click on Schematic editor >> Type PWR_FLAG >> click Ok >> place it on the editor
|
Click on Place component tool.
|
Select wire >> connect PWR_FLAG to gnd
|
Connect this power flag to the ground terminal using a wire.
|
eSim schematic window:
Perform ERC check
|
Now repeat the electrical rules check.
|
Click on Delete Markers >> click on Close. | Click on Delete Markers and then click on Close. |
eSim schematic window:
Generating Kicad Netlist
|
Now let us generate the netlist of this circuit.
|
Click Generate netlist >> spice tab >> check Default >> click on Generate
|
Click on the Spice tab.
|
eSim schematic window: | A Kicad netlist of the RC circuit has been generated.
|
eSim Main Window:
Click on Convert Kicad to Ngspice |
Now, let us add simulation parameters to this netlist.
|
Kicad to Ngspice Converter:
|
Let us add transient parameters in Analysis tab.
|
Kicad to Ngspice Converter:
Inserting values
Start time >> 0ms
|
Make Start Time equal to 0 by doing the following:
|
Step time >> 5ms
Stop time >> 30ms |
Similarly, make the Step time 5 milliseconds
and Stop time 30 milliseconds. |
Kicad to Ngspice Converter:
Source Details Tab |
Let us add the source details.
To do so, click on Source details tab. |
Kicad to Ngspice Converter:
offset value >> 0
amplitude >> 5
frequency >> 50
delay time >> 0
damping factor >> 0
|
Enter the offset value as 0 and press Tab.
|
Kicad to Ngspice Converter:
Press Convert button |
We will talk about the Ngspice Model, Device Modelling and Subcircuits tab in later tutorials.
|
Click Ok. Close the kicad to ngspice tool |
A confirmation dialog box appears. Here let's click Ok.
Close the kicad to ngspice tool by clicking close at the top right corner of the window. |
eSim Main Window:
Click on Simulation. |
Click on simulation from the eSim toolbar to simulate the example. |
|
An Ngspice terminal and plot windows open along with a Python plot window. |
Ngspice Plot:
|
The plot waveforms show transient analysis of the RC circuit.
|
Python Plot Window:
|
Select the Python plot window by clicking on Plotting tab in the dock area.
|
Check IN and OUT nodes >> click plot
|
To plot the output:
Check the IN and OUT nodes and click on the plot button.
|
Python Plot Window:
Multimeter Feature
|
To view the rms values of node voltages, click on the multimeter button.
|
Show Slide:
Device Models and Subcircuits |
Let us see how to simulate a circuit involving semiconductor devices and subcircuits. |
Show Slide:
Download code file |
Let us simulate 7805VoltageRegulator circuit, which has diodes and a LM7805 regulator IC. |
eSim Main Window :
Click on Open Project button.
Click on 7805VoltageRegulator>> Click on Open button. |
Click on Open Project button from the left toolbar. Click on Desktop. Click on 7805VoltageRegulator. Click on the Open button at the bottom right corner. |
eSim Main Window:
Double click on 7805VoltageRegulator.
|
In the Projects window of eSim, double-click on 7805VoltageRegulator.
|
eSim Schematic Window:
Show annotated 7805VoltageRegulator schematic. |
I have annotated, performed ERC, and generated the spice netlist for this circuit. |
I will now switch back to the eSim Main Window | |
eSim Main Window:
|
Now, let us add simulation parameters to this netlist.
|
Kicad to Ngspice Converter:
Hover mouse over values entered in Analysis and Source details tab. |
I have already added the parameter values in the Analysis and source details tab. |
Kicad to Ngspice Converter:
|
Let us assign device models to the semiconductor components inside the schematic.
|
Kicad to Ngspice Converter:
Device Modelling Tab Hover cursor over Diode 1: esim_diode |
We will add a device model for Diode 1: esim_diode |
Kicad to Ngspice Converter:Device Modelling Tab
Click on Add>> Double click on Diode>> Click on D.lib>> Click on the Open button. |
Click on Add and then double-click on Diode.
|
We will perform the same steps for the remaining diodes as well. | |
Kicad to Ngspice Converter:Device Modelling Tab | Now let’s add the subcircuit file for LM_7805 subcircuit.
|
Kicad to Ngspice Converter: Subcircuits tab:
Click on Add>>Double click on lm7805 folder>> Click on the Open button |
Click on Add
|
Kicad to Ngspice Converter:
Press Convert button.
|
Press the Convert button to convert the Kicad netlist to Ngspice netlist.
|
eSim Main Window:
Click on Simulation. |
Click on simulation from the left toolbar. |
eSim Main Window:
Hover mouse over Ngspice plots and python plots.
|
An Ngspice terminal and Ngspice plot windows opens along with a Python plot window.
Click on in1, in2 and out checkboxes in the Python plot window.
|
Let us summarize. | |
Show Slide:
Summary
|
In this tutorial, we learnt how to-
|
Show Slide:
Forum |
Please post your timed queries in this forum.
|
Show Slide:
FOSSEE Forum |
Please post your general queries on eSim in this forum. |
Show Slide:
Textbook Companion |
FOSSEE team coordinates the TBC project. |
Show Slide:
Acknowledgment
|
Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.
|
Previous slide |
This is _________ from IIT Bombay, signing off.
Thank you. |