ESim/C3/Uploading-a-Spice-Device-Model/English-timed

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Welcome to the spoken tutorial on Uploading a Spice Device Model in eSim.
00:08 In this tutorial, using eSim we will learn -

To create a Schottky Diode using the Upload option.

00:17 To record this tutorial, we will use-

Ubuntu Linux OS version 16.04

eSim version 2.0

00:28 To practice this tutorial, you should know to

create a circuit schematic and

simulate the netlist file in eSim.

00:39 If not, watch the prerequisite eSim tutorials on this website.
00:45 The device model file begins with a dot model statement.
00:50 mname indicates the model name like diode model 1N4007, 1N534A.

Component type indicates the type of model used.

01:05 Example: D is used for Diode,M for MOSFET,and

NPN or PNP for BJT.

01:15 pname is the parameter name and pval is the parameter value.
01:22 The model library files added using the Upload option will be saved in the User Libraries folder under device Model Library directory.
01:35 The model library files are used with the components present in eSim underscore Devices.
01:44 You can also refer to the spice models available in the Ngspice manual.
01:51 To launch eSim, you need to double-click on the eSim icon on your Desktop.
01:58 I have already opened eSim. Pause the video here.
02:02 Download the Schottky diode 1N5711 library file from the Code file section available on this page.
02:13 Save it on your Desktop with dot lib extension.
02:19 On the eSim window, click on the Model Editor button from the left toolbar.
02:26 In the previous tutorial, we have seen how to add a Device model using the New option.
02:35 Now, we will add a Device model library using the Upload option.
02:42 On the Model Editor tab, click on the Upload button.
02:47 I have already downloaded the Schottky diode IN5711 model and saved it on my Desktop.
02:57 Click on the Desktop. Click on the Schottky dot lib file.
03:04 Click on the Open button.
03:07 A pop-up window Model Name will appear.
03:11 In the Enter Model Library Name, type new model name as Schottky. Click on the OK button.
03:21 The device model Schottky and its xml file will be saved under the User libraries folder.
03:30 Let us simulate the characteristics of Schottky diode.
03:35 We will open the example Diode Characteristics from the eSim Examples folder.
03:43 On the eSim window, click on the Open Project option from the top menu.
03:50 Locate the directory where the eSim is installed.
03:55 Click on the Examples folder.
03:59 Scroll down and select the Diode underscore characteristics.
04:04 Click on the Open button. The Diode characteristics example is added to the eSim window under Projects.
04:14 To see the schematic, select Diode characteristics.
04:19 Click on the Open Schematic button from the left toolbar. It directs us to the schematic editor.
04:28 Press F1 key to zoom in the schematic.
04:33 Let us go back to the eSim window.
04:37 On the eSim window,select the Diode underscore characteristics.
04:43 Click on the Convert Kicad to Ngspice button from the left toolbar.
04:49 In the Analysis tab, select DC.
04:53 Scroll down to enter values.

Enter Source 1 as V1.

05:01 Enter Start as 0.

Enter Increment as 0.1.

Enter Stop as 0.4.

05:12 In the Source Details tab, enter the value as 1.
05:17 Skip the Ngspice Model tab.
05:20 Click on the Device Modeling tab.
05:24 Click on the ADD button. Double-click on the User Libraries folder.
05:31 Click on Schottky dot lib file and click on the Open button.
05:37 On the Kicad to Ngspice tab, click on the Convert button.
05:43 Click on the OK button in the Information dialog box.
05:48 Now, let us generate the plots.
05:51 On the eSim window, click on the Simulation button from the left toolbar.
05:58 The diode has a knee voltage or turn-on voltage of around 0.2.
06:05 The forward current is 95 microampere.
06:10 These diodes are used in power rectification applications. Close the Ngspice terminals and plots.
06:20 In the Python plot window, check the In and Out nodes.
06:25 Then click on the Plot button.
06:29 You can see the input and output plot. Close the Python plot.
06:36 Let us now summarise.
06:39 In this tutorial, we learnt to create

Schottky Diode using Upload option.

06:47 Do you have questions in this Spoken Tutorial?
06:51 Choose the minute and second where you have the question.
06:55 Explain your question briefly.
06:59 Someone from the FOSSEE team will answer them. Please visit this site.
07:07 For any general or technical questions on eSim, visit the FOSSEE forum and post your question.
07:15 The FOSSEE team coordinates the Circuit Simulation project.
07:20 We give Certificates and Honorarium to the contributors. For more details, please visit this site.
07:29 The FOSSEE team coordinates the Lab Migration project. For more details, please visit this site.
07:38 Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India. For more details, visit this site.
07:50 This is Gloria N from IIT Bombay signing off. Thank you

Contributors and Content Editors

Pratik kamble