Sha256: c733603ed81e4128439405d788eeb1562648c11b235ae12c1d9d05c9ee0831de
Contents?: true
Size: 924 Bytes
Versions: 2
Compression:
Stored size: 924 Bytes
Contents
module OrigenARMDebug class APController include Origen::Controller include Helpers def write_register(reg_or_val, options = {}) if reg_or_val.try(:owner) == model log "Write AP (#{model.name}) register #{reg_or_val.name.to_s.upcase}: #{reg_or_val.data.to_hex}" do parent.dp.write_register(reg_or_val) apreg_access_wait.cycles end else fail 'No Resource-specific transport defined for MDM-AP (#model.name})' end end def read_register(reg_or_val, options = {}) if reg_or_val.try(:owner) == model log "Read AP (#{model.name}) register #{reg_or_val.name.to_s.upcase}: #{Origen::Utility.read_hex(reg_or_val)}" do parent.dp.read_register(reg_or_val, apacc_wait_states: apreg_access_wait) end else fail 'No Resource-specific transport defined for MDM-AP (#model.name})' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
origen_arm_debug-1.0.0 | lib/origen_arm_debug/ap_controller.rb |
origen_arm_debug-1.0.0.pre1 | lib/origen_arm_debug/ap_controller.rb |