From bbc4735bafa85adc9d838fc6b8d5a06de735a13f Mon Sep 17 00:00:00 2001 From: fahim-oscad Date: Mon, 25 Apr 2016 14:18:48 +0530 Subject: Subject: Major changes for mapping the parameters of Devices Description: Now the parameters are written in Mapping.json and any new parameter and device can be eaily added and removed. --- src/ngspicetoModelica/Mapping.json | 55 ++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 5 deletions(-) (limited to 'src/ngspicetoModelica/Mapping.json') diff --git a/src/ngspicetoModelica/Mapping.json b/src/ngspicetoModelica/Mapping.json index 47743535..ce493eab 100644 --- a/src/ngspicetoModelica/Mapping.json +++ b/src/ngspicetoModelica/Mapping.json @@ -30,6 +30,53 @@ "R":"1e12" } + }, + + "m":{ + "import":"BondLib.Electrical.Analog.Spice", + "mapping":{ + "tnom":"TNOM", + "vto":"VTO", + "gamma":"GAMMA", + "phi":"PHI", + "ld":"LD", + "uo":"U0", + "lambda":"LAMBDA", + "tox":"TOX", + "pb":"PB", + "cj":"CJ", + "cjsw":"CJSW", + "mj":"MJ", + "mjsw":"MJSW", + "cgdo":"CGDO", + "js":"JS", + "cgbo":"CGB0", + "cgso":"CGS0" + + + }, + "default":{ + "TNOM":"300", + "VTO":"0", + "GAMMA":"0", + "PHI":"0", + "LD":"0", + "U0":"0", + "LAMBDA":"0", + "TOX":"3e-9", + "PB":"0.8", + "CJ":"0", + "CJSW":"1e-9", + "MJ":"0.33", + "MJSW":"0.33", + "CGDO":"0", + "JS":"0", + "CGB0":"0", + "CGS0":"0" + + + } + }, "q":{ "import":"Analog.Semiconductors", @@ -65,13 +112,11 @@ } - }, + }, "a" : "Analog.Semiconductors.Diode", "b" : "Analog.Semiconductors.Diode", - "M" :"BondLib.Electrical.Analog.Spice", - "m" : "BondLib.Electrical.Analog.Spice", - "Qs": "Analog.Semiconductors", - "qs": "Analog.Semiconductors" + "M" :"BondLib.Electrical.Analog.Spice" + }, -- cgit