I have following class.
def init(self, nb_bits_roi=16):
if not 16 == nb_bits_roi:
raise ValueError(“Number of bits to represent ROI must be 16”)
self.roi_width = Signal(intbv(0)[nb_bits_roi:])
self.roi_height = Signal(intbv(0)[nb_bits_roi:])
self.roi_width_offset = Signal(intbv(0)[nb_bits_roi:])
self.roi_height_offset = Signal(intbv(0)[nb_bits_roi:])
I have created a list of objects from the above class.
roi_list = 
for i in range(2):
When i try to access the list like following
roi_list.roi_width.next = avs_mm.writedata_i[16:]
The conversion does not work, it throws following error
Object type is not supported in this context: roi_list, <type ‘list’>
When i use only a single object, the conversion work perfectly fine.
I just wanted to be sure if this is the limitation by the conversion in myhdl because in python i can access the list of objects with their individual elements.
Please let me know if somebody has tried a better approach to handle it.
Thanks for your response.