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
-
#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.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 16 17 18 19 20 21 |
# File 'lib/origen_arm_debug/dp_controller.rb', line 10 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 |