[myhdl-list] Re: return instances(), processes()
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2005-11-04 15:25:05
|
George Pantazopoulos wrote: > Hi all, > > I have some functions that contain both instances and processes. I'd > like to be able to return all of them simply by doing "return > instances(), processes()". However, this doesn't work, and I have to > return all the elements manually. Is there some other way to accomplish > this? Please post a (small) example that doesn't work. It should. Note that I'm about to deprecate the processes() function however. (See the document on decorators in MyHDL 0.5). I think it's too confusing. In the future, create an instance for everything (possibly automatically using decorators). Function instances() is here to stay, however. Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Losbergenlaan 16, B-3010 Leuven, Belgium Electronic design with Python: http://myhdl.jandecaluwe.com |