def current_mode=(id)
      @current_mode = id.is_a?(ChipMode) ? id.id : id
      Origen.app.listeners_for(:on_mode_changed).each do |listener|
        listener.on_mode_changed(mode: @current_mode, instance: self)
      end
      @current_mode
    end
def current_mode=(id)
      @current_mode = id.is_a?(ChipMode) ? id.id : id
      Origen.app.listeners_for(:on_mode_changed).each do |listener|
        listener.on_mode_changed(mode: @current_mode, instance: self)
      end
      @current_mode
    end
Set the current mode configuration of the current model