Re: [myhdl-list] The definition of an interface?
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-04-05 02:40:11
|
On 4/2/15 9:02 AM, Henry Gomersall wrote: > On 02/04/15 14:54, Henry Gomersall wrote: >> How are signals referenced in an interface? Do they need to exist in the >> __dict__, or is there another way to look them up? > > By this, I mean, should Signals that are returned from, say, a property, > be considered part of the interface? > I would have to double check what the actual conversion code does but it uses the compiler to walk the objects. Yes, I believe they would have to exist in the __dict__. Creating a small example with a property it does not convert. So no, a property used to access a signal would not be supported. I can't think of a use-case where you would. In a MyHDL generator you need access to the signal. https://gist.github.com/cfelton/bb4e0850c5245a1ef960 Interface properties would be useful in elaboration code but not in the generators/processes. Regards, Chris |