Sha256: c17d563e1250b9ada4c079f8be77a3212551b726eee8aea262513c3a25aa70a7

Contents?: true

Size: 638 Bytes

Versions: 3

Compression:

Stored size: 638 Bytes

Contents

module OrigenARMDebug
  # Common methods shared between the SW and JTAG DP controllers
  module DPController
    # Alias for the ctrlstat register
    def ctrl_stat
      ctrlstat
    end

    # @api private
    def select_ap_reg(reg)
      address = reg.address & 0xFFFF_FFF0
      apsel = (reg.address & 0xFF00_0000) >> 24
      apbanksel = (reg.address & 0xF0) >> 4
      # if model.select.data != address
      if model.select.apsel.data != apsel || model.select.apbanksel.data != apbanksel
        model.select.write! do |r|
          r.apsel.write apsel
          r.apbanksel.write apbanksel
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
origen_arm_debug-1.3.1 lib/origen_arm_debug/dp_controller.rb
origen_arm_debug-1.3.0 lib/origen_arm_debug/dp_controller.rb
origen_arm_debug-1.2.0 lib/origen_arm_debug/dp_controller.rb