[myhdl-list] Constant ints in interfaces
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2015-03-16 09:35:55
|
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 |