Re: [myhdl-list] Newbie problem with instances()
Brought to you by:
jandecaluwe
From: Georg A. <ac...@in...> - 2009-03-31 19:22:38
|
On Tue, Mar 31, 2009 at 07:18:04PM +0200, Jan Decaluwe wrote: > You have hit a backwards incompatibility: > > http://www.myhdl.org/doc/0.6/whatsnew/0.6.html#instances-function Ouch... That explains everything. I guess I'll have to go over the 20 files and look if it's just a sequential function or intended to be an instance... :-( > Only generators produced by MyHDL decorators are now considered by instances(). > MyHDL decorators are used as a way to discriminate between "MyHDL generators" > and regular ones. In particular, this makes it possible to use regular > generators in MyHDL models for different purposes. (Users had reported > problems when instances() didn't make this difference.) > > That having said, I personally don't like instances() that much. I tend > to return generators explicitly. Removing instances() would IMO make MyHDL quite unusable... It's already tedious to explicitely return the implicitely instantiated modules. If I have to care manually about the correct instantiation of my modules, I can just use raw threads and shared variables ;-) -- Georg Acher, ac...@in... http://www.lrr.in.tum.de/~acher "Oh no, not again !" The bowl of petunias |