⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spcmdtab.c

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 C
📖 第 1 页 / 共 2 页
字号:
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group**********//* * Table of available commands.  Note that they're sorted so that the commands * that appear in the spiceinit file are at the top. */#include "spice.h"#include "cpdefs.h"#include "ftedefs.h"#include "ftehelp.h"#include "suffix.h"/* Bool fields:     stringargs, spiceonly, major */struct comm spcp_coms[] = {    { "let", com_let, false, false, true,      { 040000, 040000, 040000, 040000 }, E_DEFHMASK, 0, LOTS,      arg_let,      "varname = expr : Assign vector variables." } ,    { "reshape", com_reshape, false, false, true,      { 040000, 040000, 040000, 040000 }, E_DEFHMASK, 1, LOTS,      arg_let,      "vector ... [ shape ] : change the dimensions of a vector." } ,    { "define", com_define, false, false, true,      { 010000, 040000, 040000, 040000 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[[func (args)] stuff] : Define a user-definable function." } ,    { "set", com_set, false, false, true,      { 020000, 020000, 020000, 020000 }, E_DEFHMASK, 0, LOTS,      arg_set,      "[option] [option = value] ... : Set a variable." } ,    { "alias", com_alias, false, false, false,      { 02, 04, 04, 04 }, E_ADVANCED, 0, LOTS,      (int (*)()) NULL,      "[[word] alias] : Define an alias." } ,    { "deftype", com_dftype, false, false, false,      { 0, 0, 0, 0 }, E_DEFHMASK, 3, LOTS,      (int (*)()) NULL,      "spec name pat ... : Redefine vector and plot types.\n" } ,    { "plot", com_plot, false, false, true,      { 041000, 041000, 041000, 041000 }, E_BEGINNING | E_HASPLOTS, 1, LOTS,      arg_plot,      "expr ... [vs expr] [xl xlo xhi] [yl ylo yhi] : Plot things." },    { "display", com_display, false, false, true,      { 040000, 040000, 040000, 040000 }, E_BEGINNING, 0, LOTS,      arg_display,      ": Display vector status." } ,    { "destroy", com_destroy, false, false, false,      { 0400, 0400, 0400, 0400 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[plotname] ... : Throw away all the data in the plot." } ,    { "setplot", com_splot, false, false, true,      { 0400, 0, 0, 0 }, E_DEFHMASK, 0, 1,      (int (*)()) NULL,      "[plotname] : Change the current working plot." } ,    { "setcirc", com_scirc, false, true, false,      { 04, 0, 0, 0 }, E_DEFHMASK, 0, 1,      (int (*)()) NULL,      "[circuit name] : Change the current circuit." } ,    { "setscale", com_setscale, false, false, false,      { 040000, 0, 0, 0 }, E_DEFHMASK, 0, 1,      (int (*)()) NULL,      "[vecname] : Change default scale of current working plot." } ,    { "transpose", com_transpose, false, false, false,      { 040000, 040000, 040000, 040000 }, E_DEFHMASK, 1, LOTS,      (int (*)()) NULL,      "varname ... : Perform matrix transposition on multi-D vectors." } ,    { "xgraph", com_xgraph, false, false, true,      { 1, 041000, 041000, 041000 }, E_DEFHMASK, 1, LOTS,      (int (*)()) NULL,      "file plotargs : Send plot to Xgraph-11." } ,    { "hardcopy", com_hardcopy, false, false, true,      { 1, 041000, 041000, 041000 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "file plotargs : Produce hardcopy plots." } ,    { "asciiplot", com_asciiplot, false, false, true,      { 041000, 041000, 041000, 041000 }, E_DEFHMASK, 1, LOTS,      (int (*)()) NULL,      "plotargs : Produce ascii plots." } ,    { "write", com_write, false, false, true,      { 1, 040000, 040000, 040000 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "file expr ... : Write data to a file." } ,    { "compose", com_compose, false, false, false,      { 0, 0, 0, 0 }, E_DEFHMASK, 2, LOTS,      (int (*)()) NULL,      "var parm=val ... : Compose a vector." } ,    { "unlet", com_unlet, false, false, false,      { 040000, 040000, 040000, 040000 }, E_DEFHMASK, 1, LOTS,      (int (*)()) NULL,      "varname ... : Undefine vectors." } ,    { "print", com_print, false, false, true,      { 040000, 040000, 040000, 040000 }, E_BEGINNING, 1, LOTS,      arg_print,      "[col] expr ... : Print vector values." } ,    { "load", com_load, false, false, true,      { 1, 1, 1, 1 }, E_BEGINNING | E_NOPLOTS, 1, LOTS,      arg_load,      "file ... : Load in data." } ,    { "cross", com_cross, false, false, true,      { 040000, 0, 040000, 040000 }, E_DEFHMASK, 2, LOTS,      (int (*)()) NULL,      "vecname number [ vector ... ] : Make a vector in a strange way." } ,    { "undefine", com_undefine, false, false, false,      { 010000, 010000, 010000, 010000 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[func ...] : Undefine a user-definable function." } ,    { "op", com_op, false, true, true,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.op line args] : Determine the operating point of the circuit." } ,    { "tf", com_tf, false, true, true,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.tran line args] : Do a transient analysis." } ,    { "tran", com_tran, false, true, true,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.tran line args] : Do a transient analysis." } ,    { "ac", com_ac, false, true, true,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.ac line args] : Do an ac analysis." } ,    { "dc", com_dc, false, true, true,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.dc line args] : Do a dc analysis." } ,    { "pz", com_pz, false, true, false,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.pz line args] : Do a pole / zero analysis." } ,    { "sens", com_sens, false, true, true,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.sens line args] : Do a sensitivity analysis." } ,    { "disto", com_disto, false, true, false,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.disto line args] : Do an distortion analysis." } ,    { "noise", com_noise, false, true, true,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[.noise line args] : Do a noise analysis." } ,    { "listing", com_listing, false, true, true,      { 0100, 0100, 0100, 0100 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "[logical] [physical] [deck] : Print the current circuit." } ,    { "edit", com_edit, false, true, true,      { 1, 0, 0, 0 }, E_DEFHMASK, 0, 1,      (int (*)()) NULL,      "[filename] : Edit a spice deck and then load it in." } ,    { "dump", com_dump, false, true, false,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, 0,      (int (*)()) NULL,      ": Print a dump of the current circuit." } ,    { "fourier", com_fourier, false, false, true,      { 0, 040000, 040000, 040000 }, E_DEFHMASK, 1, LOTS,      (int (*)()) NULL,      "fund_freq vector ... : Do a fourier analysis of some data." } ,    { "show", com_show, false, true, false,      { 040, 040, 040, 040 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "devices ... : parameters ... : Print out device summary." } ,    { "showmod", com_showmod, false, true, false,      { 040, 040, 040, 040 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "models ... : parameters ... : Print out model summary." } ,    { "alter", com_alter, false, true, false,      { 040, 040, 040, 040 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "devspecs : parmname value : Alter device parameters." } ,    { "altermod", com_altermod, false, true, false,      { 040, 040, 040, 040 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "devspecs : parmname value : Alter model parameters." } ,    { "resume", com_resume, false, true, false,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, 0,      (int (*)()) NULL,      ": Continue after a stop." } ,    { "state", com_state, false, true, false,      { 0, 0, 0, 0 }, E_DEFHMASK, 0, LOTS,      (int (*)()) NULL,      "(unimplemented) : Print the state of the circuit." },    { "stop", com_stop, false, true, false,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -