diff --git a/vvp/compile.cc b/vvp/compile.cc index 20bdb3faf..87dad9ab7 100644 --- a/vvp/compile.cc +++ b/vvp/compile.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: compile.cc,v 1.14 2001/03/25 03:54:26 steve Exp $" +#ident "$Id: compile.cc,v 1.15 2001/03/25 19:38:23 steve Exp $" #endif # include "compile.h" @@ -233,6 +233,12 @@ void compile_functor(char*label, char*type, unsigned init, } else if (strcmp(type, "AND") == 0) { obj->table = ft_AND; + } else if (strcmp(type, "NOR") == 0) { + obj->table = ft_NOR; + + } else if (strcmp(type, "NOT") == 0) { + obj->table = ft_NOT; + } else { yyerror("invalid functor type."); } @@ -587,6 +593,9 @@ void compile_dump(FILE*fd) /* * $Log: compile.cc,v $ + * Revision 1.15 2001/03/25 19:38:23 steve + * Support NOR and NOT gates. + * * Revision 1.14 2001/03/25 03:54:26 steve * Add JMP0XZ and postpone net inputs when needed. * diff --git a/vvp/functor.h b/vvp/functor.h index 960704d8f..cd85d0ed6 100644 --- a/vvp/functor.h +++ b/vvp/functor.h @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: functor.h,v 1.4 2001/03/22 05:08:00 steve Exp $" +#ident "$Id: functor.h,v 1.5 2001/03/25 19:38:23 steve Exp $" #endif # include "pointers.h" @@ -108,11 +108,16 @@ extern void functor_dump(FILE*fd); extern const unsigned char ft_AND[]; +extern const unsigned char ft_NOR[]; +extern const unsigned char ft_NOT[]; extern const unsigned char ft_OR[]; extern const unsigned char ft_var[]; /* * $Log: functor.h,v $ + * Revision 1.5 2001/03/25 19:38:23 steve + * Support NOR and NOT gates. + * * Revision 1.4 2001/03/22 05:08:00 steve * implement %load, %inv, %jum/0 and %cmp/u *