Ejemplo n.º 1
0
    def _build_instance_table(self):
        """
        Builds the columns, adding them to the address map list.
        """
        column = EditableColumn('Map Name', self._name_changed,
                                AddrMapMdl.NAME_COL)
        column.set_min_width(175)
        column.set_sort_column_id(AddrMapMdl.NAME_COL)
        self._obj.append_column(column)
        self._col = column

        column = EditableColumn('Address base (hex)', self._base_changed,
                                AddrMapMdl.BASE_COL, True)
        column.set_sort_column_id(AddrMapMdl.BASE_COL)
        self._obj.append_column(column)

        column = ComboMapColumn('Access Width', self._width_changed, SIZE2STR,
                                AddrMapMdl.WIDTH_COL)
        column.set_min_width(250)
        self._obj.append_column(column)

        column = ToggleColumn('Fixed Address', self._fixed_changed,
                              AddrMapMdl.FIXED_COL)
        column.set_max_width(250)
        self._obj.append_column(column)

        column = ToggleColumn('Exclude from UVM', self._uvm_changed,
                              AddrMapMdl.UVM_COL)
        column.set_max_width(250)
        self._obj.append_column(column)

        self._model = AddrMapMdl()
        self._obj.set_model(self._model)
Ejemplo n.º 2
0
    def __build_instance_table(self, id_changed, inst_changed, base_changed,
                               repeat_changed, repeat_offset_changed,
                               format_changed, hdl_changed):
        column = EditableColumn('Intance', inst_changed,
                                InstMdl.INST_COL)
        column.set_sort_column_id(InstMdl.INST_COL)
        column.set_min_width(125)
        self.__obj.append_column(column)
        self.__col = column

        column = EditableColumn('Subsystem', id_changed,
                                InstMdl.ID_COL)
        column.set_sort_column_id(InstMdl.ID_COL)
        column.set_min_width(125)
        self.__obj.append_column(column)

        column = EditableColumn('Address base (hex)', base_changed,
                                InstMdl.BASE_COL)
        column.set_sort_column_id(InstMdl.SORT_COL)
        self.__obj.append_column(column)

        column = EditableColumn('Repeat', repeat_changed, InstMdl.RPT_COL)
        self.__obj.append_column(column)

        column = EditableColumn('Repeat Offset (hex)', repeat_offset_changed,
                                InstMdl.OFF_COL)
        self.__obj.append_column(column)

        column = EditableColumn('ID Format', format_changed, InstMdl.FMT_COL)
        column.set_min_width(175)
        column.set_sort_column_id(InstMdl.FMT_COL)
        self.__obj.append_column(column)

        column = EditableColumn('HDL Path', hdl_changed, InstMdl.HDL_COL)
        column.set_min_width(250)
        column.set_sort_column_id(InstMdl.HDL_COL)
        self.__obj.append_column(column)
        self.__col = column
Ejemplo n.º 3
0
    def __build_instance_table(self, id_changed, inst_changed, base_changed,
                               repeat_changed, repeat_offset_changed,
                               format_changed, hdl_changed, uvm_changed,
                               decode_changed, array_changed):

        column = EditableColumn('Instance', inst_changed, InstMdl.INST_COL)
        column.set_sort_column_id(InstMdl.INST_COL)
        column.set_min_width(125)
        self.__obj.append_column(column)
        self.__col = column

        column = EditableColumn('Subsystem', id_changed, InstMdl.ID_COL)
        column.set_sort_column_id(InstMdl.ID_COL)
        column.set_min_width(125)
        self.__obj.append_column(column)

        column = EditableColumn('Address base', base_changed, InstMdl.BASE_COL,
                                True)
        column.set_sort_column_id(InstMdl.SORT_COL)
        self.__obj.append_column(column)

        column = EditableColumn('Repeat', repeat_changed, InstMdl.RPT_COL,
                                True)
        self.__obj.append_column(column)

        column = EditableColumn('Repeat Offset', repeat_offset_changed,
                                InstMdl.OFF_COL, True)
        self.__obj.append_column(column)

        column = EditableColumn('ID Format', format_changed, InstMdl.FMT_COL)
        column.set_min_width(150)
        column.set_sort_column_id(InstMdl.FMT_COL)
        self.__obj.append_column(column)

        column = EditableColumn('HDL Path', hdl_changed, InstMdl.HDL_COL)
        column.set_min_width(250)
        column.set_sort_column_id(InstMdl.HDL_COL)
        self.__obj.append_column(column)
        self.__col = column

        column = ToggleColumn('UVM Exclude', uvm_changed, InstMdl.UVM_COL)
        column.set_min_width(80)
        self.__obj.append_column(column)

        column = ToggleColumn('Decode Exclude', decode_changed, InstMdl.DEC_COL)
        column.set_min_width(80)
        self.__obj.append_column(column)

        column = ToggleColumn('Force arrays', array_changed, InstMdl.ARRAY_COL)
        column.set_min_width(80)
        self.__obj.append_column(column)