1 /**********
2 Copyright 1990 Regents of the University of California.  All rights reserved.
3 Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
4 **********/
5 
6 /* Vector types. */
7 
8 #ifndef _CONSTANTS_
9 #define _CONSTANTS_
10 
11 #define SV_NOTYPE        0
12 #define SV_TIME          1
13 #define SV_FREQUENCY     2
14 #define SV_VOLTAGE       3
15 #define SV_CURRENT       4
16 #define SV_OUTPUT_N_DENS 5
17 #define SV_OUTPUT_NOISE  6
18 #define SV_INPUT_N_DENS  7
19 #define SV_INPUT_NOISE   8
20 #define SV_POLE          9
21 #define SV_ZERO          10
22 #define SV_SPARAM        11
23 
24 #ifdef notdef
25 #define SV_OUTPUT_NOISE  5
26 #define SV_INPUT_NOISE   6
27 #define SV_HD2           7
28 #define SV_HD3           8
29 #define SV_DIM2          9
30 #define SV_SIM2          10
31 #define SV_DIM3          11
32 #define SV_POLE          12
33 #define SV_ZERO          13
34 #define SV_SPARAM        14
35 #endif
36 
37 /* Dvec flags. */
38 
39 #define VF_REAL      (1 << 0) /* The data is real. */
40 #define VF_COMPLEX   (1 << 1) /* The data is complex. */
41 #define VF_ACCUM     (1 << 2) /* writedata should save this vector. */
42 #define VF_PLOT      (1 << 3) /* writedata should incrementally plot it. */
43 #define VF_PRINT     (1 << 4) /* writedata should print this vector. */
44 #define VF_MINGIVEN  (1 << 5) /* The v_minsignal value is valid. */
45 #define VF_MAXGIVEN  (1 << 6) /* The v_maxsignal value is valid. */
46 #define VF_PERMANENT (1 << 7) /* Don't garbage collect this vector. */
47 
48 /* Grid types. */
49 
50 /*
51 #define GRID_NONE   0
52 #define GRID_LIN    1
53 #define GRID_LOGLOG 2
54 #define GRID_XLOG   3
55 #define GRID_YLOG   4
56 #define GRID_POLAR  5
57 #define GRID_SMITH  6
58 */
59 
60 typedef enum {
61     GRID_NONE = 0, GRID_LIN = 1, GRID_LOGLOG = 2, GRID_XLOG = 3,
62     GRID_YLOG = 4, GRID_POLAR = 5, GRID_SMITH = 6
63 } GRIDTYPE;
64 
65 /* Plot types. */
66 
67 /*
68 #define PLOT_LIN    0
69 #define PLOT_COMB   1
70 #define PLOT_POINT  2
71 */
72 
73 typedef enum {
74     PLOT_LIN = 0, PLOT_COMB = 1, PLOT_POINT = 2
75 } PLOTTYPE;
76 
77 /* The types for command completion keywords. Note that these constants
78  * are built into cmdtab.c, so DON'T change them unless you want to
79  * change all of the bitmasks in cp_coms.
80  * Note that this is spice- and nutmeg- dependent.
81  */
82 
83 #define CT_FILENAME     0
84 #define CT_CKTNAMES     2
85 #define CT_COMMANDS     3
86 #define CT_DBNUMS       4
87 #define CT_DEVNAMES     5
88 #define CT_LISTINGARGS  6
89 #define CT_NODENAMES    7
90 #define CT_PLOT         8
91 #define CT_PLOTKEYWORDS 9
92 #define CT_RUSEARGS     10
93 #define CT_STOPARGS     11
94 #define CT_UDFUNCS      12
95 #define CT_VARIABLES    13
96 #define CT_VECTOR       14
97 #define CT_TYPENAMES    16
98 
99 #endif
100 
101