Sha256: 5884de1251d4073ae9bc82e2059a6f31b76af97b865fd799428b8e1fa71f9033

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

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

    # @api private
    def select_ap_reg(reg)
      address = (reg.address & 0xFFFF_FFF0) >> 4
      address1 = (reg.address & 0xFFFF_FFFF_0000_0000) >> 32
      model.select1.write! address1 if model.select1.data != address1
      model.select.bits(:addr).write! address if model.select.bits(:addr).data != address
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
origen_arm_debug-1.3.1 lib/origen_arm_debug/dp_controller_v6.rb
origen_arm_debug-1.3.0 lib/origen_arm_debug/dp_controller_v6.rb