From 6a6707838cda1a4e859afa8dbce52e3e65a674ad Mon Sep 17 00:00:00 2001 From: pnenzi Date: Sun, 25 Jan 2004 17:38:13 +0000 Subject: [PATCH] Added configure options for some debug symbols. --- ChangeLog | 14 +++++++++++++- acconfig.h | 16 ++++++++++++++-- configure.in | 47 +++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 66 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 030431180..4edc0a160 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,16 @@ -2004-01-21 Paolo Nenzi +2004-01-25 Paolo Nenzi + + * configure.in, acconfig.h: Added configure options for the + following debug symbols: ASDEBUG, D_DBG_BLOCKTIMES, + D_DBG_SMALLTIMES, NEWPRED. + +2004-01-23 Paolo Nenzi + + * xgraph: Added xgraph plotting program. It can be added to + the ngspice binaries by adding --enable-xgraph in the + configuration phase. + +2004-01-21 Paolo Nenzi * src/include/ifsim.h, src/include/cktdefs.h, src/frontend/spiceif.c, src/frontend/shyu.c, src/spicelib/cktntask.c: Applied the options diff --git a/acconfig.h b/acconfig.h index e514e4b31..4dfeb1592 100644 --- a/acconfig.h +++ b/acconfig.h @@ -29,6 +29,9 @@ /* Define if we want predictor algorithm */ #undef PREDICTOR +/* Define if you want to discover :) */ +#undef NEWPRED + /* Define if we want spice2 sensitivity analysis */ #undef WANT_SENSE2 @@ -59,10 +62,19 @@ /* Do not trigger unwanted traps by default */ #undef NEWTRUNC -/* Define if we wanto debug sensititvity analysis */ +/* Define if we want debug sensititvity analysis */ #undef SENSDEBUG -/* Define i we want stepdebug */ +/* Define if we want debug sensitivity analysis */ +#undef ASDEBUG + +/* Define if we want debug distortion analysis (BLOCKTIMES) */ +#undef D_DBG_BLOCKTIMES + +/* Define if we want debug distortion analysis (SMALLTIMES) */ +#undef D_DBG_SMALLTIMES + +/* Define if we want stepdebug */ #undef STEPDEBUG /* Define to use always exp/log for bulk diode calculations in mosfet */ diff --git a/configure.in b/configure.in index 2e2d072f0..f1a6eae72 100644 --- a/configure.in +++ b/configure.in @@ -52,6 +52,10 @@ dnl --enable-predictor : define PREDICTOR for the code AC_ARG_ENABLE(predictor, [ --enable-predictor Enable a predictor method for convergence]) +dnl --enable-newpred : define PREDICTOR for the code +AC_ARG_ENABLE(newpred, + [ --enable-newpred Enable NEWPRED whatever it is(?)]) + dnl --enable-newtrunc : define NEWTRUNC for the code AC_ARG_ENABLE(newtrunc, [ --enable-newtrunc Enable the newtrunc option]) @@ -69,9 +73,13 @@ AC_ARG_ENABLE(cpdebug, [ --enable-cpdebug Enable ngspice shell debug]) dnl --enable-sensdebug : define SENSDEBUG for the code -AC_ARG_ENABLE(sensedebug, - [ --enable-sensdebug Debug sensitivity code]) - +AC_ARG_ENABLE(sensdebug, + [ --enable-sensdebug Debug sensitivity code *SENSDEBUG*]) + +dnl --enable-asdebug : define ASDEBUG for the code +AC_ARG_ENABLE(asdebug, + [ --enable-asdebug Debug sensitivity code *ASDEBUG*]) + dnl --enable-stepdebug : define STEPDEBUG for the code AC_ARG_ENABLE(stepdebug, [ --enable-stepdebug Unknown debug option]) @@ -80,6 +88,14 @@ dnl --enable-pzdebug : define PZDEBUG for the code AC_ARG_ENABLE(pzdebug, [ --enable-pzdebug Debug pole/zero code]) +dnl --enable-blktmsdebug : define D_DBG_BLOCKTIMES for the code +AC_ARG_ENABLE(blktmsdebug, + [ --enable-blktmsdebug Debug distortion code *BLOCKTIMES*]) + +dnl --enable-smltmsdebug : define D_DBG_SMALLTIMES for the code +AC_ARG_ENABLE(smltmsdebug, + [ --enable-smltmsdebug Debug distortion code *SMALLTIMES*]) + dnl --enable-intnoise : define INT_NOISE for the code AC_ARG_ENABLE(intnoise, [ --enable-intnoise Enable noise integration in noise analysis]) @@ -94,7 +110,7 @@ AC_ARG_ENABLE(experimental, dnl --enable-expdevices : Enable the compilation of experimental deviced AC_ARG_ENABLE(expdevices, - [ --enable-expdevices Enable experimental devices (they do not compile)]) + [ --enable-expdevices Enable experimental devices (they do not compile)]) dnl --enable-ekv: define HAVE_EKV in the code. This is for EKV model support AC_ARG_ENABLE(ekv, @@ -119,13 +135,13 @@ AC_ARG_ENABLE(numparam, dnl --enable-xgraph: Compile the xgraph plotting program. Default is "no". dnl Xgraph is a plotitng package for X11 once very popular. AC_ARG_ENABLE(xgraph, - [ --enable-xgraph Enable xgraph compilation.]) + [ --enable-xgraph Enable xgraph compilation.]) dnl --with-readline: Includes GNU readline support into CLI. Default is "no". dnl Including readline into ngspice is a violation of GPL license. It's use dnl is discouraged. AC_ARG_WITH(readline, - [ --with-readline[=yes/no] Enable GNU readline support for CLI. Default=no.]) + [ --with-readline[=yes/no] Enable GNU readline support for CLI. Default=no.]) @@ -368,6 +384,10 @@ if test "$enable_predictor" = "yes"; then AC_DEFINE(PREDICTOR) AC_MSG_RESULT(PREDICTOR algorithm enabled) fi +if test "$enable_newpred" = "yes"; then + AC_DEFINE(NEWPRED) + AC_MSG_RESULT(NEWPRED enabled) +fi if test "$enable_newtrunc" = "yes"; then AC_DEFINE(NEWTRUNC) AC_MSG_RESULT(New truncation error calculation enabled) @@ -391,7 +411,11 @@ if test "$enable_ftedebug" = "yes"; then fi if test "$enable_sensdebug" = "yes"; then AC_DEFINE(SENSDEBUG) - AC_MSG_RESULT(WARNING: Sensitivity code debug is enabled) + AC_MSG_RESULT(WARNING: Sensitivity code debug *SENSDEBUG* is enabled) +fi +if test "$enable_asdebug" = "yes"; then + AC_DEFINE(ASDEBUG) + AC_MSG_RESULT(WARNING: Sensitivity code debug *ASDEBUG* is enabled) fi if test "$enable_stepdebug" = "yes"; then AC_DEFINE(STEPDEBUG) @@ -401,7 +425,14 @@ if test "$enable_pzdebug" = "yes"; then AC_DEFINE(PZDEBUG) AC_MSG_RESULT(WARNING: Pole/Zero analysis debug is enabled) fi - +if test "$enable_blktmsdebug" = "yes"; then + AC_DEFINE(D_DBG_BLOCKTIMES) + AC_MSG_RESULT(WARNING: Distortion analysis debug *D_DBG_BLOCKTIMES* is enabled) +fi +if test "$enable_smltmsdebug" = "yes"; then + AC_DEFINE(D_DBG_SMALLTIMES) + AC_MSG_RESULT(WARNING: Distortion analysis debug *D_DBG_SMALLTIMES* is enabled) +fi if test "$enable_xgraph" = "yes"; then AC_MSG_RESULT(Xgraph compilation enabled.) AC_CONFIG_SUBDIRS(xgraph)