Module: OrigenDebuggers::JLink::Custom

Included in:
OrigenDebuggers::JLink
Defined in:
lib/origen_debuggers/j_link.rb

Overview

Other methods can expose unique features of a given debugger

Instance Method Summary collapse

Instance Method Details

#read_memory(address, options = {}) ⇒ Object



344
345
346
347
348
349
# File 'lib/origen_debuggers/j_link.rb', line 344

def read_memory(address, options = {})
  options = {
    number_of_bytes: 1
  }.merge(options)
  dw "mem 0x#{address.to_s(16).upcase}, #{options[:number_of_bytes]}"
end