VPI Module/Instance

This is a discussion on VPI Module/Instance within the verilog forums in Programming Languages category; What I'm attempting to do is set a value on a net within a module (not an instance) in VPI so it will apply that value to every instance of the module.I am doing this at run time using VPI. In VPI when I use vpiHandle module_handle = vpi_handle(vpiModule, this_scope_h); it returns an instance that instantiated this_scope_h. Is there a way to set a value on a module in VPI so that the value is present in every instance? I don't want to have to iterate through the entire instance tree looking for a module name, and then setting the ...

Go Back   Application Development Forum > Programming Languages > verilog

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-05-2008, 03:50 PM
Yottameter
Guest
 
Default VPI Module/Instance

What I'm attempting to do is set a value on a net within a module (not
an instance) in VPI so it will apply that value to every instance of the
module.I am doing this at run time using VPI.

In VPI when I use

vpiHandle module_handle = vpi_handle(vpiModule, this_scope_h);

it returns an instance that instantiated this_scope_h.

Is there a way to set a value on a module in VPI so that the value is
present in every instance? I don't want to have to iterate through the
entire instance tree looking for a module name, and then setting the net
in each instance of that module. I also am unable to modify the module
code, as it would cause a recompile.

Thanks.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:43 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.