📄 nutmeg.txt
字号:
SUBJECT: mainTITLE: Help SystemTEXT: This is the nutmeg _h_e_l_p system. To chose a subtopic orTEXT: see-also topic, click a mouse button in the appropriate boxTEXT: below, or type the number of the topic that you want if youTEXT: are using an ASCII terminal.TEXT: SUBTOPIC: SPICE:analyses NUTMEG:arguments SPICE:batchmodeSUBTOPIC: NUTMEG:bugs NUTMEG:caveats NUTMEG:commandsSUBTOPIC: SPICE:convergence NUTMEG:cshstuff SPICE:elementsSUBTOPIC: SPICE:examples NUTMEG:expressions NUTMEG:graphicsSUBTOPIC: NUTMEG:hpux NUTMEG:input SPICE:modelsSUBTOPIC: SPICE:options NUTMEG:pc NUTMEG:proglangSUBTOPIC: NUTMEG:refs NUTMEG:sconvert SPICE:spiceSUBTOPIC: NUTMEG:variables NUTMEG:vmsSUBJECT: argumentsTITLE: Command Line ArgumentsTEXT: TEXT: GNutmeg Hand Gspice Htake the following command line options.TEXT: H Additional arguments are taken to be circuit files in theTEXT: H case of GspiceH, or raw data files to be loaded in the case ofTEXT: H GnutmegH.TEXT: HTEXT: SUBTOPIC: NUTMEG:dash SPICE:dashb SPICE:dashiSUBTOPIC: NUTMEG:dashn NUTMEG:dasho SPICE:dashqSUBTOPIC: NUTMEG:dashr SPICE:dashs NUTMEG:dashtSUBJECT: dashTITLE: -TEXT: TEXT: G- HDon't try load a rawfile (Gnutmeg Honly). The defaultTEXT: H rawfile name is GrawspiceH, which will be loaded in if noTEXT: H other filenames are given on the command line.TEXT: HTEXT: SUBJECT: dashnTITLE: -nTEXT: TEXT: G-n HDon't try to source the file ".spiceinit" upon startup.TEXT: H Normally the program tries to find the file in theTEXT: H current directory, and if it is not found then itTEXT: H checks in the user's home directory.TEXT: HTEXT: SUBJECT: dashoTITLE: -oTEXT: TEXT: G-o outfileTEXT: H HOpen the given file for output, instead of sending out-TEXT: H put to the terminal.TEXT: HTEXT: SUBJECT: dashrTITLE: -rTEXT: TEXT: G-r HUse the named file for dumping data if this is Gspice HinTEXT: H batch mode, and use it as the default rawfile for theTEXT: H Gwrite Hcommand. Note that if the program is GnutmegH,TEXT: H this option will not cause the named file to be loaded.TEXT: HTEXT: SUBJECT: dashtTITLE: -tTEXT: TEXT: G-t termTEXT: H HThe program is being run on a terminal with MFB nameTEXT: H GtermH. (MFB is the graphics package used for dumbTEXT: H graphics terminals.) Note that MFB names are often notTEXT: H the same as _t_e_r_m_c_a_p names, so this option is needed toTEXT: H override the TERM environment variable.TEXT: HTEXT: SUBJECT: bugsTITLE: BugsTEXT: TEXT: The label entry facilities are very primitive - after all,TEXT: H Gnutmeg Hisn't a graphics editor (yet). You must be carefulTEXT: H to type very slowly when entering labels -- Gnutmeg HchecksTEXT: H the GX Hevent queue once every second, and can get very con-TEXT: H fused if characters arrive faster than that.TEXT: HTEXT: When defining aliases likeTEXT: HTEXT: Galias Hpdb Gplot dbH( '!:1' - '!:2' )TEXT: HTEXT: you must be careful to quote the argument list substitutionsTEXT: H in this manner. If you quote the whole argument it might notTEXT: H work properly.TEXT: HTEXT: In a user-defined function, the arguments cannot be part ofTEXT: H a name that uses the _p_l_o_t._v_e_c syntax. I.e,TEXT: HTEXT: Gdefine Hpoke(duck) GcosH(tran1.duck)TEXT: HTEXT: won't do the right thing.TEXT: HTEXT: If you type Gplot all allH, or otherwise use a wildcard refer-TEXT: H ence for one plot twice in a command, bad things will hap-TEXT: H pen.TEXT: HTEXT: The Gasciiplot Hcommand doesn't deal with log scales or mostTEXT: H of the keywords that Gplot Hrecognises. Don't expect it toTEXT: H ever do smith charts.TEXT: HTEXT: When a new vector is created with the G[ ] Hand G[[ ]] Hopera-TEXT: H tions, a subset of the old scale should also be created forTEXT: H it that includes the same elements, so that it may be plot-TEXT: H ted, etc.TEXT: HTEXT: When substitutions are done with the ^_o_l_d^_n_e_w^ syntax, thereTEXT: H may be no spaces in either _o_l_d or _n_e_w.TEXT: HTEXT: If the user erases text in an X plot window by typing spacesTEXT: H over it, and then dumps it to a file with the Ghardcopy Hcom-TEXT: H mand, the erased text will re-appear.TEXT: HTEXT: If an X plot window is created and then resized to be muchTEXT: H larger, or the Ghardcopy Hcommand is used to dump it to a fileTEXT: H and it is then printed on a device with much higher resolu-TEXT: H tion than the X display, the "automatic manhattanization"TEXT: H feature (i.e, round-off error) will cause the picture toTEXT: H look very funny.TEXT: HTEXT: SPICE3 will recognise all the notations used in SPICE2 G.plotTEXT: H Hcards, and will translate Gvp(1) Hinto Gph(v(1))H, and so forth.TEXT: H However, if there are spaces in these names it won't work.TEXT: H Hence Gv(1, 2) Hand G(-.5, .5) Haren't recognised.TEXT: HTEXT: The "nutmeg programming language" should serve as a lessonTEXT: H on why a language designer should understand that he isTEXT: H creating a language before he has already implemented it.TEXT: HTEXT: If a command is implemented as a script, the Ghelp HcommandTEXT: H won't say anything about it and it won't be available forTEXT: H command and argument completion.TEXT: HTEXT: If you plot an expression containing the function GrndH, andTEXT: H then zoom in or out in the window, you will get differentTEXT: H random numbers in the new window.TEXT: HTEXT: Global filename expansion has some problems. In particular,TEXT: H G*/* Hmay give a result of "No match" when there is a file inTEXT: H the current directory.TEXT: HTEXT: SEEALSO: NUTMEG:caveatsSUBJECT: caveatsTITLE: CaveatsTEXT: TEXT: Often the names of terminals recognised by GMFB Hare differentTEXT: H from those in /etc/termcap. Thus you may have to reset yourTEXT: H terminal type with the commandTEXT: HTEXT: Gset Hterm = _t_e_r_m_n_a_m_eTEXT: HTEXT: where _t_e_r_m_n_a_m_e is the name in the Gmfbcap Hfile.TEXT: HTEXT: The Ghardcopy Hcommand is useless on VMS and other systemsTEXT: H without the UNIX Gplot Hcommand, unless the user has a programTEXT: H that understands _p_l_o_t(_5) format.TEXT: HTEXT: GSpice Hinput files specified on the command line are read inTEXT: H before theG.spiceinit Hfile is read. Thus if you defineTEXT: H aliases there that you call in a Gspice Hsource file mentionedTEXT: H on the command line, they won't be recognised.TEXT: HTEXT: If you interrupt a simulation and then load in a new deck,TEXT: H or Gsetcirc Hto a different one, and run a simulation on that,TEXT: H it will not be possible to Gresume Hthe old simulation.TEXT: HTEXT: Don't trust command completion too much.TEXT: HTEXT: SEEALSO: NUTMEG:bugsSUBJECT: commandsTITLE: Built-in CommandsTEXT: TEXT: When a command is typed, it is interpreted as one of severalTEXT: H things. First, it may be an alias, in which case the lineTEXT: H is replaced with the result after alias substitution, andTEXT: H the line is re-parsed. Second, it may be a pre-defined com-TEXT: H mand, in which case it is executed (see below for a list ofTEXT: H available commands). Third, it may be the name of a circuitTEXT: H file, in which case it is loaded (if the program is GspiceH)TEXT: H as if with a Gsource Hcommand. Fourth, it may be the name ofTEXT: H a command script - Gnutmeg Hsearches the current GsourcepathTEXT: H Hfor the file and executes it when it is found. The effectTEXT: H of this is identical to the effect of Gsouce fileH, exceptTEXT: H that the variables Gargc Hand Gargv Hare set. Fifth, it may beTEXT: H an assignment statement, which consists of a vector name, anTEXT: H G= Hsymbol, and an expression (see the syntax for the Glet Hcom-TEXT: H mand), in which case it is executed as if it were preceededTEXT: H by the word GletH. Finally, it may be a UNIX command, inTEXT: H which case if the variable Gunixcom His set, it is executed asTEXT: H though it were typed to the shell. (This is only availableTEXT: H on BSD UNIX systems.)TEXT: HTEXT: The following is a list of the built-in commands available.TEXT: H Some may be command scripts - the only difference between aTEXT: H built-in and a script that is visible to the user is that aTEXT: H script will not be mentioned in the quick help summary, andTEXT: H will not be visible to command completion.TEXT: HTEXT: SUBTOPIC: SPICE:ac NUTMEG:alias NUTMEG:alterSUBTOPIC: NUTMEG:asciiplot SPICE:aspice NUTMEG:breakSUBTOPIC: NUTMEG:bug NUTMEG:cd NUTMEG:cdumpSUBTOPIC: NUTMEG:compose NUTMEG:continue NUTMEG:crossSUBTOPIC: SPICE:dc NUTMEG:define NUTMEG:deftypeSUBTOPIC: SPICE:delete NUTMEG:destroy NUTMEG:diffSUBTOPIC: NUTMEG:display NUTMEG:dowhile NUTMEG:dumpSUBTOPIC: NUTMEG:echo NUTMEG:edit NUTMEG:elseSUBTOPIC: NUTMEG:end NUTMEG:foreach NUTMEG:fourierSUBTOPIC: NUTMEG:goto NUTMEG:hardcopy NUTMEG:helpSUBTOPIC: NUTMEG:historycomm NUTMEG:if SPICE:iplotSUBTOPIC: NUTMEG:jobs NUTMEG:label NUTMEG:letSUBTOPIC: NUTMEG:linearize SPICE:listing NUTMEG:loadSUBTOPIC: NUTMEG:oldhelp SPICE:op NUTMEG:plotSUBTOPIC: NUTMEG:print SPICE NUTMEG:quitSUBTOPIC: NUTMEG:rehash NUTMEG:repeat SPICE:resetSUBTOPIC: SPICE:resume SPICE:rspice SPICE:runSUBTOPIC: NUTMEG:rusage SPICE:save NUTMEG:setSUBTOPIC: SPICE:setcirc NUTMEG:setplot NUTMEG:settypeSUBTOPIC: NUTMEG:shell NUTMEG:shift NUTMEG:showSUBTOPIC: NUTMEG:source NUTMEG:state NUTMEG:statusSUBTOPIC: SPICE:step SPICE:stop NUTMEG:strcmpSUBTOPIC: SPICE:trace SPICE:tran NUTMEG:unaliasSUBTOPIC: NUTMEG:undefine NUTMEG:unlet NUTMEG:unsetSUBTOPIC: NUTMEG:version NUTMEG:while NUTMEG:writeSEEALSO: NUTMEG:proglangSUBJECT: aliasTITLE: aliasTEXT: TEXT: Galias H[ _w_o_r_d ] [ _t_e_x_t ]TEXT: H Cause _w_o_r_d to be aliased to _t_e_x_t. Whenever a commandTEXT: H line beginning with _w_o_r_d is typed, _t_e_x_t is substituted.TEXT: H Arguments are either appended to the end, or substi-TEXT: H tuted in if history characters are present in the _t_e_x_t.TEXT: H See the description of "C-shell like features".TEXT: HTEXT: SEEALSO: NUTMEG:unaliasSEEALSO: NUTMEG:aliasesSUBJECT: alterTITLE: alterTEXT: TEXT: Galter H_a_r_g_s...TEXT: H Change the parameters of a device while a simulation isTEXT: H in progress. This command is not yet implemented.TEXT: HTEXT: SEEALSO: NUTMEG:showSUBJECT: asciiplotTITLE: asciiplotTEXT: TEXT: Gasciiplot H_p_l_o_t_a_r_g_sTEXT: H Produce a line printer plot of the vectors. See theTEXT: H description of the Gplot Hcommand for the syntax of _p_l_o_-TEXT: H _t_a_r_g_s. The plot is sent to the standard output, so youTEXT: H can put it into a file with Gasciiplot H_a_r_g_s G> H_f_i_l_e. TheTEXT: H variables Gwidth, height, Hand Gnobreak Hdetermine theTEXT: H width and height of the plot, and whether there areTEXT: H page breaks, respectively. Note that you will haveTEXT: H problems if you try to Gasciiplot Hsomething with an X-TEXT: H scale that isn't monotonic (i.e, something likeTEXT: H _s_i_n(_T_I_M_E) ), because Gasciiplot Huses a simple-mindedTEXT: H sort of linear interpolation. Also, most of the key-TEXT: H words that Gplot Hrecognises aren't used by GasciiplotH.TEXT: HTEXT: SEEALSO: NUTMEG:plotSEEALSO: NUTMEG:hardcopySEEALSO: NUTMEG:widthSEEALSO: NUTMEG:heightSEEALSO: NUTMEG:noasciiplotvalueSEEALSO: NUTMEG:nobreakSEEALSO: NUTMEG:expressionsSUBJECT: breakTITLE: breakTEXT: TEXT: Gbreak H[ _n_u_m_b_e_r ]TEXT: H If there is a Gwhile, dowhile, Hor Gforeach Hblock enclos-TEXT: H ing this statement, control passes out of the block.TEXT: H Otherwise an error results. If a _n_u_m_b_e_r is given, thatTEXT: H number of enclosing blocks are exited.TEXT: HTEXT: SEEALSO: NUTMEG:proglangSUBJECT: bugTITLE: bugTEXT: TEXT: Gbug HThis sends a bug report to the maintainer of SPICE3, ifTEXT: H it has been compiled with the BUGADDR option.TEXT: HTEXT: SUBJECT: cdTITLE: cdTEXT: TEXT: Gcd H[ _d_i_r_e_c_t_o_r_y ]TEXT: H Change the current working directory to _d_i_r_e_c_t_o_r_y, orTEXT: H the user's home directory if none is given.TEXT: HTEXT: SUBJECT: cdumpTITLE: cdumpTEXT: TEXT: GcdumpTEXT: H HThis is a debugging command for printing out the con-TEXT: H tents of the currently active control structures.TEXT: HTEXT: SEEALSO: NUTMEG:proglangSUBJECT: composeTITLE: composeTEXT: TEXT: Gcompose H_v_e_c_n_a_m_e [ _p_a_r_a_m = _v_a_l_u_e ] ...TEXT: H orTEXT: HTEXT: Gcompose H_v_e_c_n_a_m_e Gvalues H_v_a_l_u_e ...TEXT: H Both forms of this command create a new vector calledTEXT: H _v_e_c_n_a_m_e. In the first form, the values in the vector
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -