diff options
author | fahim-oscad | 2016-04-25 14:18:48 +0530 |
---|---|---|
committer | fahim-oscad | 2016-04-25 14:18:48 +0530 |
commit | bbc4735bafa85adc9d838fc6b8d5a06de735a13f (patch) | |
tree | 153e6613a68925943f2fea4e50419b9df1dcf014 /src/ngspicetoModelica/Mapping.json | |
parent | a815ce722770e1e8271f5a5987b3d1ad88ff61e0 (diff) | |
download | eSim-bbc4735bafa85adc9d838fc6b8d5a06de735a13f.tar.gz eSim-bbc4735bafa85adc9d838fc6b8d5a06de735a13f.tar.bz2 eSim-bbc4735bafa85adc9d838fc6b8d5a06de735a13f.zip |
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.
Diffstat (limited to 'src/ngspicetoModelica/Mapping.json')
-rw-r--r-- | src/ngspicetoModelica/Mapping.json | 55 |
1 files changed, 50 insertions, 5 deletions
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" + }, |