Re: [myhdl-list] New way of specifying user defined code, not working inside class
Brought to you by:
jandecaluwe
From: Wesley N. <we...@sk...> - 2012-01-24 11:54:45
|
Thank you for the replies. To update on this issue I have confirmed that the method Chris suggested works. ie creating a function outside the class and passing that to the convert method. I am not comfortable with doing it this way as it is a bit of a hack, but until we can patch MyHDL it will have to do. Regards Wesley On Thu, Jan 19, 2012 at 3:35 PM, Sébastien Bourdeauducq < seb...@mi...> wrote: > On 01/19/2012 01:23 PM, Christopher Felton wrote: > > This is currently a known limitation, you cannot convert a class method > > directly because the convert does not recognize the first parameter, > > "self", and uses "self" as a port. > > If your design is synchronous, and if using classes is more important to > you than integrated Python test benches (which are perfectly possible to > do under Migen, but which no one has developed yet) you can use Migen > FHDL, which supports signals in classes (and more perversions) just fine. > > https://github.com/milkymist/migen > > Sébastien > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |