Support sequential UDP devices.

This commit is contained in:
steve
2005-06-09 04:12:30 +00:00
parent 2f7ec71a78
commit 77792dcc2f
3 changed files with 663 additions and 64 deletions
+11 -3
View File
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: compile.cc,v 1.204 2005/06/02 16:02:11 steve Exp $"
#ident "$Id: compile.cc,v 1.205 2005/06/09 04:12:30 steve Exp $"
#endif
# include "arith.h"
@@ -1119,8 +1119,13 @@ void compile_resolver(char*label, char*type, unsigned argc, struct symb_s*argv)
void compile_udp_def(int sequ, char *label, char *name,
unsigned nin, unsigned init, char **table)
{
vvp_udp_s *u = new vvp_udp_s(label, name, nin, sequ? true : false);
u->compile_table(table);
if (sequ) {
vvp_udp_seq_s *u = new vvp_udp_seq_s(label, name, nin);
u->compile_table(table);
} else {
vvp_udp_comb_s *u = new vvp_udp_comb_s(label, name, nin);
u->compile_table(table);
}
free(label);
}
@@ -1548,6 +1553,9 @@ void compile_param_string(char*label, char*name, char*str, char*value)
/*
* $Log: compile.cc,v $
* Revision 1.205 2005/06/09 04:12:30 steve
* Support sequential UDP devices.
*
* Revision 1.204 2005/06/02 16:02:11 steve
* Add support for notif0/1 gates.
* Make delay nodes support inertial delay.