Re: [myhdl-list] Constant ints in interfaces
Brought to you by:
jandecaluwe
From: Keerthan JC <jck...@gm...> - 2015-03-16 09:38:52
|
The dot is replaced with an underscore in the converted code. On Mon, Mar 16, 2015 at 5:35 AM, Henry Gomersall <he...@ca...> wrote: > I noticed in: > http://docs.myhdl.org/en/latest/whatsnew/0.9.html#interfaces > > It tells me that constants are supported in interfaces. > > Now, they do convert, but they convert with a dot in the name, which I > understand is not valid (certainly VHDL) syntax. > > Something like: > > class Interface(object): > def __init__(self): > self.a = Signal(intbv(0, min=-1000, max=1000)) > self.c = 10 > > where c gets converted as interface_name.c. > > My understanding from the docs is that this should be supported, but I > might be missing something. I noticed this previously with IntEnum, but > I wasn't aware it was an expected feature. > > Cheers, > > Henry > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > -- have a nice day -jck |