Jspice3
spfteext.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int xeditor ()
 
void com_xeditor ()
 
void com_stop ()
 
void com_trce ()
 
void com_iplot ()
 
void com_save ()
 
void com_step ()
 
void com_sttus ()
 
void com_delete ()
 
bool ft_bpcheck ()
 
void ft_trquery ()
 
int ft_getSaves ()
 
void com_check ()
 
void com_loop ()
 
void ft_check ()
 
void ft_setccirc ()
 
void ft_newcirc ()
 
void ft_newsubcirc ()
 
void com_state ()
 
void com_dump ()
 
void com_show ()
 
void com_alter ()
 
void ft_dotsaves ()
 
void ft_savedotargs ()
 
void ft_cktcoms ()
 
void com_listing ()
 
void inp_list ()
 
void inp_spsource ()
 
void inp_decksource ()
 
void inp_dodeck ()
 
void com_edit ()
 
void inp_srcedit ()
 
void com_sced ()
 
void com_source ()
 
void inp_source ()
 
void com_linearize ()
 
char * OUTcntrlInit ()
 
int OUTbeginPlot ()
 
int OUTdata ()
 
int OUTsetDims ()
 
int OUTendPlot ()
 
int OUTstopnow ()
 
int OUTerror ()
 
void com_scirc ()
 
void com_pz ()
 
void com_op ()
 
void com_dc ()
 
void com_ac ()
 
void com_tf ()
 
void com_tran ()
 
void com_sens ()
 
void com_disto ()
 
void com_noise ()
 
void ft_dosim ()
 
void com_resume ()
 
void com_run ()
 
void ft_dorun ()
 
void com_rset ()
 
void com_free ()
 
int if_sens_run ()
 
char * if_inpdeck ()
 
int if_run ()
 
void if_option ()
 
void if_dump ()
 
void if_cktfree ()
 
void if_cktclear ()
 
char * if_errstring ()
 
struct variablespif_getparam ()
 
void if_setparam ()
 
void if_setndnames ()
 
bool if_tranparams ()
 
struct variableif_getstat ()
 
struct variablenutif_getparam ()
 
wordlistGetAnalysisFromDeck ()
 
int InProgress ()
 
int IsIplot ()
 
struct lineinp_subcktexpand ()
 
void com_where ()
 

Variables

struct circft_curckt
 
struct circft_circuits
 
struct subcircft_subcircuits
 
struct commcp_coms
 
bool OUTendit
 

Function Documentation

void com_ac ( )
void com_alter ( )
void com_check ( )
void com_dc ( )
void com_delete ( )
void com_disto ( )
void com_dump ( )
void com_edit ( )
void com_free ( )
void com_iplot ( )
void com_linearize ( )
void com_listing ( )
void com_loop ( )
void com_noise ( )
void com_op ( )
void com_pz ( )
void com_resume ( )
void com_rset ( )
void com_run ( )
void com_save ( )
void com_sced ( )
void com_scirc ( )
void com_sens ( )
void com_show ( )
void com_source ( )
void com_state ( )
void com_step ( )
void com_stop ( )
void com_sttus ( )
void com_tf ( )
void com_tran ( )
void com_trce ( )
void com_where ( )

Definition at line 16 of file where.c.

17 {
18  char *msg;
19 
20  msg = (*ft_sim->nonconvErr)(ft_curckt->ci_ckt, 0);
21  out_printf("Last nonconvergence at %s", msg);
22 }
IFsimulator * ft_sim
Definition: main.c:111
void out_printf()
char * ci_ckt
Definition: ftedefs.h:27
struct circ * ft_curckt
Definition: main.c:184
char *(* nonconvErr)())
Definition: ifsim.h:457
void com_xeditor ( )
bool ft_bpcheck ( )
void ft_check ( )
void ft_cktcoms ( )
void ft_dorun ( )
void ft_dosim ( )
void ft_dotsaves ( )

Definition at line 221 of file main.c.

222 { return; }
int ft_getSaves ( )
void ft_newcirc ( )
void ft_newsubcirc ( )
void ft_savedotargs ( )

Definition at line 226 of file main.c.

227 { return; }
void ft_setccirc ( )
void ft_trquery ( )

Definition at line 641 of file breakp.c.

642 {
643  return;
644 }
wordlist* GetAnalysisFromDeck ( )

Definition at line 255 of file main.c.

256 { return (NULL); }
#define NULL
Definition: spdefs.h:121
void if_cktclear ( )

Definition at line 476 of file spiceif.c.

482 {
483  struct circ *cc;
484 
485  if (!ft_curckt) return;
490 
491  (*(ft_sim->deleteTask))(ft_curckt->ci_ckt,ft_curckt->ci_specTask);
492  (*(ft_sim->deleteTask))(ft_curckt->ci_ckt,ft_curckt->ci_defTask);
494 
496 
497  if (ft_curckt->ci_contblk) {
498  for (cc = ft_circuits; cc; cc = cc->ci_next) {
499  if (cc == ft_curckt)
500  continue;
501  if (cc->ci_contblk && eq(cc->ci_contblk,ft_curckt->ci_contblk))
502  break;
503  }
504  if (!cc) {
505  if (prefix("#_",ft_curckt->ci_contblk)) {
507  ft_curckt->ci_contblk[1] = '#';
509  }
510  }
512  }
513 
519 
520  if (ft_curckt == ft_circuits) {
521  tfree(ft_curckt);
523  }
524  else {
525  for (cc = ft_circuits; cc; cc = cc->ci_next)
526  if (cc->ci_next == ft_curckt)
527  break;
528 
529  if (!cc) {
530  fprintf(cp_err,"Internal Error: cktfree -- not in list\n");
531  goto xxx;
532  }
533  cc->ci_next = ft_curckt->ci_next;
534  tfree(ft_curckt);
535  ft_curckt = cc;
536  }
537 xxx:
538  if (ft_curckt) {
541  }
542 }
#define eq(a, b)
Definition: misc.h:29
Definition: variable.c:632
struct circ * ci_next
Definition: ftedefs.h:37
Definition: subckt.c:18
IFsimulator * ft_sim
Definition: main.c:111
char * ci_specTask
Definition: ftedefs.h:42
#define prefix(x, y)
Definition: readhelp.c:39
Definition: ftedefs.h:25
struct line * ci_deck
Definition: ftedefs.h:30
char * ci_devices
Definition: ftedefs.h:39
struct line * ci_options
Definition: ftedefs.h:32
char * ci_ckt
Definition: ftedefs.h:27
char * ci_filename
Definition: ftedefs.h:40
char * ci_contblk
Definition: ftedefs.h:29
char * ci_defTask
Definition: ftedefs.h:41
void va_free()
char * ci_nodes
Definition: ftedefs.h:38
void wl_free()
FILE * cp_err
Definition: help.c:101
#define CT_DEVNAMES
Definition: fteconst.h:87
struct circ * ft_circuits
Definition: main.c:185
#define tfree(x)
Definition: cdmacs.h:22
void txfree()
#define NULL
Definition: spdefs.h:121
struct circ * ft_curckt
Definition: main.c:184
struct variable * ci_vars
Definition: ftedefs.h:33
void cp_freeblock()
void inp_deckfree()
#define CT_NODENAMES
Definition: fteconst.h:89
char * ci_symtab
Definition: ftedefs.h:28
void cp_ccfreetrie()
char * ci_name
Definition: ftedefs.h:26
wordlist * ci_commands
Definition: ftedefs.h:36
void if_cktfree(char *ckt, char *tab)
Definition: spiceif.c:462
char * cp_kwswitch()
void if_cktfree ( )
void if_dump ( )
char* if_errstring ( )
struct variable* if_getstat ( )
char* if_inpdeck ( )
void if_option ( )
int if_run ( )
int if_sens_run ( )
void if_setndnames ( )
void if_setparam ( )
bool if_tranparams ( )
void inp_decksource ( )
void inp_dodeck ( )
void inp_list ( )
void inp_source ( )
void inp_spsource ( )
void inp_srcedit ( )
struct line* inp_subcktexpand ( )
int InProgress ( )

Definition at line 990 of file spiceif.c.

991 {
992  return (ft_curckt && ft_curckt->ci_inprogress);
993 }
bool ci_inprogress
Definition: ftedefs.h:34
struct circ * ft_curckt
Definition: main.c:184
int IsIplot ( )

Definition at line 997 of file spiceif.c.

998 {
999  struct dbcomm *d;
1000  extern struct dbcomm *dbiplot;
1001 
1002  for (d = dbiplot; d; d = d->db_next) {
1003  if (d->db_type == DB_IPLOT) return (true);
1004  if (d->db_type == DB_IPLOTALL) return (true);
1005  }
1006  return (false);
1007 }
struct dbcomm * dbiplot
Definition: main.c:186
Definition: cddefs.h:237
char db_type
Definition: ftedebug.h:22
struct dbcomm * db_next
Definition: ftedebug.h:28
#define DB_IPLOTALL
Definition: ftedebug.h:17
#define DB_IPLOT
Definition: ftedebug.h:16
struct variable* nutif_getparam ( )
int OUTbeginPlot ( )
char* OUTcntrlInit ( )

Definition at line 111 of file outitf.c.

112 {
113  /* return the OUTcntrl structure */
116  OUTcntrl.out_check = false;
117  OUTcntrl.out_usecurplot = false;
118  OUTcntrl.out_keepplot = false;
120  OUTcntrl.out_index = 0;
121  OUTcntrl.out_max = 0;
122  OUTcntrl.out_fail = 0;
125  return (char *)&OUTcntrl;
126 }
int out_max
Definition: outdata.h:42
int out_keepplot
Definition: outdata.h:39
int out_index
Definition: outdata.h:41
int out_usecurplot
Definition: outdata.h:38
char * out_rundesc
Definition: outdata.h:44
void(* out_destroy)()
Definition: outdata.h:52
double * out_points
Definition: outdata.h:40
#define NULL
Definition: spdefs.h:121
static struct sOUTcontrol OUTcntrl
Definition: outitf.c:62
int out_fail
Definition: outdata.h:43
static void out_destroy()
Definition: outitf.c:130
int out_check
Definition: outdata.h:37
void(* out_end)()
Definition: outdata.h:51
int(* out_evaluate)()
Definition: outdata.h:50
int OUTdata ( )
int OUTendPlot ( )
int OUTerror ( )
int OUTsetDims ( )
int OUTstopnow ( )

Definition at line 1032 of file outitf.c.

1033 {
1034  static REQUEST reqst = { checkup_option, 0 };
1035 
1036  if (!ft_batchmode)
1037  DevInput(&reqst, 0);
1038  if (ft_intrpt || shouldstop) {
1039  ft_intrpt = shouldstop = false;
1040  return (1);
1041  }
1042  else
1043  return (0);
1044 }
bool ft_intrpt
Definition: main.c:47
void DevInput()
static bool shouldstop
Definition: outitf.c:106
bool ft_batchmode
Definition: main.c:98
struct variable* spif_getparam ( )
int xeditor ( )

Variable Documentation

struct comm* cp_coms

Definition at line 163 of file main.c.

struct circ* ft_circuits

Definition at line 185 of file main.c.

struct circ* ft_curckt

Definition at line 184 of file main.c.

struct subcirc* ft_subcircuits

Definition at line 20 of file circuits.c.

bool OUTendit

Definition at line 60 of file outitf.c.