support scan of scope from VPI.

This commit is contained in:
steve 2001-06-10 16:47:49 +00:00
parent 5361efe8ed
commit 3ad3a2ab57
3 changed files with 17 additions and 6 deletions

View File

@ -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.72 2001/06/07 03:09:03 steve Exp $"
#ident "$Id: compile.cc,v 1.73 2001/06/10 16:47:49 steve Exp $"
#endif
# include "arith.h"
@ -1124,6 +1124,7 @@ void compile_variable(char*label, char*name, int msb, int lsb,
/* Make the vpiHandle for the reg. */
vpiHandle obj = vpip_make_reg(name, msb, lsb, signed_flag, fdx);
compile_vpi_symbol(label, obj);
vpip_attach_to_current_scope(obj);
free(label);
}
@ -1205,6 +1206,7 @@ void compile_net(char*label, char*name, int msb, int lsb, bool signed_flag,
/* Make the vpiHandle for the reg. */
vpiHandle obj = vpip_make_net(name, msb, lsb, signed_flag, fdx);
compile_vpi_symbol(label, obj);
vpip_attach_to_current_scope(obj);
free(label);
free(argv);
@ -1299,6 +1301,9 @@ vvp_ipoint_t debug_lookup_functor(const char*name)
/*
* $Log: compile.cc,v $
* Revision 1.73 2001/06/10 16:47:49 steve
* support scan of scope from VPI.
*
* Revision 1.72 2001/06/07 03:09:03 steve
* Implement .arith/sub subtraction.
*

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT)
#ident "$Id: vpi_priv.cc,v 1.3 2001/04/03 03:46:14 steve Exp $"
#ident "$Id: vpi_priv.cc,v 1.4 2001/06/10 16:47:49 steve Exp $"
#endif
# include "vpi_priv.h"
@ -44,7 +44,7 @@ static int vpip_get_global(int property)
switch (property) {
case vpiTimePrecision:
fprintf(stderr, "vpi warning: vpiTimePrecision not supported\n");
fprintf(stderr, "vpi Sorry: vpiTimePrecision not supported\n");
return 0;
default:
@ -145,7 +145,7 @@ void vpi_printf(const char*fmt, ...)
vpiHandle vpi_register_cb(p_cb_data data)
{
assert(0);
fprintf(stderr, "vpi Sorry: vpi_register_cb not supported\n");
return 0;
}
@ -170,6 +170,9 @@ void vpi_sim_control(int operation, ...)
/*
* $Log: vpi_priv.cc,v $
* Revision 1.4 2001/06/10 16:47:49 steve
* support scan of scope from VPI.
*
* Revision 1.3 2001/04/03 03:46:14 steve
* VPI access time as a decimal string, and
* stub vpi access to the scopes.

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT)
#ident "$Id: vpi_scope.cc,v 1.4 2001/04/18 04:21:23 steve Exp $"
#ident "$Id: vpi_scope.cc,v 1.5 2001/06/10 16:47:49 steve Exp $"
#endif
# include "compile.h"
@ -54,7 +54,7 @@ static vpiHandle module_iter(int code, vpiHandle obj)
switch (code) {
case vpiInternalScope:
return 0;
return vpip_make_iterator(ref->nintern, ref->intern);
}
return 0;
}
@ -134,6 +134,9 @@ void vpip_attach_to_current_scope(vpiHandle obj)
/*
* $Log: vpi_scope.cc,v $
* Revision 1.5 2001/06/10 16:47:49 steve
* support scan of scope from VPI.
*
* Revision 1.4 2001/04/18 04:21:23 steve
* Put threads into scopes.
*