• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..08-Aug-2021-

modelcards/H08-Aug-2021-226192

README.tableH A D08-Aug-20213.1 KiB5647

bsim4n-2d-1.tableH A D08-Aug-2021410.2 KiB201200

bsim4n-2d-2.tableH A D08-Aug-2021104.2 KiB106105

bsim4n-2d-3.tableH A D08-Aug-202117.4 KiB4948

bsim4n-3d-1.tableH A D08-Aug-2021190.8 KiB454453

bsim4p-2d-2.tableH A D08-Aug-2021113.7 KiB106105

bsim4p-2d-3.tableH A D08-Aug-202119.1 KiB4948

bsim4p-3d-1.tableH A D08-Aug-2021224.1 KiB494493

clc409.subH A D08-Aug-20214.5 KiB167166

clc409mod.subH A D08-Aug-20215.2 KiB190186

combi_script.cirH A D08-Aug-20211 KiB4234

table-generator-b4-2d.spH A D08-Aug-20212.5 KiB10291

table-generator-b4-3d.spH A D08-Aug-20212.9 KiB123109

table-generator-q-2d.spH A D08-Aug-20212.6 KiB11096

table-model-bip-2d-1-oc.spH A D08-Aug-20211.5 KiB5244

table-model-bip-2d-1.spH A D08-Aug-20211.8 KiB6555

table-model-bip-2d-2.spH A D08-Aug-2021559 3422

table-model-man-2d-1.spH A D08-Aug-2021437 3228

table-model-man-3d-1.spH A D08-Aug-2021449 3429

table-model-mos-2d-2-oc.spH A D08-Aug-2021527 2622

table-model-mos-2d-2.spH A D08-Aug-2021717 3835

table-model-mos-2d-3.spH A D08-Aug-20211.5 KiB7162

table-model-mos-2d-4.spH A D08-Aug-20211.5 KiB6758

table-model-mos-3d-2.spH A D08-Aug-2021703 3835

table-model-mos-3d-3.spH A D08-Aug-20211.5 KiB6960

table-model-mos-3d-4.spH A D08-Aug-20211.4 KiB6556

table-model-mos-3d-5.spH A D08-Aug-20211.5 KiB7161

test-2d-1.tableH A D08-Aug-2021481 2019

test-2d-2.tableH A D08-Aug-2021192 1716

test-2d-3.tableH A D08-Aug-2021184 1615

test-3d-1.tableH A D08-Aug-2021186 2221

README.table

1This example/xspice/table directory offers input files, table files as
2well as table generators for the ngspice table model. This model is a XSPICE
3extension for ngspice. It enables simulation of devices that consist of in/out
4data points, i.e. devices where analytical model equations are not available.
5
6The table model reads a value val from a file. With the 2D table model val
7depends on 2 input parameters, i.e. val = f(x,y), with the 3D table on 3 input
8parameters, i.e. val = f(x,y,z). Val may be defined as a voltage or as a
9current, either single ended or differential. The inputs x, y (, z) may be
10voltage inputs (infinite input resistance, single ended or differential) or
11current sinks (zero input resistance, single ended or differential). Single
12ended denotes: one node given, the other is 0 (ground), differential: both
13nodes are to be given.
14
15For some implementation details, and the format of the 2D or 3D tables,
16please have a look at the ngspice manual, chapters 12.2.27 and 12.2.28.
17
18How to generate these tables?
19For simple functional relationships you may do this manually. For example in
20the table directory there are the files test~.table containing simple linear
21curves.
22
23You may analyse measured curves and fit their data into the table format.
24
25If you already have functional models, you may design a table generator. It
26runs the models at certain input condition, calculates the output and stores
27it with the correct format. Some examples are given here in the
28table-generator files. The bsim4 tables have been thus generated already and
29are distributed as files bsim4~.table.
30
31The example input files table-model-bip~.sp require some further user action
32because their table is not provided with the distribution due to its large
33size. So cd into the table directory and run the following command:
34ngspice table-generator-q-2d.sp
35The table will be generated, using the built in ngspice bipolar model and model
36parameters for a CLC409 bipolar npn transistor.
37
38Some considerations for using table models
39These table models are pure dc models. The input is an ideal open (for voltage)
40or short circuit (for current). If your application requires a more complex
41input behavior, it may be emulated by additional passive (or active?) devices
42added to the table model. Also, if dynamic behavior ir expected, there a no
43capacitors in the table model, so again add them externally. The example input
44files give some hints: The bipolar table transistor should show a base input
45behaviour like a common transistor, so we have added a diode with parameters
46optimized to compare well with the analytical model. The MOS transistors at
47least require some input capacitance, emulated by some extra capacitors. So
48the table models offer a lot of freedome, but require careful considerations
49of their environment to become really useful.
50
51The 2D and 3D table models use linear interpolation to obtain their output
52data. This may limit the application to not have a too steep slope. Otherwise
53convergence problems may arise. The derivatives (output vs. each input)
54required by ngspice are calculated by an approach named eno (essentially non
55oscillating) interpolation, that has proven itself to be very robust.
56