Support the -tnull target type.

This commit is contained in:
steve 2000-04-21 22:51:38 +00:00
parent c0d51dd2eb
commit 181b776f0c
1 changed files with 25 additions and 2 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) #if !defined(WINNT)
#ident "$Id: iverilog.c,v 1.1 2000/04/21 06:41:03 steve Exp $" #ident "$Id: iverilog.c,v 1.2 2000/04/21 22:51:38 steve Exp $"
#endif #endif
#include <stdio.h> #include <stdio.h>
@ -36,6 +36,24 @@ int verbose_flag = 0;
static char cmdline[4096]; static char cmdline[4096];
static int t_null()
{
int rc;
strcat(cmdline, " | ");
strcat(cmdline, base);
strcat(cmdline, "/ivl ");
if (verbose_flag)
strcat(cmdline, "-v ");
strcat(cmdline, "-- -");
if (verbose_flag)
printf("translate: %s\n", cmdline);
rc = system(cmdline);
return rc;
}
/* /*
* This function handles the vvm target. After preprocessing, run the * This function handles the vvm target. After preprocessing, run the
* ivl translator to get C++, then run g++ to make an executable * ivl translator to get C++, then run g++ to make an executable
@ -155,7 +173,9 @@ int main(int argc, char **argv)
return system(cmdline); return system(cmdline);
} }
if (strcmp(targ,"vvm") == 0) if (strcmp(targ,"null") == 0)
return t_null();
else if (strcmp(targ,"vvm") == 0)
return t_vvm(); return t_vvm();
else if (strcmp(targ,"xnf") == 0) else if (strcmp(targ,"xnf") == 0)
return t_xnf(); return t_xnf();
@ -169,6 +189,9 @@ int main(int argc, char **argv)
/* /*
* $Log: iverilog.c,v $ * $Log: iverilog.c,v $
* Revision 1.2 2000/04/21 22:51:38 steve
* Support the -tnull target type.
*
* Revision 1.1 2000/04/21 06:41:03 steve * Revision 1.1 2000/04/21 06:41:03 steve
* Add the iverilog driver program. * Add the iverilog driver program.
* *