Re: [myhdl-list] Convertible records
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2011-09-02 19:56:58
|
On 9/2/2011 2:39 PM, Sébastien Bourdeauducq wrote: > On 09/02/2011 09:20 PM, Christopher Felton wrote: >> should limit the discussion to building >> objects similar to VHDL record and SV struct > > Hmm, this would be of little help for the high level synthesizer I'm > trying to develop :-) I tend to think I need dynamically built structures. > Doh, but the first post (start of the conversation) was this simple type? class Binary: def __init__(self): self.a = Signal(intbv()[32:]) self.b = Signal(intbv()[32:]) In general, I don't think it would be a big issue. If something like the SignalStruct was used dynamically. You could add signals as you like. Then the converter would look at the final configuration and still get a list of signals. But I kinda want to wrap my head around the declarative types first (converter issues, etc) without closing the door on the dynamic. I think I am struggling with a use case were dynamic is more useful than the declarative. Regards, Chris |