2000-04-27 22:03:57 +02:00
|
|
|
/**********
|
|
|
|
|
Copyright 1990 Regents of the University of California. All rights reserved.
|
|
|
|
|
Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
|
|
|
|
|
**********/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Circuit debugging commands.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "ngspice.h"
|
|
|
|
|
#include "cpdefs.h"
|
|
|
|
|
#include "ftedefs.h"
|
|
|
|
|
#include "ftedebug.h"
|
2000-05-06 16:12:51 +02:00
|
|
|
#include "dvec.h"
|
2000-04-27 22:03:57 +02:00
|
|
|
#include "fteinp.h"
|
2000-06-27 18:09:02 +02:00
|
|
|
|
|
|
|
|
#include "circuits.h"
|
2000-04-27 22:03:57 +02:00
|
|
|
#include "debugcom.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
com_state(wordlist *wl)
|
|
|
|
|
{
|
|
|
|
|
if (!ft_curckt) {
|
|
|
|
|
fprintf(cp_err, "Error: no circuit loaded.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
fprintf(cp_out, "Current circuit: %s\n", ft_curckt->ci_name);
|
|
|
|
|
if (!ft_curckt->ci_inprogress) {
|
|
|
|
|
fprintf(cp_out, "No run in progress.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
fprintf(cp_out, "Type of run: %s\n", plot_cur->pl_name);
|
|
|
|
|
fprintf(cp_out, "Number of points so far: %d\n",
|
|
|
|
|
plot_cur->pl_scale->v_length);
|
|
|
|
|
fprintf(cp_out, "(That's all this command does so far)\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
com_dump(wordlist *wl)
|
|
|
|
|
{
|
|
|
|
|
if (!ft_curckt || !ft_curckt->ci_ckt) {
|
|
|
|
|
fprintf(cp_err, "Error: no circuit loaded.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if_dump(ft_curckt->ci_ckt, cp_out);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|