How to Lock Globar Variables across Modules?

Alex cut_me_out at hotmail.com
Wed Sep 27 12:47:34 EDT 2000


> In the main module, all the code will look like
> 
>     schedule (sv.current_time)
> 
> But the same code in other modules will have to look like
> 
>     schedule (main_module.sv.current_time)
> 
> I want something that is consistent across all the simulation modules.

Well, perhaps you could import the main_module into itself, so that you
can refer to main_module.sv in there as well.  At least it'd be
consistent. 

Alex.

-- 
Speak softly but carry a big carrot.




More information about the Python-list mailing list