Module: OrigenARMDebug::DPControllerV6
- Included in:
- JTAG_DPV6Controller
- Defined in:
- lib/origen_arm_debug/dp_controller_v6.rb
Overview
Common methods shared between the SW and JTAG DP controllers
Instance Method Summary collapse
-
#ctrl_stat ⇒ Object
Alias for the ctrlstat register.
- #select_ap_reg(reg) ⇒ Object private
Instance Method Details
#ctrl_stat ⇒ Object
Alias for the ctrlstat register
5 6 7 |
# File 'lib/origen_arm_debug/dp_controller_v6.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_v6.rb', line 10 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 |