Re: [myhdl-list] Constant ints in interfaces
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-03-17 04:30:11
|
On 3/16/15 7:01 AM, SHEN Chen wrote: > Hi Keerthan, > > I will write more cases as you said. So I hope folks here will post > exotic way of abusing interface, so we could clarifying what are > supported v.s. what are not. > > By doing this, we can have a spec first, before anyone attempting a fix. The spec should be covered in MEP 107: http://dev.myhdl.org/meps/mep-107.html The conversion of constants wasn't in the original MEP but is a good feature to go along with interfaces. We can add more info on const usage in the "what's new in MyHDL 0.9" documentation. > > For instance, do you think it's a good idea to have a Interface base > class, and requires all interface to derive from the base class? This was discussed when MEP107 was first proposed and it was decided no. > > With this convention, during extractHier/analyze, we can unambiguously > identify interface objects, descend into it and extract its member signals. This is what is currently done, an object is walked and the "Signal" attributes identified. Regards, Chris |