SP2SPの解析

by K.I

Index


概要


[top]

解析手順

サンプルデータの作成


[top]

ネットリストへの変換


[top]

spiceシミュレーション


[top]

gwaveの起動

解析結果


[top]

プログラムの構成


[top]

データ構造

ヘッダー部分

データ部分

SpiceStream

struct _SpiceStream {
        char *filename;
        int filetype;
        int ndv;        /* number of dependent variables */
        int ncols;      /* number of columns of data readrow will fill in */
        SpiceVar *ivar; /* ptr to independent-variable info */
        SpiceVar *dvar; /* ptr to array of dependent variable info */
        SpiceVar *spar; /* ptr to array of sweep parameter info */

        SSReadRow readrow;  /* func to read one row of data points */
        SSReadSweep readsweep;  /* func to read one row of data points */
        int ntables;    /* number of data tables in the file */
        int nsweepparam; /* number of sweep parameter values at the start of each table */

        /* the following stuff is for private use of reader routines */
        FILE *fp;
        int flags;
        int lineno;
        char *linebuf;
        int line_length;
        int lbufsize;
        int expected_vals;
        int read_vals;
        int read_rows;
        int read_tables;
        int read_sweepparam;
        char *linep;
};

[top]

データの読み方


[top]

データの詳細

データ名 意味
ivar_type 1 TIME
2 FREQUENCY
3 VOLTAGE
ivar_col 0 何カラム目かを示す(最初のカラムが0)
ivar_ncols 1 ?
ncols 1 データの列数(独立変数含む)
ntables 1 データブロックの数
dvar(ndv)_type 1,2 VOLTAGE
8,15,22 CURRENT
dvar(ndv)_col 1 何カラム目かを示す(最初のカラムが0)
dvar(ndv)_ncols 1 ?
2 ivar_type=FREQでn
ivar_name 16byte 独立変数の名前
dvar(ndv)_name 1 独立変数が変化した場合のデータ名
spar(nsweepparam)_name 1 sweepパラメータの名前
expected_vals 1 データの数
read_vals 0 ?現在何個目のデータを読んでいるか
ivar 0 データを得るための変数の値
dvar 0 データの値
nsel ? ?
outfiletype cazm ascii形式でcazmヘッダをつける
ascii ascii形式でヘッダも出力(デフォルト)
nohead ascii形式でデータのみ出力
none 何も出力しない
out_indices ? 出力データを示す?
outi_size ? ?
fieldnamelist ? ?
fieldnumlist ? ?

[top] [Homeに戻る]

comments powered by Disqus