Re: [myhdl-list] MEP : Signal Containers
Brought to you by:
jandecaluwe
From: G. A. S. <g.a...@gm...> - 2012-06-01 04:46:11
|
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 |