Module: OrigenARMDebug::DPController

Included in:
JTAG_DPController, SW_DPController
Defined in:
lib/origen_arm_debug/dp_controller.rb

Overview

Common methods shared between the SW and JTAG DP controllers

Instance Method Summary collapse

Instance Method Details

#ctrl_statObject

Alias for the ctrlstat register



5
6
7
# File 'lib/origen_arm_debug/dp_controller.rb', line 5

def ctrl_stat
  ctrlstat
end

#select_ap_reg(reg) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
15
# File 'lib/origen_arm_debug/dp_controller.rb', line 10

def select_ap_reg(reg)
  address = reg.address & 0xFFFF_FFF0
  if model.select.data != address
    model.select.write!(address)
  end
end