Difference between revisions of "ESim/C2/Device-Model-creation-and-Simulation/English"
PoojaMoolya (Talk | contribs) |
PoojaMoolya (Talk | contribs) |
||
Line 167: | Line 167: | ||
click '''plot''' | click '''plot''' | ||
− | || | + | || |
− | + | <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:1pt solid #000000;padding:0.176cm;" | |- style="border:1pt solid #000000;padding:0.176cm;" | ||
|| | || | ||
Line 326: | Line 325: | ||
Summary | Summary | ||
− | || In this tutorial, we learnt how to,* <div style="margin-left:1.27cm;margin-right:0cm;">create '''device model'''</div> | + | || 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;">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;">save the '''device model'''</div> | ||
Line 363: | Line 363: | ||
− | + | || | |
− | || * <div style="margin-left:1.27cm;margin-right:0cm;">Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.</div> | + | * <div style="margin-left:1.27cm;margin-right:0cm;">Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India.</div> |
* <div style="margin-left:1.27cm;margin-right:0cm;">For more details, visit this website.</div> | * <div style="margin-left:1.27cm;margin-right:0cm;">For more details, visit this website.</div> | ||
− | |||
Latest revision as of 14:24, 25 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-
|
Show Slide:
Systems Requirements |
To record this tutorial, we will use-
|
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.
|
Model Editor Window:
Click >> Save
|
Click on the Save button at the top of 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.
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.
|
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 | Click on Convert button at the bottom of the window.
|
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 |
Check 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.
|
Model Editor Window:
point to >> Add/Remove button |
We can add and remove parameters in the model.
|
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 the Save button at the top of 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.
|
Device Modelling tab:
Add >> Diode>> diode_test |
Add our modified Diode underscore test from Diode folder |
Kicad to Ngspice window:
Click on >> Convert
|
Click on Convert button at the bottom of the window.
|
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 from it
Note: We are uploading D dot l i b from Diode folder for demonstration.
|
Model Editor Dialog box:
Type D1 >> click OK |
A dialog box opens where we will enter the Model name as D1.
|
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.
|
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 on the Convert button at the bottom of the window.
|
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,
|
Show Slide:
Assignment |
Here is the assignment for you to solve.
|
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
|
|
Show Slide:
Thank you slide |
This is Usha from IIT Bombay signing off.
Thank you. |