Re: [myhdl-list] MEP : Signal Containers
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2012-06-01 16:58:58
|
On 5/31/12 11:46 PM, G. Andrew Stone wrote: > Chris, > > In Example 1 of the MEP it says: > > class MyObj(object): > def __init__(self): > x = Signal(intbv(0)[8:]) > y = Signal(intbv(0)[4:]) > z = Signal(intbv(0)[9:]) > > > But I hope you mean: > > class MyObj(object): > def __init__(self): > self.x = Signal(intbv(0)[8:]) > self.y = Signal(intbv(0)[4:]) > self.z = Signal(intbv(0)[9:]) > > (addition of "self." to the variables) > > Or I will be VERY confused! :-) > > Cheers! > Andrew > > Yes, thanks for pointing out the error. I have updated the MEP. Regards, Chris |