Difference between revisions of "ESim/C2/Device-Model-creation-and-Simulation/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
Line 1: Line 1:
 +
 +
 +
 
 +
 
'''Device Model Creation and Simulation using eSim'''
 
'''Device Model Creation and Simulation using eSim'''
  
Line 7: Line 11:
  
  
{| style="border-spacing:0;"
 
| style="border-top:1pt solid #000001;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| <center>'''Visual cue'''</center>
 
| style="border:1pt solid #000001;padding:0.0694in;"| <center>'''Narration'''</center>
 
  
|-
+
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''
+
{| border="1"
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Visual cue'''
 +
|| '''Narration'''
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Show Slide:'''
  
 
Opening Slide
 
Opening Slide
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Welcome to the spoken tutorial on “'''Device Model Creation and Simulation using eSim'''”
+
|| Welcome to the spoken tutorial on “'''Device Model Creation and Simulation using eSim'''”  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''Show Slide:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''
+
  
 
Learning Objectives
 
Learning Objectives
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| In this tutorial, using '''eSim''' we will learn how to-
+
|| In this tutorial, using '''eSim''' we will learn how to-* <div style="margin-left:1.27cm;margin-right:0cm;">create '''device model'''</div>
 +
* <div style="margin-left:1.27cm;margin-right:0cm;">add or remove parameters of '''device model'''</div>
 +
* <div style="margin-left:1.27cm;margin-right:0cm;">save the '''device model'''</div>
 +
* <div style="margin-left:1.27cm;margin-right:0cm;">upload the '''external device model'''</div>
  
* create '''device model'''
 
* add or remove parameters of '''device model'''
 
* save the '''device model'''
 
* upload the '''external device model'''
 
  
|-
+
|- style="border:1pt solid #000000;padding:0.176cm;"
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''
+
|| '''Show Slide:'''
  
 
Systems Requirements
 
Systems Requirements
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| To record this tutorial, we will use-
+
|| To record this tutorial, we will use-* <div style="margin-left:1.27cm;margin-right:0cm;">'''Ubuntu Linux '''16.04</div>
 +
* <div style="margin-left:1.27cm;margin-right:0cm;">'''eSim '''version 1.1.2.</div>
  
* '''Ubuntu Linux '''16.04
 
* '''eSim '''version 1.1.2.
 
  
|-
+
|- style="border:1pt solid #000000;padding:0.176cm;"
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''
+
|| '''Show Slide:'''
  
 
Pre-requisites
 
Pre-requisites
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| To practice this tutorial, basic knowledge of '''analog and digital electronics''' is required.
+
|| To practice this tutorial, basic knowledge of '''analog and digital electronics''' is required.  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''System Computer:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''System Computer:'''
+
  
 
Desktop icon
 
Desktop icon
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| To launch '''eSim''', double-click on the '''eSim''' icon on your desktop.
+
|| To launch '''eSim''', double-click on the '''eSim''' icon on your desktop.  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''System Computer:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''System Computer:'''
+
  
 
eSim startup window
 
eSim startup window
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| '''The eSim '''window opens up.
+
|| The''' eSim '''window opens up.  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''eSim Main Window:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
  
 
Creating device model library
 
Creating device model library
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Now let us create a '''device model''' library for a '''Diode.'''
+
|| Now let us create a '''device model''' library for a '''Diode.'''  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''eSim Main Window:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
  
 
Click on >> '''Model Editor''' button
 
Click on >> '''Model Editor''' button
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on the '''Model Editor''' button on the left tool-bar.
+
|| Click on the '''Model Editor''' button on the left tool-bar.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Window:'''
  
|-
+
Click >> '''New''' and Enter Model Name >> '''diode_test'''>>Click on '''OK'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
|| Click on '''New''' and type the '''Model '''name as''' Diode underscore test'''.
 
+
Click >> '''New''' and Enter Model Name >> '''Diode_test'''
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on '''New''' and type the '''Model '''name as''' Diode underscore test'''.  
+
  
 
Click on '''OK'''.
 
Click on '''OK'''.
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''Model Editor Window:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
  
 
Select >> '''Diode''' category
 
Select >> '''Diode''' category
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Now select '''Diode''' category.
+
|| Now select '''Diode''' category.  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| Highlight  
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| Highlight
+
|| The basic parameters of a '''Diode''' is displayed.
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| The basic parameters of a '''Diode''' is displayed.
+
  
  
 
We will keep the same for our '''diode model''' and edit it later.
 
We will keep the same for our '''diode model''' and edit it later.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Window:'''
  
|-
+
Click >> '''Save '''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
  
Click >> '''Save '''and Close>> '''model editor window'''
+
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on the '''Save '''button at the top of the '''Model editor window.'''  
+
Close '''model editor window'''
 +
|| Click on the '''Save '''button at the top of the '''Model editor window.'''
  
  
 
Now close the '''Model editor window.'''
 
Now close the '''Model editor window.'''
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
||  
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"|  
+
|| Let us run our '''Diode model '''using an example.  
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Let us run our '''Diode model '''using an example.
+
|- style="border:1pt solid #000000;padding:0.176cm;"
 
+
|| '''eSim Main Window:'''
|-
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
  
 
Open >> '''Diode_Characteristics'''
 
Open >> '''Diode_Characteristics'''
 
+
|| Open the '''Diode_characteristic''' example from the '''Examples folder.'''
 
+
 
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Open the '''Diode_characteristic''' example from the '''Examples folder.'''
+
  
  
Line 114: Line 107:
  
 
'''Examples folder''' is located in '''eSim hyphen 1.1.2 folder''' which you have downloaded while installing.
 
'''Examples folder''' is located in '''eSim hyphen 1.1.2 folder''' which you have downloaded while installing.
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''Double Click''' >> '''Diode_characteristic''' in projects  
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Double Click''' >> '''Diode_characteristic''' in projects
+
|| From '''Projects''', double-click on the '''Diode_characteristics''' example.  
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| From '''Projects''', double-click on the '''Diode_characteristics''' example.
+
|- style="border:1pt solid #000000;padding:0.176cm;"
 
+
|| '''eSim Main Window:'''
|-
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
  
 
Click''' '''on>> '''Open Schematic'''
 
Click''' '''on>> '''Open Schematic'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Open the '''schematic''' and view the '''circuit.'''
+
|| Open the '''schematic''' and view the '''circuit.'''
  
  
 
Now minimize the '''schematic '''window.
 
Now minimize the '''schematic '''window.
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''eSim Main Window:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
  
 
Click on >> '''Convert Kicad to Ngspice'''
 
Click on >> '''Convert Kicad to Ngspice'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on''' Convert Kicad to Ngspice '''button on the left tool-bar.
+
|| Click on''' Convert Kicad to Ngspice '''button on the left tool-bar.  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| Click >>'''Analysis tab'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| Click >>'''Analysis tab'''
+
  
 
Click >> '''Source Details tab'''.
 
Click >> '''Source Details tab'''.
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Don’t change the previous values in the '''Analysis and the Source Details tab'''.
+
|| Don’t change the previous values in the '''Analysis and the Source Details tab'''.  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''Kicad to Ngspice window:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Kicad to Ngspice window:'''
+
  
 
Click''' '''>> '''Device Modeling tab''' and Click''' '''>> '''Add'''
 
Click''' '''>> '''Device Modeling tab''' and Click''' '''>> '''Add'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Next, click on '''Device Modeling tab'''.
+
|| Next, click on '''Device Modeling tab'''.
  
 
And then click on '''Add '''button at the right of the text box.
 
And then click on '''Add '''button at the right of the text box.
  
|-
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Device Modelling tab:'''
 
  
Select >> '''Diode''' folder >> '''Diode_test'''
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Select the '''Diode underscore test''' from the '''Diode folder'''.
 
  
|-
+
|- style="border:1pt solid #000000;padding:0.176cm;"
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| Click on >> '''Convert''' and click >> '''OK'''
+
|| '''Device Modelling tab:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Now click on '''Convert '''button at the bottom of the window.
+
 
 +
Select''' >> Diode folder >> diode_test'''
 +
|| Select the '''diode underscore test''' from the '''Diode folder'''.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| Click on '''>> Convert''' and click '''>> OK '''
 +
|| Now click on '''Convert '''button at the bottom of the window.
  
  
 
Click on''' OK '''in the confirmation dialog box.
 
Click on''' OK '''in the confirmation dialog box.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Kicad to Ngspice window:'''
  
|-
+
'''Close >> Kicad to Ngspice window'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Kicad to Ngspice window:'''
+
|| After this, close the '''Kicad to Ngspice '''window.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''eSim Main Window:'''
  
Close >> '''Kicad to Ngspice window'''
+
Click on >> '''Simulation Button'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| After this, close the '''Kicad to Ngspice '''window.
+
|| Click on the '''Simulation''' button on the left tool-bar and check the output.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Python Plotting Window: '''
  
|-
+
Check '''OUT '''nodes >>
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
  
Click on >> '''Simulation''' Button
+
click '''plot'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on the '''Simulation''' button on the left tool-bar and check the output.
+
|| <span style="color:#000000;">Narration to be inserted at time 3:13 till 3:18 from Schematic creation tutorial</span>
  
|-
+
<span style="color:#000000;">Time : 12:16 to 12:24</span><span style="background-color:#00ff00;">Check the </span><span style="background-color:#00ff00;">'''OUT'''</span><span style="background-color:#00ff00;"> node and click on the </span><span style="background-color:#00ff00;">'''plot'''</span><span style="background-color:#00ff00;"> </span><span style="background-color:#00ff00;">button.</span>
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"|
+
|- style="border:1pt solid #000000;padding:0.176cm;"
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Let us now edit our '''Device model''' to re-check the output.
+
||
 +
|| Let us now edit our '''Device model''' to re-check the output.  
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''eSim Main Window:'''
  
|-
+
Click on >>''' Model Editor button'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
|| Click''' Model Editor''' button on the left tool-bar.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Window:'''
  
Click on >> '''Model Editor''' button
+
Click''' Edit >> Diode '''folder''' >> diode_test'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click''' Model Editor''' button on the left tool-bar.
+
|| Click on '''Edit''' button at the top of the '''Model editor window.'''
  
|-
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
 
  
Click '''Edit '''>> '''Diode''' >> '''Diode_test'''
+
Then select '''diode underscore test''' from the '''Diode folder.'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on '''Edit''' button at the top of the '''Model editor window.'''  
+
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Window:'''
  
 
+
point to >>''' Add/Remove button'''
Then select '''Diode underscore test''' from the '''Diode folder.'''
+
|| We can add and remove parameters in the '''model.'''
 
+
|-
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
 
+
point to >> '''Add/Remove button'''
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| We can add and remove parameters in the '''model.'''
+
  
  
 
To do so, click on '''ADD '''to add a parameter and '''REMOVE''' to remove a parameter.
 
To do so, click on '''ADD '''to add a parameter and '''REMOVE''' to remove a parameter.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
||
 +
|| Now we will '''modify''' the '''parameters''' values, to check the effect on the '''model.'''
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Window:'''
  
|-
+
Double click >> value of '''“N” '''parameter
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
|| Double-click on the value of '''“N” '''and change the value from 1 point 6 7 9 to 4 point 6 7 9.
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Now we will '''modify''' the '''parameters''' values, to check the effect on the '''model.'''
+
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Window:'''
  
|-
+
Click''' >>Save '''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
  
Double click >> value of '''“N”''' parameter
+
Close'''>> model editor window'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Double-click on the value of '''“N” '''and change the value from 1 point 6 7 9 to 4 point 6 7 9.
+
|| Click on '''Save''' button at the top of the''' Model editor window.'''
 
+
|-
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
 
+
Click >>'''Save '''and Close>> '''model editor window'''
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on '''Save''' button at the top of the''' Model editor window. '''
+
  
  
 
Now close the '''model editor '''window.
 
Now close the '''model editor '''window.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''eSim Main Window:'''
  
|-
+
Click on >>''' Convert Kicad to Ngspice '''button''' '''>>
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
  
Click on >> '''Convert Kicad to Ngspice''' button >> '''click Device Modelling tab'''
+
click''' Device Modelling '''tab
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Now click on '''Convert Kicad to Ngspice''' button on the left tool-bar.
+
|| Now click on '''Convert Kicad to Ngspice''' button on the left tool-bar.
  
  
 
And click on the '''Device Modelling tab.'''
 
And click on the '''Device Modelling tab.'''
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Device Modelling tab:'''
  
|-
+
Add >> '''Diode>> diode_test'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Device Modelling tab:'''
+
|| Add our modified '''Diode underscore test '''from '''Diode folder '''in the '''Device Modeling tab.'''
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Kicad to Ngspice window:'''
  
Add >> Diode>> '''Diode_test'''
+
Click on >>''' Convert '''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Add our modified '''Diode underscore test '''from '''Diode folder '''in the '''Device Modeling tab.'''
+
  
|-
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Kicad to Ngspice window:'''
 
  
Click on >> '''Convert''' and click >>''' OK'''
+
click >>''' OK'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on '''Convert''' button at the bottom of the window.  
+
|| Click on '''Convert''' button at the bottom of the window.
  
  
 
click on''' OK '''in the confirmation dialog box.
 
click on''' OK '''in the confirmation dialog box.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''eSim Main Window:'''
  
|-
+
Click on >>''' Simulation '''Button
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
|| Now, click on '''Simulation''' button from the left tool-bar and check the modified output.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Ngspice Plot Windows: '''
  
Click on >> '''Simulation''' Button
+
Hover cursor over the '''ngspice''' plot
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Now, click on '''Simulation''' button from the left tool-bar and check the modified output.
+
|| Notice the change in the '''output plot.'''
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
||
 +
|| Let us now upload an '''external model''' file in '''eSim.'''
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''eSim Main Window:'''
  
|-
+
Click on >>''' Model Editor '''button
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Ngspice Plot Windows:'''
+
|| Click''' on Model Editor''' button on the left tool-bar.
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Notice the change in the '''output plot.'''
+
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Window:'''
  
 +
Click on >>''' Upload'''
 +
|| Click on '''Upload '''button at the top of the''' Model editor window.'''
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Window: '''
  
<<PAUSE>>
+
'''Diode '''folder >> '''D.lib'''
  
|-
+
'''Note: We are uploading D.lib from Diode folder for demonstration, user can upload any .lib file from his system.'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"|
+
|| Go to '''Diode folder '''and select '''D dot lib.'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Let us now upload an '''external model''' file in '''eSim.'''
+
 
+
|-
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
 
+
Click on >> Model Editor button
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click''' on Model Editor''' button on the left tool-bar.
+
 
+
|-
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
 
+
Click on >> '''Upload'''
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on '''Upload '''button at the top of the''' Model editor window.'''
+
 
+
|-
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| Diode >> '''D.lib'''
+
 
+
'''Note: We are uploading D.lib from Diode folder for demonstration, user can upload any .lib file from his system. '''
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Go to '''Diode folder '''and select '''D dot lib.'''
+
  
 
Note: We are uploading '''D dot l i b''' from '''Diode '''folder for demonstration.
 
Note: We are uploading '''D dot l i b''' from '''Diode '''folder for demonstration.
  
  
User can upload any''' dot l i b '''file from his system.  
+
User can upload any''' dot l i b '''file from his system.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Model Editor Dialog box:'''
  
|-
+
Type''' D1 '''>> click''' OK '''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| Type '''D1''' >> click '''OK'''
+
|| A dialog box opens where we will enter the '''Model''' name as '''D1.'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| A dialog box opens where we will enter the '''Model''' name as '''D1.'''  
+
  
  
 
Now click on the '''OK '''button in the dialog box.
 
Now click on the '''OK '''button in the dialog box.
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''Model Editor Window:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Model Editor Window:'''
+
  
 
Close >> '''model editor'''
 
Close >> '''model editor'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Now close the '''model editor '''window.
+
|| Now close the '''model editor '''window.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''eSim Main Window:'''
  
|-
+
Click on >>''' Convert Kicad to Ngspice '''button >> click''' Device Modelling tab'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
|| Click on '''Convert Kicad to Ngspice''' button on the left tool-bar.
 
+
Click on >> '''Convert Kicad to Ngspice''' button >> click '''Device Modelling tab'''
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on '''Convert Kicad to Ngspice''' button on the left tool-bar.  
+
  
  
 
Now click on the '''Device Modelling tab.'''
 
Now click on the '''Device Modelling tab.'''
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Device Modelling tab:'''
  
|-
+
Click on the '''Add '''button
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Device Modelling tab:'''
+
  
Add >> '''User Libraries''' >> '''D1'''
+
'''>> User Libraries '''folder''' >> D1 '''folder
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Add our modified '''D1''' from '''User Libraries folder.'''  
+
|| Add our modified '''D1''' from '''User Libraries folder.'''  
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Kicad to Ngspice window:'''
  
|-
+
Click on >>''' Convert '''and
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Kicad to Ngspice window:'''
+
  
Click on >> '''Convert''' and click >> '''OK'''
+
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Click on the '''Convert button''' at the bottom of the window.
+
Click >>''' OK'''
 +
|| Click on the '''Convert button''' at the bottom of the window.
  
  
 
Now click on '''OK '''in the confirmation dialog box.
 
Now click on '''OK '''in the confirmation dialog box.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''eSim Main Window:'''
  
|-
+
Click on >>''' Simulation '''Button
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''eSim Main Window:'''
+
|| Lastly, click on the '''Simulation''' button from the left tool-bar and check the modified output.  
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
Click on >> '''Simulation''' Button
+
||  
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Lastly, click on the '''Simulation''' button from the left tool-bar and check the modified output.
+
|| <<PAUSE>>
 
+
|-
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"|  
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| <<PAUSE>>
+
  
 
Now let us summarize.
 
Now let us summarize.
 
+
|- style="border:1pt solid #000000;padding:0.176cm;"
|-
+
|| '''Show Slide:'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide: '''
+
  
 
Summary
 
Summary
 +
|| In this tutorial, we learnt how to,* <div style="margin-left:1.27cm;margin-right:0cm;">create '''device model'''</div>
 +
* <div style="margin-left:1.27cm;margin-right:0cm;">add or remove parameters of '''device model'''</div>
 +
* <div style="margin-left:1.27cm;margin-right:0cm;">save the '''device model'''</div>
 +
* <div style="margin-left:1.27cm;margin-right:0cm;">upload the '''external device model'''</div>
  
  
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Show Slide:'''
  
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| In this tutorial, we learnt how to,
+
Assignment
 +
|| Here is the assignment for you to solve.
  
* create '''device model'''
 
* add or remove parameters of '''device model'''
 
* save the '''device model'''
 
* upload the '''external device model'''
 
  
|-
+
Create the '''Full wave Bridge Rectifier circuit''' using the '''D dot l i b model '''file in '''eSim''' and simulate it.
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''  
+
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Show Slide:'''
  
Assignment
+
Forum
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Here is the assignment for you to solve.
+
|| Please post your timed queries in this forum.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Show Slide:'''
  
 +
FOSSEE Forum
 +
|| Please post your general queries on '''eSim''' in this forum.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Show Slide:'''
  
Create the '''Full wave Bridge Rectifier circuit''' using the '''D dot l i b model '''file in '''eSim''' and simulate it.
+
Textbook Companion
 +
|| The FOSSEE team coordinates the TBC project.
 +
|- style="border:1pt solid #000000;padding:0.176cm;"
 +
|| '''Show Slide:'''
  
|-
+
'''Acknowledgment'''
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''
+
  
Forum
+
[http://spoken-tutorial.org/ https://spoken-tutorial.org]
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Please post your timed queries in this forum.
+
  
|-
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''
 
  
FOSSEE Forum
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| Please post your general queries on '''eSim''' in this forum.
 
  
|-
+
|| * <div style="margin-left:1.27cm;margin-right:0cm;">Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.</div>
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''
+
* <div style="margin-left:1.27cm;margin-right:0cm;">For more details, visit this website.</div>
  
Textbook Companion
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| The FOSSEE team coordinates the TBC project.
 
  
|-
 
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| '''Show Slide:'''
 
  
Acknowledgment
 
  
http://spoken-tutorial.org
+
|- style="border:1pt solid #000000;padding:0.176cm;"
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"|  
+
|| '''Show Slide:'''
* Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.
+
* For more details, visit this website.
+
  
|-
+
Thank you slide  
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:none;padding:0.0694in;"| Thank you slide
+
|| This is Usha from IIT Bombay signing off.
 
+
| style="border-top:none;border-bottom:1pt solid #000001;border-left:1pt solid #000001;border-right:1pt solid #000001;padding:0.0694in;"| This is Usha from IIT Bombay signing off.
+
  
 
Thank you.
 
Thank you.
 
+
|-
 
|}
 
|}

Revision as of 18:20, 23 July 2019



Device Model Creation and Simulation using eSim

Author: Gaurav Supal

Keywords: video tutorial, eSim, Device Model, Parameters, EDA, Simulation, analysis, uploading model



Visual cue Narration
Show Slide:

Opening Slide

Welcome to the spoken tutorial on “Device Model Creation and Simulation using eSim
Show Slide:

Learning Objectives

In this tutorial, using eSim we will learn how to-*
create device model
  • add or remove parameters of device model
  • save the device model
  • upload the external device model


Show Slide:

Systems Requirements

To record this tutorial, we will use-*
Ubuntu Linux 16.04
  • eSim version 1.1.2.


Show Slide:

Pre-requisites

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.
System Computer:

eSim startup window

The eSim window opens up.
eSim Main Window:

Creating device model library

Now let us create a device model library for a Diode.
eSim Main Window:

Click on >> Model Editor button

Click on the Model Editor button on the left tool-bar.
Model Editor Window:

Click >> New and Enter Model Name >> diode_test>>Click on OK

Click on New and type the Model name as Diode underscore test.

Click on OK.

Model Editor Window:

Select >> Diode category

Now select Diode category.
Highlight The basic parameters of a Diode is displayed.


We will keep the same for our diode model and edit it later.

Model Editor Window:

Click >> Save


Close model editor window

Click on the Save button at the top of the Model editor window.


Now close the Model editor window.

Let us run our Diode model using an example.
eSim Main Window:

Open >> Diode_Characteristics

Open the Diode_characteristic example from the Examples folder.


Please note:

Examples folder is located in eSim hyphen 1.1.2 folder which you have downloaded while installing.

Double Click >> Diode_characteristic in projects From Projects, double-click on the Diode_characteristics example.
eSim Main Window:

Click on>> Open Schematic

Open the schematic and view the circuit.


Now minimize the schematic window.

eSim Main Window:

Click on >> Convert Kicad to Ngspice

Click on Convert Kicad to Ngspice button on the left tool-bar.
Click >>Analysis tab

Click >> Source Details tab.

Don’t change the previous values in the Analysis and the Source Details tab.
Kicad to Ngspice window:

Click >> Device Modeling tab and Click >> Add

Next, click on Device Modeling tab.

And then click on Add button at the right of the text box.


Device Modelling tab:

Select >> Diode folder >> diode_test

Select the diode underscore test from the Diode folder.
Click on >> Convert and click >> OK Now click on Convert button at the bottom of the window.


Click on OK in the confirmation dialog box.

Kicad to Ngspice window:

Close >> Kicad to Ngspice window

After this, close the Kicad to Ngspice window.
eSim Main Window:

Click on >> Simulation Button

Click on the Simulation button on the left tool-bar and check the output.
Python Plotting Window:

Check OUT nodes >>

click plot

Narration to be inserted at time 3:13 till 3:18 from Schematic creation tutorial

Time : 12:16 to 12:24Check the OUT node and click on the plot button.

Let us now edit our Device model to re-check the output.
eSim Main Window:

Click on >> Model Editor button

Click Model Editor button on the left tool-bar.
Model Editor Window:

Click Edit >> Diode folder >> diode_test

Click on Edit button at the top of the Model editor window.


Then select diode underscore test from the Diode folder.

Model Editor Window:

point to >> Add/Remove button

We can add and remove parameters in the model.


To do so, click on ADD to add a parameter and REMOVE to remove a parameter.

Now we will modify the parameters values, to check the effect on the model.
Model Editor Window:

Double click >> value of “N” parameter

Double-click on the value of “N” and change the value from 1 point 6 7 9 to 4 point 6 7 9.
Model Editor Window:

Click >>Save

Close>> model editor window

Click on Save button at the top of the Model editor window.


Now close the model editor window.

eSim Main Window:

Click on >> Convert Kicad to Ngspice button >>

click Device Modelling tab

Now click on Convert Kicad to Ngspice button on the left tool-bar.


And click on the Device Modelling tab.

Device Modelling tab:

Add >> Diode>> diode_test

Add our modified Diode underscore test from Diode folder in the Device Modeling tab.
Kicad to Ngspice window:

Click on >> Convert


click >> OK

Click on Convert button at the bottom of the window.


click on OK in the confirmation dialog box.

eSim Main Window:

Click on >> Simulation Button

Now, click on Simulation button from the left tool-bar and check the modified output.
Ngspice Plot Windows:

Hover cursor over the ngspice plot

Notice the change in the output plot.
Let us now upload an external model file in eSim.
eSim Main Window:

Click on >> Model Editor button

Click on Model Editor button on the left tool-bar.
Model Editor Window:

Click on >> Upload

Click on Upload button at the top of the Model editor window.
Model Editor Window:

Diode folder >> D.lib

Note: We are uploading D.lib from Diode folder for demonstration, user can upload any .lib file from his system.

Go to Diode folder and select D dot lib.

Note: We are uploading D dot l i b from Diode folder for demonstration.


User can upload any dot l i b file from his system.

Model Editor Dialog box:

Type D1 >> click OK

A dialog box opens where we will enter the Model name as D1.


Now click on the OK button in the dialog box.

Model Editor Window:

Close >> model editor

Now close the model editor window.
eSim Main Window:

Click on >> Convert Kicad to Ngspice button >> click Device Modelling tab

Click on Convert Kicad to Ngspice button on the left tool-bar.


Now click on the Device Modelling tab.

Device Modelling tab:

Click on the Add button

>> User Libraries folder >> D1 folder

Add our modified D1 from User Libraries folder.
Kicad to Ngspice window:

Click on >> Convert and


Click >> OK

Click on the Convert button at the bottom of the window.


Now click on OK in the confirmation dialog box.

eSim Main Window:

Click on >> Simulation Button

Lastly, click on the Simulation button from the left tool-bar and check the modified output.
<<PAUSE>>

Now let us summarize.

Show Slide:

Summary

In this tutorial, we learnt how to,*
create device model
  • add or remove parameters of device model
  • save the device model
  • upload the external device model


Show Slide:

Assignment

Here is the assignment for you to solve.


Create the Full wave Bridge Rectifier circuit using the D dot l i b model file in eSim and simulate it.

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

The FOSSEE team coordinates the TBC project.
Show Slide:

Acknowledgment

https://spoken-tutorial.org


*
Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.
  • For more details, visit this website.



Show Slide:

Thank you slide

This is Usha from IIT Bombay signing off.

Thank you.

Contributors and Content Editors

Nancyvarkey, PoojaMoolya, Saurabhbansode, Vineeta