From 3ae76a863876700450ebf7cd333c90d81d37e9b0 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 8 Sep 2000 17:08:10 +0000 Subject: [PATCH] initialize vlog info. --- t-vvm.cc | 10 ++++++++-- vvm/vpi_priv.h | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/t-vvm.cc b/t-vvm.cc index 96f38a8c3..96f0cd09e 100644 --- a/t-vvm.cc +++ b/t-vvm.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: t-vvm.cc,v 1.171 2000/09/03 17:58:14 steve Exp $" +#ident "$Id: t-vvm.cc,v 1.172 2000/09/08 17:08:10 steve Exp $" #endif # include @@ -1055,7 +1055,10 @@ void target_vvm::end_design(const Design*mod) out << "// **** end start_code" << endl; - out << "main()" << endl << "{" << endl; + out << "main(int argc, char*argv[])" << endl << "{" << endl; + + out << " vpip_set_vlog_info(argc, argv);" << endl; + string vpi_module_path = mod->get_flag("VPI_MODULE_PATH"); if (vpi_module_path.length() > 0) out << " vvm_set_module_path(\"" << vpi_module_path << @@ -3113,6 +3116,9 @@ extern const struct target tgt_vvm = { }; /* * $Log: t-vvm.cc,v $ + * Revision 1.172 2000/09/08 17:08:10 steve + * initialize vlog info. + * * Revision 1.171 2000/09/03 17:58:14 steve * Properly ignore NetAssign_ objects. * diff --git a/vvm/vpi_priv.h b/vvm/vpi_priv.h index bb6393e04..966394517 100644 --- a/vvm/vpi_priv.h +++ b/vvm/vpi_priv.h @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: vpi_priv.h,v 1.23 2000/08/20 17:49:05 steve Exp $" +#ident "$Id: vpi_priv.h,v 1.24 2000/09/08 17:08:10 steve Exp $" #endif /* @@ -348,6 +348,7 @@ struct vpip_simulation { extern struct vpip_simulation vpip_simulation_obj; +extern void vpip_set_vlog_info(int argc, char**argv); extern void vpip_init_simulation(); extern void vpip_time_scale(int precision); extern void vpip_simulation_run(); @@ -385,6 +386,9 @@ extern int vpip_finished(); /* * $Log: vpi_priv.h,v $ + * Revision 1.24 2000/09/08 17:08:10 steve + * initialize vlog info. + * * Revision 1.23 2000/08/20 17:49:05 steve * Clean up warnings and portability issues. *