Skip to content

Commit 3815a45

Browse files
committed
convert to python 3 devsim module
1 parent b04230d commit 3815a45

24 files changed

+1607
-1610
lines changed

simdir/README

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# create the background mesh
33
# use the background mesh
44
gmsh -2 bjt.geo
5-
devsim bjt_refine.py
5+
python bjt_refine.py
66
gmsh -2 bjt.geo -bgm ./bjt_bgmesh.pos
7-
devsim bjt_refine.py
7+
python bjt_refine.py
88
gmsh -2 bjt.geo -bgm ./bjt_bgmesh.pos
9-
devsim bjt_refine.py
9+
python bjt_refine.py
1010
gmsh -2 bjt.geo -bgm ./bjt_bgmesh.pos
11-
devsim bjt_refine.py
11+
python bjt_refine.py
1212
gmsh -2 bjt.geo -bgm ./bjt_bgmesh.pos
13-
devsim bjt_refine.py
13+
python bjt_refine.py
1414

1515
#visualize
1616
visit bjt_refine.tec

simdir/bjt_bgmesh.pos

Lines changed: 1424 additions & 1424 deletions
Large diffs are not rendered by default.

simdir/bjt_circuit5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import sys
16-
from ds import *
16+
from devsim import *
1717
Vc=float(sys.argv[1])
1818
fmin=float(sys.argv[2])
1919
fmax=float(sys.argv[3])

simdir/bjt_common.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616
from physics.new_physics import *
1717
import bjt_params
1818
import netdoping
1919

2020
def make_bias(contact):
2121
def mycall():
22-
print "BIAS %s %1.15g" % (contact, get_circuit_node_value(solution="dcop", node=GetContactBiasName(contact)))
22+
print("BIAS %s %1.15g" % (contact, get_circuit_node_value(solution="dcop", node=GetContactBiasName(contact))))
2323
return mycall
2424

2525
def make_sweep(contact_names, bias_names):
@@ -30,13 +30,13 @@ def mycall():
3030
v.append("%1.15g" % get_circuit_node_value(solution="dcop", node=GetContactBiasName(c)))
3131
for b in bias_names:
3232
v.append("%1.15g" % -get_circuit_node_value(solution="dcop", node=b+".I"))
33-
print "CURVE: " + " ".join(v)
33+
print("CURVE: " + " ".join(v))
3434
h = []
3535
for c in contact_names:
3636
h.append("V(%s)" % c)
3737
for c in contact_names:
3838
h.append("I(%s)" % c)
39-
print "HEADER: " + " ".join(h)
39+
print("HEADER: " + " ".join(h))
4040
return mycall
4141

4242
def make_ac_callback(contact_names, bias_names, minf, maxf, ppd):
@@ -59,7 +59,7 @@ def make_ac_callback(contact_names, bias_names, minf, maxf, ppd):
5959
for c in contact_names:
6060
h.append("IR(%s)" % c)
6161
h.append("II(%s)" % c)
62-
print "ACHEADER: " + " ".join(h)
62+
print("ACHEADER: " + " ".join(h))
6363
def ac_callback():
6464
# solve a few extra times for better ac sensitivity
6565
solve(type="dc", absolute_error=1e10, relative_error=1e-2, maximum_iterations=40)
@@ -77,7 +77,7 @@ def ac_callback():
7777
for b in bias_names:
7878
v.append("%1.15g" % -get_circuit_node_value(solution="ssac_real", node=b+".I"))
7979
v.append("%1.15g" % -get_circuit_node_value(solution="ssac_imag", node=b+".I"))
80-
print "AC: " + " ".join(v)
80+
print("AC: " + " ".join(v))
8181
return ac_callback
8282

8383
def run():

simdir/bjt_dd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616

1717
device="bjt"
1818
region="bjt"

simdir/bjt_doping.tec

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

simdir/bjt_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616

1717
def run(device, region):
1818
pass

simdir/bjt_refine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616

1717
device="bjt"
1818
region="bjt"

simdir/bjt_refine.tec

Lines changed: 81 additions & 84 deletions
Large diffs are not rendered by default.

simdir/bjt_restart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ds import *
15+
from devsim import *
1616

1717
device="bjt"
1818
region="bjt"

0 commit comments

Comments
 (0)