Output Data Formats
The example in the following figure shows the output data format of the spice2 template simulator supported in IC-CAP.
Record 1: Title card (80 bytes), date (8 bytes), time (8 bytes) TOTAL-96 BYTES
Record 2: Number of output variables (including "sweep" variable) (2 bytes)
Record 3: Integer '4' (2 bytes)
Record 4: Names of each output variable (8 bytes each)
Record 5: Type of each output (2 bytes each)
0 = no type
1 = time
2 = frequency
3 = voltage
4 = current
5 = output noise
6 = input noise
7 = HD2
8 = HD3
9 = DIM2
10 = SIM2
11 = DIM3
Outputs 7 through 11 are distortion outputs.
Record 6: The location of each variable within each sweep point. (2-bytes each)
(Normally just 1,2,3,4,...but needed if outputs are mixed up)
Record 6a: 24 characters that are the plot sub-title if Record 3 is a '4'.
Record 7: Outputs at first sweep point
Record 8: Outputs at second sweep point
Record 9:
.
.
.
last record
All real data are 8-byte quantities.
All complex data are single precision reals, that is 4-byte quantities.
(4-byte quantity for the real part,
4-byte quantity for the imaginary part)
EOF A special "end-of-file" indicator: 9.87654321D+27 for real data
(9.876E+0,5.432E+0) for complex data
EOI A 4 byte integer zero indicates the end of all raw data
|
Figure 8 Output File Format Used For spice2
The binary format output by the spice3 template simulator is shown in the following figure.
Title Card (Newline (\n) terminated string)
Date and Time (Newline (\n) terminated string)
Plot Title (Newline (\n) terminated string)
Flags (Newline (\n) terminated string)
Number of Variables (No. Variables: [an integer])
Number of Points (No. Points: [an integer])
Version (Newline (\n) terminated string)
Variables List
(Variables:
[tab] (index) [tab] (name) [tab] (type)
.
.
.
{ repeated num_var times }
where: index = variable index [integer]
name = variable name [string]
type = variable type [string (that is, "current" or "voltage")]
num_var = number of variables
Binary: ( Newline (\n) terminated string indicating the
start of the binary data )
Each data point is listed in the order listed in the variables list.
Each real data point is represented by 8 bytes.
Each complex data point consists of the real part and the imaginary
part of 8 bytes each.
There are no separators between data points.
|
Figure 9 Output File Format Used For spice3
|